AgentProperties Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. AgentProperties
- com.
Implements
public final class AgentProperties
implements JsonSerializable<AgentProperties>
The properties that determine the run agent configuration.
Constructor Summary
Constructor | Description |
---|---|
AgentProperties() |
Creates an instance of Agent |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
cpu()
Get the cpu property: The CPU configuration in terms of number of cores required for the run. |
static
Agent |
fromJson(JsonReader jsonReader)
Reads an instance of Agent |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Agent |
withCpu(Integer cpu)
Set the cpu property: The CPU configuration in terms of number of cores required for the run. |
Methods inherited from java.lang.Object
Constructor Details
AgentProperties
public AgentProperties()
Creates an instance of AgentProperties class.
Method Details
cpu
public Integer cpu()
Get the cpu property: The CPU configuration in terms of number of cores required for the run.
Returns:
fromJson
public static AgentProperties fromJson(JsonReader jsonReader)
Reads an instance of AgentProperties from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withCpu
public AgentProperties withCpu(Integer cpu)
Set the cpu property: The CPU configuration in terms of number of cores required for the run.
Parameters:
Returns:
Applies to
Azure SDK for Java