Class OperationLogSpecificationDefinition
java.lang.Object
com.azure.resourcemanager.containerregistry.models.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.name()Get the name property: Log name.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.
-
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.
-