Class AgentProperties
java.lang.Object
com.azure.resourcemanager.containerregistry.models.AgentProperties
The properties that determine the run agent configuration.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AgentProperties
public AgentProperties()Creates an instance of AgentProperties class.
-
-
Method Details
-
cpu
Get the cpu property: The CPU configuration in terms of number of cores required for the run.- Returns:
- the cpu value.
-
withCpu
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.
-