Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.appservice; import com.fasterxml.jackson.annotation.JsonProperty;
Metric limits set on an app.
/** * Metric limits set on an app. */
public class SiteLimits {
Maximum allowed CPU usage percentage.
/** * Maximum allowed CPU usage percentage. */
@JsonProperty(value = "maxPercentageCpu") private Double maxPercentageCpu;
Maximum allowed memory usage in MB.
/** * Maximum allowed memory usage in MB. */
@JsonProperty(value = "maxMemoryInMb") private Long maxMemoryInMb;
Maximum allowed disk size usage in MB.
/** * Maximum allowed disk size usage in MB. */
@JsonProperty(value = "maxDiskSizeInMb") private Long maxDiskSizeInMb;
Get maximum allowed CPU usage percentage.
Returns:the maxPercentageCpu value
/** * Get maximum allowed CPU usage percentage. * * @return the maxPercentageCpu value */
public Double maxPercentageCpu() { return this.maxPercentageCpu; }
Set maximum allowed CPU usage percentage.
Params:
  • maxPercentageCpu – the maxPercentageCpu value to set
Returns:the SiteLimits object itself.
/** * Set maximum allowed CPU usage percentage. * * @param maxPercentageCpu the maxPercentageCpu value to set * @return the SiteLimits object itself. */
public SiteLimits withMaxPercentageCpu(Double maxPercentageCpu) { this.maxPercentageCpu = maxPercentageCpu; return this; }
Get maximum allowed memory usage in MB.
Returns:the maxMemoryInMb value
/** * Get maximum allowed memory usage in MB. * * @return the maxMemoryInMb value */
public Long maxMemoryInMb() { return this.maxMemoryInMb; }
Set maximum allowed memory usage in MB.
Params:
  • maxMemoryInMb – the maxMemoryInMb value to set
Returns:the SiteLimits object itself.
/** * Set maximum allowed memory usage in MB. * * @param maxMemoryInMb the maxMemoryInMb value to set * @return the SiteLimits object itself. */
public SiteLimits withMaxMemoryInMb(Long maxMemoryInMb) { this.maxMemoryInMb = maxMemoryInMb; return this; }
Get maximum allowed disk size usage in MB.
Returns:the maxDiskSizeInMb value
/** * Get maximum allowed disk size usage in MB. * * @return the maxDiskSizeInMb value */
public Long maxDiskSizeInMb() { return this.maxDiskSizeInMb; }
Set maximum allowed disk size usage in MB.
Params:
  • maxDiskSizeInMb – the maxDiskSizeInMb value to set
Returns:the SiteLimits object itself.
/** * Set maximum allowed disk size usage in MB. * * @param maxDiskSizeInMb the maxDiskSizeInMb value to set * @return the SiteLimits object itself. */
public SiteLimits withMaxDiskSizeInMb(Long maxDiskSizeInMb) { this.maxDiskSizeInMb = maxDiskSizeInMb; return this; } }