Class OperationServiceSpecificationDefinition
java.lang.Object
com.azure.resourcemanager.containerregistry.models.OperationServiceSpecificationDefinition
The definition of Azure Monitoring list.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OperationServiceSpecificationDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionGet the logSpecifications property: A list of Azure Monitoring log definitions.Get the metricSpecifications property: A list of Azure Monitoring metrics definition.voidvalidate()Validates the instance.withLogSpecifications(List<OperationLogSpecificationDefinition> logSpecifications) Set the logSpecifications property: A list of Azure Monitoring log definitions.withMetricSpecifications(List<OperationMetricSpecificationDefinition> metricSpecifications) Set the metricSpecifications property: A list of Azure Monitoring metrics definition.
-
Constructor Details
-
OperationServiceSpecificationDefinition
public OperationServiceSpecificationDefinition()Creates an instance of OperationServiceSpecificationDefinition class.
-
-
Method Details
-
metricSpecifications
Get the metricSpecifications property: A list of Azure Monitoring metrics definition.- Returns:
- the metricSpecifications value.
-
withMetricSpecifications
public OperationServiceSpecificationDefinition withMetricSpecifications(List<OperationMetricSpecificationDefinition> metricSpecifications) Set the metricSpecifications property: A list of Azure Monitoring metrics definition.- Parameters:
metricSpecifications- the metricSpecifications value to set.- Returns:
- the OperationServiceSpecificationDefinition object itself.
-
logSpecifications
Get the logSpecifications property: A list of Azure Monitoring log definitions.- Returns:
- the logSpecifications value.
-
withLogSpecifications
public OperationServiceSpecificationDefinition withLogSpecifications(List<OperationLogSpecificationDefinition> logSpecifications) Set the logSpecifications property: A list of Azure Monitoring log definitions.- Parameters:
logSpecifications- the logSpecifications value to set.- Returns:
- the OperationServiceSpecificationDefinition object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-