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 Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerThrottlingData class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerThrottlingDatafromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerThrottlingData from the JsonReader.periods()Get the periods property: The periods property.Get the throttledPeriods property: The throttledPeriods property.Get the throttledTime property: The throttledTime property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPeriods(Integer periods) Set the periods property: The periods property.withThrottledPeriods(Integer throttledPeriods) Set the throttledPeriods property: The throttledPeriods property.withThrottledTime(Integer throttledTime) Set the throttledTime property: The throttledTime property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContainerThrottlingData
public ContainerThrottlingData()Creates an instance of ContainerThrottlingData class.
-
-
Method Details
-
periods
Get the periods property: The periods property.- Returns:
- the periods value.
-
withPeriods
Set the periods property: The periods property.- Parameters:
periods- the periods value to set.- Returns:
- the ContainerThrottlingData object itself.
-
throttledPeriods
Get the throttledPeriods property: The throttledPeriods property.- Returns:
- the throttledPeriods value.
-
withThrottledPeriods
Set the throttledPeriods property: The throttledPeriods property.- Parameters:
throttledPeriods- the throttledPeriods value to set.- Returns:
- the ContainerThrottlingData object itself.
-
throttledTime
Get the throttledTime property: The throttledTime property.- Returns:
- the throttledTime value.
-
withThrottledTime
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
- Specified by:
toJsonin interfacecom.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.
-