Partager via


SiteLimits Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.SiteLimits

Implements

public final class SiteLimits
implements JsonSerializable<SiteLimits>

Metric limits set on an app.

Constructor Summary

Constructor Description
SiteLimits()

Creates an instance of SiteLimits class.

Method Summary

Modifier and Type Method and Description
static SiteLimits fromJson(JsonReader jsonReader)

Reads an instance of SiteLimits from the JsonReader.

Long maxDiskSizeInMb()

Get the maxDiskSizeInMb property: Maximum allowed disk size usage in MB.

Long maxMemoryInMb()

Get the maxMemoryInMb property: Maximum allowed memory usage in MB.

Double maxPercentageCpu()

Get the maxPercentageCpu property: Maximum allowed CPU usage percentage.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SiteLimits withMaxDiskSizeInMb(Long maxDiskSizeInMb)

Set the maxDiskSizeInMb property: Maximum allowed disk size usage in MB.

SiteLimits withMaxMemoryInMb(Long maxMemoryInMb)

Set the maxMemoryInMb property: Maximum allowed memory usage in MB.

SiteLimits withMaxPercentageCpu(Double maxPercentageCpu)

Set the maxPercentageCpu property: Maximum allowed CPU usage percentage.

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:

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.

maxDiskSizeInMb

public Long maxDiskSizeInMb()

Get the maxDiskSizeInMb property: Maximum allowed disk size usage in MB.

Returns:

the maxDiskSizeInMb value.

maxMemoryInMb

public Long maxMemoryInMb()

Get the maxMemoryInMb property: Maximum allowed memory usage in MB.

Returns:

the maxMemoryInMb value.

maxPercentageCpu

public Double maxPercentageCpu()

Get the maxPercentageCpu property: Maximum allowed CPU usage percentage.

Returns:

the maxPercentageCpu value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

maxDiskSizeInMb - the maxDiskSizeInMb value to set.

Returns:

the SiteLimits object itself.

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.

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.

Applies to