Class OperationLogSpecificationDefinition
java.lang.Object
com.azure.resourcemanager.containerregistry.models.OperationLogSpecificationDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OperationLogSpecificationDefinition>
public final class OperationLogSpecificationDefinition
extends Object
implements com.azure.json.JsonSerializable<OperationLogSpecificationDefinition>
The definition of Azure Monitoring log.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OperationLogSpecificationDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionGet the blobDuration property: Log blob duration.Get the displayName property: Log display name.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OperationLogSpecificationDefinition from the JsonReader.name()Get the name property: Log name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBlobDuration(String blobDuration) Set the blobDuration property: Log blob duration.withDisplayName(String displayName) Set the displayName property: Log display name.Set the name property: Log name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OperationLogSpecificationDefinition
public OperationLogSpecificationDefinition()Creates an instance of OperationLogSpecificationDefinition class.
-
-
Method Details
-
name
Get the name property: Log name.- Returns:
- the name value.
-
withName
Set the name property: Log name.- Parameters:
name- the name value to set.- Returns:
- the OperationLogSpecificationDefinition object itself.
-
displayName
Get the displayName property: Log display name.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Log display name.- Parameters:
displayName- the displayName value to set.- Returns:
- the OperationLogSpecificationDefinition object itself.
-
blobDuration
Get the blobDuration property: Log blob duration.- Returns:
- the blobDuration value.
-
withBlobDuration
Set the blobDuration property: Log blob duration.- Parameters:
blobDuration- the blobDuration value to set.- Returns:
- the OperationLogSpecificationDefinition object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OperationLogSpecificationDefinition>- Throws:
IOException
-
fromJson
public static OperationLogSpecificationDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OperationLogSpecificationDefinition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OperationLogSpecificationDefinition if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the OperationLogSpecificationDefinition.
-