Class ContainerThrottlingData

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

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

    • ContainerThrottlingData

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

    • periods

      public Integer periods()
      Get the periods property: The periods property.
      Returns:
      the periods value.
    • withPeriods

      public ContainerThrottlingData withPeriods(Integer periods)
      Set the periods property: The periods property.
      Parameters:
      periods - the periods value to set.
      Returns:
      the ContainerThrottlingData object itself.
    • throttledPeriods

      public Integer throttledPeriods()
      Get the throttledPeriods property: The throttledPeriods property.
      Returns:
      the throttledPeriods value.
    • withThrottledPeriods

      public ContainerThrottlingData withThrottledPeriods(Integer throttledPeriods)
      Set the throttledPeriods property: The throttledPeriods property.
      Parameters:
      throttledPeriods - the throttledPeriods value to set.
      Returns:
      the ContainerThrottlingData object itself.
    • throttledTime

      public Integer throttledTime()
      Get the throttledTime property: The throttledTime property.
      Returns:
      the throttledTime value.
    • withThrottledTime

      public ContainerThrottlingData withThrottledTime(Integer throttledTime)
      Set the throttledTime property: The throttledTime property.
      Parameters:
      throttledTime - the throttledTime value to set.
      Returns:
      the ContainerThrottlingData 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<ContainerThrottlingData>
      Throws:
      IOException
    • fromJson

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