Class SiteLimits
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.SiteLimits
-
public final class SiteLimits extends Object
Metric limits set on an app.
-
-
Constructor Summary
Constructors Constructor Description SiteLimits()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongmaxDiskSizeInMb()Get the maxDiskSizeInMb property: Maximum allowed disk size usage in MB.LongmaxMemoryInMb()Get the maxMemoryInMb property: Maximum allowed memory usage in MB.DoublemaxPercentageCpu()Get the maxPercentageCpu property: Maximum allowed CPU usage percentage.voidvalidate()Validates the instance.SiteLimitswithMaxDiskSizeInMb(Long maxDiskSizeInMb)Set the maxDiskSizeInMb property: Maximum allowed disk size usage in MB.SiteLimitswithMaxMemoryInMb(Long maxMemoryInMb)Set the maxMemoryInMb property: Maximum allowed memory usage in MB.SiteLimitswithMaxPercentageCpu(Double maxPercentageCpu)Set the maxPercentageCpu property: Maximum allowed CPU usage percentage.
-
-
-
Method Detail
-
maxPercentageCpu
public Double maxPercentageCpu()
Get the maxPercentageCpu property: Maximum allowed CPU usage percentage.- Returns:
- the maxPercentageCpu value.
-
withMaxPercentageCpu
public SiteLimits withMaxPercentageCpu(Double maxPercentageCpu)
Set the maxPercentageCpu property: Maximum allowed CPU usage percentage.- Parameters:
maxPercentageCpu- the maxPercentageCpu value to set.- Returns:
- the SiteLimits object itself.
-
maxMemoryInMb
public Long maxMemoryInMb()
Get the maxMemoryInMb property: Maximum allowed memory usage in MB.- Returns:
- the maxMemoryInMb value.
-
withMaxMemoryInMb
public SiteLimits withMaxMemoryInMb(Long maxMemoryInMb)
Set the maxMemoryInMb property: Maximum allowed memory usage in MB.- Parameters:
maxMemoryInMb- the maxMemoryInMb value to set.- Returns:
- the SiteLimits object itself.
-
maxDiskSizeInMb
public Long maxDiskSizeInMb()
Get the maxDiskSizeInMb property: Maximum allowed disk size usage in MB.- Returns:
- the maxDiskSizeInMb value.
-
withMaxDiskSizeInMb
public SiteLimits withMaxDiskSizeInMb(Long maxDiskSizeInMb)
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.
-
-