Class ServiceSpecification

java.lang.Object
com.azure.resourcemanager.appservice.models.ServiceSpecification
All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceSpecification>

public final class ServiceSpecification extends Object implements com.azure.json.JsonSerializable<ServiceSpecification>
Resource metrics service provided by Microsoft.Insights resource provider.
  • Constructor Details

    • ServiceSpecification

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

    • metricSpecifications

      public List<MetricSpecification> metricSpecifications()
      Get the metricSpecifications property: The metricSpecifications property.
      Returns:
      the metricSpecifications value.
    • withMetricSpecifications

      public ServiceSpecification withMetricSpecifications(List<MetricSpecification> metricSpecifications)
      Set the metricSpecifications property: The metricSpecifications property.
      Parameters:
      metricSpecifications - the metricSpecifications value to set.
      Returns:
      the ServiceSpecification object itself.
    • logSpecifications

      public List<LogSpecification> logSpecifications()
      Get the logSpecifications property: The logSpecifications property.
      Returns:
      the logSpecifications value.
    • withLogSpecifications

      public ServiceSpecification withLogSpecifications(List<LogSpecification> logSpecifications)
      Set the logSpecifications property: The logSpecifications property.
      Parameters:
      logSpecifications - the logSpecifications value to set.
      Returns:
      the ServiceSpecification object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ServiceSpecification>
      Throws:
      IOException
    • fromJson

      public static ServiceSpecification fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ServiceSpecification from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ServiceSpecification 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 ServiceSpecification.