Class SiteLimits
java.lang.Object
com.azure.resourcemanager.appservice.models.SiteLimits
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SiteLimits>
Metric limits set on an app.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SiteLimits
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SiteLimits from the JsonReader.Get the maxDiskSizeInMb property: Maximum allowed disk size usage in MB.Get the maxMemoryInMb property: Maximum allowed memory usage in MB.Get the maxPercentageCpu property: Maximum allowed CPU usage percentage.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withMaxDiskSizeInMb
(Long maxDiskSizeInMb) Set the maxDiskSizeInMb property: Maximum allowed disk size usage in MB.withMaxMemoryInMb
(Long maxMemoryInMb) Set the maxMemoryInMb property: Maximum allowed memory usage in MB.withMaxPercentageCpu
(Double maxPercentageCpu) Set the maxPercentageCpu property: Maximum allowed CPU usage percentage.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SiteLimits
public SiteLimits()Creates an instance of SiteLimits class.
-
-
Method Details
-
maxPercentageCpu
Get the maxPercentageCpu property: Maximum allowed CPU usage percentage.- Returns:
- the maxPercentageCpu value.
-
withMaxPercentageCpu
Set the maxPercentageCpu property: Maximum allowed CPU usage percentage.- Parameters:
maxPercentageCpu
- the maxPercentageCpu value to set.- Returns:
- the SiteLimits object itself.
-
maxMemoryInMb
Get the maxMemoryInMb property: Maximum allowed memory usage in MB.- Returns:
- the maxMemoryInMb value.
-
withMaxMemoryInMb
Set the maxMemoryInMb property: Maximum allowed memory usage in MB.- Parameters:
maxMemoryInMb
- the maxMemoryInMb value to set.- Returns:
- the SiteLimits object itself.
-
maxDiskSizeInMb
Get the maxDiskSizeInMb property: Maximum allowed disk size usage in MB.- Returns:
- the maxDiskSizeInMb value.
-
withMaxDiskSizeInMb
Set the maxDiskSizeInMb property: Maximum allowed disk size usage in MB.- Parameters:
maxDiskSizeInMb
- the maxDiskSizeInMb value to set.- Returns:
- the SiteLimits object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<SiteLimits>
- Throws:
IOException
-
fromJson
Reads an instance of SiteLimits from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SiteLimits 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 SiteLimits.
-