Class AgentProperties
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.AgentProperties
-
public final class AgentProperties extends Object
The properties that determine the run agent configuration.
-
-
Constructor Summary
Constructors Constructor Description AgentProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integercpu()Get the cpu property: The CPU configuration in terms of number of cores required for the run.voidvalidate()Validates the instance.AgentPropertieswithCpu(Integer cpu)Set the cpu property: The CPU configuration in terms of number of cores required for the run.
-
-
-
Method Detail
-
cpu
public Integer cpu()
Get the cpu property: The CPU configuration in terms of number of cores required for the run.- Returns:
- the cpu value.
-
withCpu
public AgentProperties withCpu(Integer cpu)
Set the cpu property: The CPU configuration in terms of number of cores required for the run.- Parameters:
cpu- the cpu value to set.- Returns:
- the AgentProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-