Class OperationServiceSpecificationDefinition

java.lang.Object
com.azure.resourcemanager.containerregistry.models.OperationServiceSpecificationDefinition

public final class OperationServiceSpecificationDefinition extends Object
The definition of Azure Monitoring list.
  • Constructor Details

    • OperationServiceSpecificationDefinition

      public OperationServiceSpecificationDefinition()
      Creates an instance of OperationServiceSpecificationDefinition class.
  • Method Details

    • 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.