StampCapacityInner Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.fluent.models.StampCapacityInner

Implements

public final class StampCapacityInner
implements JsonSerializable<StampCapacityInner>

Stamp capacity information.

Constructor Summary

Constructor Description
StampCapacityInner()

Creates an instance of StampCapacityInner class.

Method Summary

Modifier and Type Method and Description
Long availableCapacity()

Get the availableCapacity property: Available capacity (# of machines, bytes of storage etc...).

ComputeModeOptions computeMode()

Get the computeMode property: Shared/dedicated workers.

Boolean excludeFromCapacityAllocation()

Get the excludeFromCapacityAllocation property: If true, it includes basic apps.

static StampCapacityInner fromJson(JsonReader jsonReader)

Reads an instance of StampCapacityInner from the JsonReader.

Boolean isApplicableForAllComputeModes()

Get the isApplicableForAllComputeModes property: true if capacity is applicable for all apps; otherwise, false.

Boolean isLinux()

Get the isLinux property: Is this a linux stamp capacity.

String name()

Get the name property: Name of the stamp.

String siteMode()

Get the siteMode property: Shared or Dedicated.

JsonWriter toJson(JsonWriter jsonWriter)
Long totalCapacity()

Get the totalCapacity property: Total capacity (# of machines, bytes of storage etc...).

String unit()

Get the unit property: Name of the unit.

void validate()

Validates the instance.

StampCapacityInner withAvailableCapacity(Long availableCapacity)

Set the availableCapacity property: Available capacity (# of machines, bytes of storage etc...).

StampCapacityInner withComputeMode(ComputeModeOptions computeMode)

Set the computeMode property: Shared/dedicated workers.

StampCapacityInner withExcludeFromCapacityAllocation(Boolean excludeFromCapacityAllocation)

Set the excludeFromCapacityAllocation property: If true, it includes basic apps.

StampCapacityInner withIsApplicableForAllComputeModes(Boolean isApplicableForAllComputeModes)

Set the isApplicableForAllComputeModes property: true if capacity is applicable for all apps; otherwise, false.

StampCapacityInner withIsLinux(Boolean isLinux)

Set the isLinux property: Is this a linux stamp capacity.

StampCapacityInner withName(String name)

Set the name property: Name of the stamp.

StampCapacityInner withSiteMode(String siteMode)

Set the siteMode property: Shared or Dedicated.

StampCapacityInner withTotalCapacity(Long totalCapacity)

Set the totalCapacity property: Total capacity (# of machines, bytes of storage etc...).

StampCapacityInner withUnit(String unit)

Set the unit property: Name of the unit.

StampCapacityInner withWorkerSize(WorkerSizeOptions workerSize)

Set the workerSize property: Size of the machines.

StampCapacityInner withWorkerSizeId(Integer workerSizeId)

Set the workerSizeId property: Size ID of machines: 0 - Small 1 - Medium 2 - Large.

WorkerSizeOptions workerSize()

Get the workerSize property: Size of the machines.

Integer workerSizeId()

Get the workerSizeId property: Size ID of machines: 0 - Small 1 - Medium 2 - Large.

Methods inherited from java.lang.Object

Constructor Details

StampCapacityInner

public StampCapacityInner()

Creates an instance of StampCapacityInner class.

Method Details

availableCapacity

public Long availableCapacity()

Get the availableCapacity property: Available capacity (# of machines, bytes of storage etc...).

Returns:

the availableCapacity value.

computeMode

public ComputeModeOptions computeMode()

Get the computeMode property: Shared/dedicated workers.

Returns:

the computeMode value.

excludeFromCapacityAllocation

public Boolean excludeFromCapacityAllocation()

Get the excludeFromCapacityAllocation property: If true, it includes basic apps. Basic apps are not used for capacity allocation.

Returns:

the excludeFromCapacityAllocation value.

fromJson

public static StampCapacityInner fromJson(JsonReader jsonReader)

Reads an instance of StampCapacityInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StampCapacityInner 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 StampCapacityInner.

isApplicableForAllComputeModes

public Boolean isApplicableForAllComputeModes()

Get the isApplicableForAllComputeModes property: true if capacity is applicable for all apps; otherwise, false.

Returns:

the isApplicableForAllComputeModes value.

isLinux

public Boolean isLinux()

Get the isLinux property: Is this a linux stamp capacity.

Returns:

the isLinux value.

name

public String name()

Get the name property: Name of the stamp.

Returns:

the name value.

siteMode

public String siteMode()

Get the siteMode property: Shared or Dedicated.

Returns:

the siteMode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

totalCapacity

public Long totalCapacity()

Get the totalCapacity property: Total capacity (# of machines, bytes of storage etc...).

Returns:

the totalCapacity value.

unit

public String unit()

Get the unit property: Name of the unit.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

withAvailableCapacity

public StampCapacityInner withAvailableCapacity(Long availableCapacity)

Set the availableCapacity property: Available capacity (# of machines, bytes of storage etc...).

Parameters:

availableCapacity - the availableCapacity value to set.

Returns:

the StampCapacityInner object itself.

withComputeMode

public StampCapacityInner withComputeMode(ComputeModeOptions computeMode)

Set the computeMode property: Shared/dedicated workers.

Parameters:

computeMode - the computeMode value to set.

Returns:

the StampCapacityInner object itself.

withExcludeFromCapacityAllocation

public StampCapacityInner withExcludeFromCapacityAllocation(Boolean excludeFromCapacityAllocation)

Set the excludeFromCapacityAllocation property: If true, it includes basic apps. Basic apps are not used for capacity allocation.

Parameters:

excludeFromCapacityAllocation - the excludeFromCapacityAllocation value to set.

Returns:

the StampCapacityInner object itself.

withIsApplicableForAllComputeModes

public StampCapacityInner withIsApplicableForAllComputeModes(Boolean isApplicableForAllComputeModes)

Set the isApplicableForAllComputeModes property: true if capacity is applicable for all apps; otherwise, false.

Parameters:

isApplicableForAllComputeModes - the isApplicableForAllComputeModes value to set.

Returns:

the StampCapacityInner object itself.

withIsLinux

public StampCapacityInner withIsLinux(Boolean isLinux)

Set the isLinux property: Is this a linux stamp capacity.

Parameters:

isLinux - the isLinux value to set.

Returns:

the StampCapacityInner object itself.

withName

public StampCapacityInner withName(String name)

Set the name property: Name of the stamp.

Parameters:

name - the name value to set.

Returns:

the StampCapacityInner object itself.

withSiteMode

public StampCapacityInner withSiteMode(String siteMode)

Set the siteMode property: Shared or Dedicated.

Parameters:

siteMode - the siteMode value to set.

Returns:

the StampCapacityInner object itself.

withTotalCapacity

public StampCapacityInner withTotalCapacity(Long totalCapacity)

Set the totalCapacity property: Total capacity (# of machines, bytes of storage etc...).

Parameters:

totalCapacity - the totalCapacity value to set.

Returns:

the StampCapacityInner object itself.

withUnit

public StampCapacityInner withUnit(String unit)

Set the unit property: Name of the unit.

Parameters:

unit - the unit value to set.

Returns:

the StampCapacityInner object itself.

withWorkerSize

public StampCapacityInner withWorkerSize(WorkerSizeOptions workerSize)

Set the workerSize property: Size of the machines.

Parameters:

workerSize - the workerSize value to set.

Returns:

the StampCapacityInner object itself.

withWorkerSizeId

public StampCapacityInner withWorkerSizeId(Integer workerSizeId)

Set the workerSizeId property: Size ID of machines: 0 - Small 1 - Medium 2 - Large.

Parameters:

workerSizeId - the workerSizeId value to set.

Returns:

the StampCapacityInner object itself.

workerSize

public WorkerSizeOptions workerSize()

Get the workerSize property: Size of the machines.

Returns:

the workerSize value.

workerSizeId

public Integer workerSizeId()

Get the workerSizeId property: Size ID of machines: 0 - Small 1 - Medium 2 - Large.

Returns:

the workerSizeId value.

Applies to