Class LogProfileResourceInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.monitor.fluent.models.LogProfileResourceInner
-
public class LogProfileResourceInner extends com.azure.core.management.ResourceThe log profile resource.
-
-
Constructor Summary
Constructors Constructor Description LogProfileResourceInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>categories()Get the categories property: the categories of the logs.List<String>locations()Get the locations property: List of regions for which Activity Log events should be stored or streamed.RetentionPolicyretentionPolicy()Get the retentionPolicy property: the retention policy for the events in the log.StringserviceBusRuleId()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.StringstorageAccountId()Get the storageAccountId property: the resource id of the storage account to which you would like to send the Activity Log.voidvalidate()Validates the instance.LogProfileResourceInnerwithCategories(List<String> categories)Set the categories property: the categories of the logs.LogProfileResourceInnerwithLocation(String location)LogProfileResourceInnerwithLocations(List<String> locations)Set the locations property: List of regions for which Activity Log events should be stored or streamed.LogProfileResourceInnerwithRetentionPolicy(RetentionPolicy retentionPolicy)Set the retentionPolicy property: the retention policy for the events in the log.LogProfileResourceInnerwithServiceBusRuleId(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.LogProfileResourceInnerwithStorageAccountId(String storageAccountId)Set the storageAccountId property: the resource id of the storage account to which you would like to send the Activity Log.LogProfileResourceInnerwithTags(Map<String,String> tags)
-
-
-
Method Detail
-
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:
- the storageAccountId value.
-
withStorageAccountId
public LogProfileResourceInner 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:
storageAccountId- the storageAccountId value to set.- Returns:
- the LogProfileResourceInner object itself.
-
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:
- the serviceBusRuleId value.
-
withServiceBusRuleId
public LogProfileResourceInner 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:
serviceBusRuleId- the serviceBusRuleId value to set.- Returns:
- the LogProfileResourceInner object itself.
-
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:
- the locations value.
-
withLocations
public LogProfileResourceInner 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:
locations- the locations value to set.- Returns:
- the LogProfileResourceInner object itself.
-
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:
- the categories value.
-
withCategories
public LogProfileResourceInner 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:
categories- the categories value to set.- Returns:
- the LogProfileResourceInner object itself.
-
retentionPolicy
public RetentionPolicy retentionPolicy()
Get the retentionPolicy property: the retention policy for the events in the log.- Returns:
- the retentionPolicy value.
-
withRetentionPolicy
public LogProfileResourceInner withRetentionPolicy(RetentionPolicy retentionPolicy)
Set the retentionPolicy property: the retention policy for the events in the log.- Parameters:
retentionPolicy- the retentionPolicy value to set.- Returns:
- the LogProfileResourceInner object itself.
-
withLocation
public LogProfileResourceInner withLocation(String location)
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
public LogProfileResourceInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-