SiteLimits Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. SiteLimits
- com.
Implements
public final class SiteLimits
implements JsonSerializable<SiteLimits>
Metric limits set on an app.
Constructor Summary
Constructor | Description |
---|---|
SiteLimits() |
Creates an instance of Site |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Site |
fromJson(JsonReader jsonReader)
Reads an instance of Site |
Long |
maxDiskSizeInMb()
Get the max |
Long |
maxMemoryInMb()
Get the max |
Double |
maxPercentageCpu()
Get the max |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Site |
withMaxDiskSizeInMb(Long maxDiskSizeInMb)
Set the max |
Site |
withMaxMemoryInMb(Long maxMemoryInMb)
Set the max |
Site |
withMaxPercentageCpu(Double maxPercentageCpu)
Set the max |
Methods inherited from java.lang.Object
Constructor Details
SiteLimits
public SiteLimits()
Creates an instance of SiteLimits class.
Method Details
fromJson
public static SiteLimits fromJson(JsonReader jsonReader)
Reads an instance of SiteLimits from the JsonReader.
Parameters:
Returns:
Throws:
maxDiskSizeInMb
public Long maxDiskSizeInMb()
Get the maxDiskSizeInMb property: Maximum allowed disk size usage in MB.
Returns:
maxMemoryInMb
public Long maxMemoryInMb()
Get the maxMemoryInMb property: Maximum allowed memory usage in MB.
Returns:
maxPercentageCpu
public Double maxPercentageCpu()
Get the maxPercentageCpu property: Maximum allowed CPU usage percentage.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMaxDiskSizeInMb
public SiteLimits withMaxDiskSizeInMb(Long maxDiskSizeInMb)
Set the maxDiskSizeInMb property: Maximum allowed disk size usage in MB.
Parameters:
Returns:
withMaxMemoryInMb
public SiteLimits withMaxMemoryInMb(Long maxMemoryInMb)
Set the maxMemoryInMb property: Maximum allowed memory usage in MB.
Parameters:
Returns:
withMaxPercentageCpu
public SiteLimits withMaxPercentageCpu(Double maxPercentageCpu)
Set the maxPercentageCpu property: Maximum allowed CPU usage percentage.
Parameters:
Returns:
Applies to
Azure SDK for Java