LogProfileResourcePatch Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. LogProfileResourcePatch
- com.
Implements
public final class LogProfileResourcePatch
implements JsonSerializable<LogProfileResourcePatch>
The log profile resource for patch operations.
Constructor Summary
| Constructor | Description |
|---|---|
| LogProfileResourcePatch() |
Creates an instance of Log |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
categories()
Get the categories property: the categories of the logs. |
|
static
Log |
fromJson(JsonReader jsonReader)
Reads an instance of Log |
| List<String> |
locations()
Get the locations property: List of regions for which Activity Log events should be stored or streamed. |
|
Retention |
retentionPolicy()
Get the retention |
| String |
serviceBusRuleId()
Get the service |
| String |
storageAccountId()
Get the storage |
| Map<String,String> |
tags()
Get the tags property: Resource tags. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Log |
withCategories(List<String> categories)
Set the categories property: the categories of the logs. |
|
Log |
withLocations(List<String> locations)
Set the locations property: List of regions for which Activity Log events should be stored or streamed. |
|
Log |
withRetentionPolicy(RetentionPolicy retentionPolicy)
Set the retention |
|
Log |
withServiceBusRuleId(String serviceBusRuleId)
Set the service |
|
Log |
withStorageAccountId(String storageAccountId)
Set the storage |
|
Log |
withTags(Map<String,String> tags)
Set the tags property: Resource tags. |
Methods inherited from java.lang.Object
Constructor Details
LogProfileResourcePatch
public LogProfileResourcePatch()
Creates an instance of LogProfileResourcePatch class.
Method Details
categories
public List<String> categories()
Get the categories property: the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'.
Returns:
fromJson
public static LogProfileResourcePatch fromJson(JsonReader jsonReader)
Reads an instance of LogProfileResourcePatch from the JsonReader.
Parameters:
Returns:
Throws:
locations
public List<String> locations()
Get the locations property: List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location.
Returns:
retentionPolicy
public RetentionPolicy retentionPolicy()
Get the retentionPolicy property: the retention policy for the events in the log.
Returns:
serviceBusRuleId
public String serviceBusRuleId()
Get the serviceBusRuleId property: The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'.
Returns:
storageAccountId
public String storageAccountId()
Get the storageAccountId property: the resource id of the storage account to which you would like to send the Activity Log.
Returns:
tags
public Map<String,String> tags()
Get the tags property: Resource tags.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCategories
public LogProfileResourcePatch withCategories(List<String> categories)
Set the categories property: the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'.
Parameters:
Returns:
withLocations
public LogProfileResourcePatch withLocations(List<String> locations)
Set the locations property: List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location.
Parameters:
Returns:
withRetentionPolicy
public LogProfileResourcePatch withRetentionPolicy(RetentionPolicy retentionPolicy)
Set the retentionPolicy property: the retention policy for the events in the log.
Parameters:
Returns:
withServiceBusRuleId
public LogProfileResourcePatch withServiceBusRuleId(String serviceBusRuleId)
Set the serviceBusRuleId property: The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'.
Parameters:
Returns:
withStorageAccountId
public LogProfileResourcePatch withStorageAccountId(String storageAccountId)
Set the storageAccountId property: the resource id of the storage account to which you would like to send the Activity Log.
Parameters:
Returns:
withTags
public LogProfileResourcePatch withTags(Map<String,String> tags)
Set the tags property: Resource tags.
Parameters:
Returns: