AgentProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.AgentProperties

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 AgentProperties class.

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 AgentProperties fromJson(JsonReader jsonReader)

Reads an instance of AgentProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AgentProperties 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:

the cpu value.

fromJson

public static AgentProperties fromJson(JsonReader jsonReader)

Reads an instance of AgentProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AgentProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the AgentProperties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

cpu - the cpu value to set.

Returns:

the AgentProperties object itself.

Applies to