Class StampCapacityInner
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.StampCapacityInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<StampCapacityInner>
public final class StampCapacityInner
extends Object
implements com.azure.json.JsonSerializable<StampCapacityInner>
Stamp capacity information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the availableCapacity property: Available capacity (# of machines, bytes of storage etc...).Get the computeMode property: Shared/dedicated workers.Get the excludeFromCapacityAllocation property: If <code>true</code>, it includes basic apps.static StampCapacityInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of StampCapacityInner from the JsonReader.Get the isApplicableForAllComputeModes property: <code>true</code> if capacity is applicable for all apps; otherwise, <code>false</code>.isLinux()Get the isLinux property: Is this a linux stamp capacity.name()Get the name property: Name of the stamp.siteMode()Get the siteMode property: Shared or Dedicated.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the totalCapacity property: Total capacity (# of machines, bytes of storage etc...).unit()Get the unit property: Name of the unit.voidvalidate()Validates the instance.withAvailableCapacity(Long availableCapacity) Set the availableCapacity property: Available capacity (# of machines, bytes of storage etc...).withComputeMode(ComputeModeOptions computeMode) Set the computeMode property: Shared/dedicated workers.withExcludeFromCapacityAllocation(Boolean excludeFromCapacityAllocation) Set the excludeFromCapacityAllocation property: If <code>true</code>, it includes basic apps.withIsApplicableForAllComputeModes(Boolean isApplicableForAllComputeModes) Set the isApplicableForAllComputeModes property: <code>true</code> if capacity is applicable for all apps; otherwise, <code>false</code>.withIsLinux(Boolean isLinux) Set the isLinux property: Is this a linux stamp capacity.Set the name property: Name of the stamp.withSiteMode(String siteMode) Set the siteMode property: Shared or Dedicated.withTotalCapacity(Long totalCapacity) Set the totalCapacity property: Total capacity (# of machines, bytes of storage etc...).Set the unit property: Name of the unit.withWorkerSize(WorkerSizeOptions workerSize) Set the workerSize property: Size of the machines.withWorkerSizeId(Integer workerSizeId) Set the workerSizeId property: Size ID of machines: 0 - Small 1 - Medium 2 - Large.Get the workerSize property: Size of the machines.Get the workerSizeId property: Size ID of machines: 0 - Small 1 - Medium 2 - Large.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
StampCapacityInner
public StampCapacityInner()Creates an instance of StampCapacityInner class.
-
-
Method Details
-
name
Get the name property: Name of the stamp.- Returns:
- the name value.
-
withName
Set the name property: Name of the stamp.- Parameters:
name- the name value to set.- Returns:
- the StampCapacityInner object itself.
-
availableCapacity
Get the availableCapacity property: Available capacity (# of machines, bytes of storage etc...).- Returns:
- the availableCapacity value.
-
withAvailableCapacity
Set the availableCapacity property: Available capacity (# of machines, bytes of storage etc...).- Parameters:
availableCapacity- the availableCapacity value to set.- Returns:
- the StampCapacityInner object itself.
-
totalCapacity
Get the totalCapacity property: Total capacity (# of machines, bytes of storage etc...).- Returns:
- the totalCapacity value.
-
withTotalCapacity
Set the totalCapacity property: Total capacity (# of machines, bytes of storage etc...).- Parameters:
totalCapacity- the totalCapacity value to set.- Returns:
- the StampCapacityInner object itself.
-
unit
Get the unit property: Name of the unit.- Returns:
- the unit value.
-
withUnit
Set the unit property: Name of the unit.- Parameters:
unit- the unit value to set.- Returns:
- the StampCapacityInner object itself.
-
computeMode
Get the computeMode property: Shared/dedicated workers.- Returns:
- the computeMode value.
-
withComputeMode
Set the computeMode property: Shared/dedicated workers.- Parameters:
computeMode- the computeMode value to set.- Returns:
- the StampCapacityInner object itself.
-
workerSize
Get the workerSize property: Size of the machines.- Returns:
- the workerSize value.
-
withWorkerSize
Set the workerSize property: Size of the machines.- Parameters:
workerSize- the workerSize value to set.- Returns:
- the StampCapacityInner object itself.
-
workerSizeId
Get the workerSizeId property: Size ID of machines: 0 - Small 1 - Medium 2 - Large.- Returns:
- the workerSizeId value.
-
withWorkerSizeId
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.
-
excludeFromCapacityAllocation
Get the excludeFromCapacityAllocation property: If <code>true</code>, it includes basic apps. Basic apps are not used for capacity allocation.- Returns:
- the excludeFromCapacityAllocation value.
-
withExcludeFromCapacityAllocation
Set the excludeFromCapacityAllocation property: If <code>true</code>, it includes basic apps. Basic apps are not used for capacity allocation.- Parameters:
excludeFromCapacityAllocation- the excludeFromCapacityAllocation value to set.- Returns:
- the StampCapacityInner object itself.
-
isApplicableForAllComputeModes
Get the isApplicableForAllComputeModes property: <code>true</code> if capacity is applicable for all apps; otherwise, <code>false</code>.- Returns:
- the isApplicableForAllComputeModes value.
-
withIsApplicableForAllComputeModes
public StampCapacityInner withIsApplicableForAllComputeModes(Boolean isApplicableForAllComputeModes) Set the isApplicableForAllComputeModes property: <code>true</code> if capacity is applicable for all apps; otherwise, <code>false</code>.- Parameters:
isApplicableForAllComputeModes- the isApplicableForAllComputeModes value to set.- Returns:
- the StampCapacityInner object itself.
-
siteMode
Get the siteMode property: Shared or Dedicated.- Returns:
- the siteMode value.
-
withSiteMode
Set the siteMode property: Shared or Dedicated.- Parameters:
siteMode- the siteMode value to set.- Returns:
- the StampCapacityInner object itself.
-
isLinux
Get the isLinux property: Is this a linux stamp capacity.- Returns:
- the isLinux value.
-
withIsLinux
Set the isLinux property: Is this a linux stamp capacity.- Parameters:
isLinux- the isLinux value to set.- Returns:
- the StampCapacityInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<StampCapacityInner>- Throws:
IOException
-
fromJson
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.
-