Class ContainerResources
java.lang.Object
com.azure.resourcemanager.appservice.models.ContainerResources
Container App container resource requirements.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncpu()
Get the cpu property: Required CPU in cores, e.g.memory()
Get the memory property: Required memory, e.g.void
validate()
Validates the instance.Set the cpu property: Required CPU in cores, e.g.withMemory
(String memory) Set the memory property: Required memory, e.g.
-
Constructor Details
-
ContainerResources
public ContainerResources()
-
-
Method Details
-
cpu
Get the cpu property: Required CPU in cores, e.g. 0.5.- Returns:
- the cpu value.
-
withCpu
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
Get the memory property: Required memory, e.g. "250Mb".- Returns:
- the memory value.
-
withMemory
Set the memory property: Required memory, e.g. "250Mb".- Parameters:
memory
- the memory value to set.- Returns:
- the ContainerResources object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-