Class ContainerResources
- java.lang.Object
-
- com.azure.resourcemanager.appcontainers.models.ContainerResources
-
public final class ContainerResources extends Object
Container App container resource requirements.
-
-
Constructor Summary
Constructors Constructor Description ContainerResources()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
cpu()
Get the cpu property: Required CPU in cores, e.g.String
ephemeralStorage()
Get the ephemeralStorage property: Ephemeral Storage, e.g.String
memory()
Get the memory property: Required memory, e.g.void
validate()
Validates the instance.ContainerResources
withCpu(Double cpu)
Set the cpu property: Required CPU in cores, e.g.ContainerResources
withMemory(String memory)
Set the memory property: Required memory, e.g.
-
-
-
Method Detail
-
cpu
public Double cpu()
Get the cpu property: Required CPU in cores, e.g. 0.5.- Returns:
- the cpu value.
-
withCpu
public ContainerResources withCpu(Double cpu)
Set the cpu property: Required CPU in cores, e.g. 0.5.- Parameters:
cpu
- the cpu value to set.- Returns:
- the ContainerResources object itself.
-
memory
public String memory()
Get the memory property: Required memory, e.g. "250Mb".- Returns:
- the memory value.
-
withMemory
public ContainerResources withMemory(String memory)
Set the memory property: Required memory, e.g. "250Mb".- Parameters:
memory
- the memory value to set.- Returns:
- the ContainerResources object itself.
-
ephemeralStorage
public String ephemeralStorage()
Get the ephemeralStorage property: Ephemeral Storage, e.g. "1Gi".- Returns:
- the ephemeralStorage value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-