Class WafMetricsResponseSeriesItem

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

public final class WafMetricsResponseSeriesItem extends Object implements com.azure.json.JsonSerializable<WafMetricsResponseSeriesItem>
The WafMetricsResponseSeriesItem model.
  • Constructor Details

    • WafMetricsResponseSeriesItem

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

    • metric

      public String metric()
      Get the metric property: The metric property.
      Returns:
      the metric value.
    • withMetric

      public WafMetricsResponseSeriesItem withMetric(String metric)
      Set the metric property: The metric property.
      Parameters:
      metric - the metric value to set.
      Returns:
      the WafMetricsResponseSeriesItem object itself.
    • unit

      public WafMetricsSeriesUnit unit()
      Get the unit property: The unit property.
      Returns:
      the unit value.
    • withUnit

      Set the unit property: The unit property.
      Parameters:
      unit - the unit value to set.
      Returns:
      the WafMetricsResponseSeriesItem object itself.
    • groups

      Get the groups property: The groups property.
      Returns:
      the groups value.
    • withGroups

      Set the groups property: The groups property.
      Parameters:
      groups - the groups value to set.
      Returns:
      the WafMetricsResponseSeriesItem object itself.
    • data

      Get the data property: The data property.
      Returns:
      the data value.
    • withData

      Set the data property: The data property.
      Parameters:
      data - the data value to set.
      Returns:
      the WafMetricsResponseSeriesItem 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<WafMetricsResponseSeriesItem>
      Throws:
      IOException
    • fromJson

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