Class LogProfileResourceInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.monitor.fluent.models.LogProfileResourceInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class LogProfileResourceInner
extends com.azure.core.management.Resource
The log profile resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of LogProfileResourceInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the categories property: the categories of the logs.static LogProfileResourceInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of LogProfileResourceInner from the JsonReader.id()
Get the id property: Fully qualified resource Id for the resource.Get the locations property: List of regions for which Activity Log events should be stored or streamed.name()
Get the name property: The name of the resource.Get the retentionPolicy property: the retention policy for the events in the log.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.Get the storageAccountId property: the resource id of the storage account to which you would like to send the Activity Log.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: The type of the resource.void
validate()
Validates the instance.withCategories
(List<String> categories) Set the categories property: the categories of the logs.withLocation
(String location) withLocations
(List<String> locations) Set the locations property: List of regions for which Activity Log events should be stored or streamed.withRetentionPolicy
(RetentionPolicy retentionPolicy) Set the retentionPolicy property: the retention policy for the events in the log.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.withStorageAccountId
(String storageAccountId) Set the storageAccountId property: the resource id of the storage account to which you would like to send the Activity Log.Methods inherited from class com.azure.core.management.Resource
location, tags
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LogProfileResourceInner
public LogProfileResourceInner()Creates an instance of LogProfileResourceInner class.
-
-
Method Details
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
id
in classcom.azure.core.management.ProxyResource
- Returns:
- the id value.
-
name
Get the name property: The name of the resource.- Overrides:
name
in classcom.azure.core.management.ProxyResource
- Returns:
- the name value.
-
type
Get the type property: The type of the resource.- Overrides:
type
in classcom.azure.core.management.ProxyResource
- Returns:
- the type value.
-
withLocation
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
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
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
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
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
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
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
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
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
Get the retentionPolicy property: the retention policy for the events in the log.- Returns:
- the retentionPolicy value.
-
withRetentionPolicy
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
- Overrides:
toJson
in classcom.azure.core.management.Resource
- Throws:
IOException
-
fromJson
public static LogProfileResourceInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of LogProfileResourceInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of LogProfileResourceInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the LogProfileResourceInner.
-