Class OperationServiceSpecificationDefinition
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.OperationServiceSpecificationDefinition
-
public final class OperationServiceSpecificationDefinition extends Object
The definition of Azure Monitoring list.
-
-
Constructor Summary
Constructors Constructor Description OperationServiceSpecificationDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<OperationLogSpecificationDefinition>logSpecifications()Get the logSpecifications property: A list of Azure Monitoring log definitions.List<OperationMetricSpecificationDefinition>metricSpecifications()Get the metricSpecifications property: A list of Azure Monitoring metrics definition.voidvalidate()Validates the instance.OperationServiceSpecificationDefinitionwithLogSpecifications(List<OperationLogSpecificationDefinition> logSpecifications)Set the logSpecifications property: A list of Azure Monitoring log definitions.OperationServiceSpecificationDefinitionwithMetricSpecifications(List<OperationMetricSpecificationDefinition> metricSpecifications)Set the metricSpecifications property: A list of Azure Monitoring metrics definition.
-
-
-
Method Detail
-
metricSpecifications
public List<OperationMetricSpecificationDefinition> 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
public List<OperationLogSpecificationDefinition> 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.
-
-