StampCapacityInner Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. fluent. models. StampCapacityInner
- com.
Implements
public final class StampCapacityInner
implements JsonSerializable<StampCapacityInner>
Stamp capacity information.
Constructor Summary
Constructor | Description |
---|---|
StampCapacityInner() |
Creates an instance of Stamp |
Method Summary
Modifier and Type | Method and Description |
---|---|
Long |
availableCapacity()
Get the available |
Compute |
computeMode()
Get the compute |
Boolean |
excludeFromCapacityAllocation()
Get the exclude |
static
Stamp |
fromJson(JsonReader jsonReader)
Reads an instance of Stamp |
Boolean |
isApplicableForAllComputeModes()
Get the is |
Boolean |
isLinux()
Get the is |
String |
name()
Get the name property: Name of the stamp. |
String |
siteMode()
Get the site |
Json |
toJson(JsonWriter jsonWriter) |
Long |
totalCapacity()
Get the total |
String |
unit()
Get the unit property: Name of the unit. |
void |
validate()
Validates the instance. |
Stamp |
withAvailableCapacity(Long availableCapacity)
Set the available |
Stamp |
withComputeMode(ComputeModeOptions computeMode)
Set the compute |
Stamp |
withExcludeFromCapacityAllocation(Boolean excludeFromCapacityAllocation)
Set the exclude |
Stamp |
withIsApplicableForAllComputeModes(Boolean isApplicableForAllComputeModes)
Set the is |
Stamp |
withIsLinux(Boolean isLinux)
Set the is |
Stamp |
withName(String name)
Set the name property: Name of the stamp. |
Stamp |
withSiteMode(String siteMode)
Set the site |
Stamp |
withTotalCapacity(Long totalCapacity)
Set the total |
Stamp |
withUnit(String unit)
Set the unit property: Name of the unit. |
Stamp |
withWorkerSize(WorkerSizeOptions workerSize)
Set the worker |
Stamp |
withWorkerSizeId(Integer workerSizeId)
Set the worker |
Worker |
workerSize()
Get the worker |
Integer |
workerSizeId()
Get the worker |
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:
computeMode
public ComputeModeOptions computeMode()
Get the computeMode property: Shared/dedicated workers.
Returns:
excludeFromCapacityAllocation
public Boolean excludeFromCapacityAllocation()
Get the excludeFromCapacityAllocation property: If true
, it includes basic apps. Basic apps are not used for capacity allocation.
Returns:
fromJson
public static StampCapacityInner fromJson(JsonReader jsonReader)
Reads an instance of StampCapacityInner from the JsonReader.
Parameters:
Returns:
Throws:
isApplicableForAllComputeModes
public Boolean isApplicableForAllComputeModes()
Get the isApplicableForAllComputeModes property: true
if capacity is applicable for all apps; otherwise, false
.
Returns:
isLinux
public Boolean isLinux()
Get the isLinux property: Is this a linux stamp capacity.
Returns:
name
public String name()
Get the name property: Name of the stamp.
Returns:
siteMode
public String siteMode()
Get the siteMode property: Shared or Dedicated.
Returns:
toJson
totalCapacity
public Long totalCapacity()
Get the totalCapacity property: Total capacity (# of machines, bytes of storage etc...).
Returns:
unit
public String unit()
Get the unit property: Name of the unit.
Returns:
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:
Returns:
withComputeMode
public StampCapacityInner withComputeMode(ComputeModeOptions computeMode)
Set the computeMode property: Shared/dedicated workers.
Parameters:
Returns:
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:
Returns:
withIsApplicableForAllComputeModes
public StampCapacityInner withIsApplicableForAllComputeModes(Boolean isApplicableForAllComputeModes)
Set the isApplicableForAllComputeModes property: true
if capacity is applicable for all apps; otherwise, false
.
Parameters:
Returns:
withIsLinux
public StampCapacityInner withIsLinux(Boolean isLinux)
Set the isLinux property: Is this a linux stamp capacity.
Parameters:
Returns:
withName
public StampCapacityInner withName(String name)
Set the name property: Name of the stamp.
Parameters:
Returns:
withSiteMode
public StampCapacityInner withSiteMode(String siteMode)
Set the siteMode property: Shared or Dedicated.
Parameters:
Returns:
withTotalCapacity
public StampCapacityInner withTotalCapacity(Long totalCapacity)
Set the totalCapacity property: Total capacity (# of machines, bytes of storage etc...).
Parameters:
Returns:
withUnit
public StampCapacityInner withUnit(String unit)
Set the unit property: Name of the unit.
Parameters:
Returns:
withWorkerSize
public StampCapacityInner withWorkerSize(WorkerSizeOptions workerSize)
Set the workerSize property: Size of the machines.
Parameters:
Returns:
withWorkerSizeId
public StampCapacityInner withWorkerSizeId(Integer workerSizeId)
Set the workerSizeId property: Size ID of machines: 0 - Small 1 - Medium 2 - Large.
Parameters:
Returns:
workerSize
public WorkerSizeOptions workerSize()
Get the workerSize property: Size of the machines.
Returns:
workerSizeId
public Integer workerSizeId()
Get the workerSizeId property: Size ID of machines: 0 - Small 1 - Medium 2 - Large.
Returns:
Applies to
Azure SDK for Java