ContainerResources Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. ContainerResources
- com.
Implements
public final class ContainerResources
implements JsonSerializable<ContainerResources>
Container App container resource requirements.
Constructor Summary
Constructor | Description |
---|---|
ContainerResources() |
Creates an instance of Container |
Method Summary
Modifier and Type | Method and Description |
---|---|
Double |
cpu()
Get the cpu property: Required CPU in cores, e. |
static
Container |
fromJson(JsonReader jsonReader)
Reads an instance of Container |
String |
memory()
Get the memory property: Required memory, e. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Container |
withCpu(Double cpu)
Set the cpu property: Required CPU in cores, e. |
Container |
withMemory(String memory)
Set the memory property: Required memory, e. |
Methods inherited from java.lang.Object
Constructor Details
ContainerResources
public ContainerResources()
Creates an instance of ContainerResources class.
Method Details
cpu
public Double cpu()
Get the cpu property: Required CPU in cores, e.g. 0.5.
Returns:
fromJson
public static ContainerResources fromJson(JsonReader jsonReader)
Reads an instance of ContainerResources from the JsonReader.
Parameters:
Returns:
Throws:
memory
public String memory()
Get the memory property: Required memory, e.g. "250Mb".
Returns:
toJson
validate
public void validate()
Validates the instance.
withCpu
public ContainerResources withCpu(Double cpu)
Set the cpu property: Required CPU in cores, e.g. 0.5.
Parameters:
Returns:
withMemory
public ContainerResources withMemory(String memory)
Set the memory property: Required memory, e.g. "250Mb".
Parameters:
Returns:
Applies to
Azure SDK for Java