Share via


AgentProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.devopsinfrastructure.models.AgentProfile

Implements

public class AgentProfile
implements JsonSerializable<AgentProfile>

The agent profile of the machines in the pool.

Constructor Summary

Constructor Description
AgentProfile()

Creates an instance of AgentProfile class.

Method Summary

Modifier and Type Method and Description
static AgentProfile fromJson(JsonReader jsonReader)

Reads an instance of AgentProfile from the JsonReader.

String kind()

Get the kind property: Discriminator property for AgentProfile.

ResourcePredictions resourcePredictions()

Get the resourcePredictions property: Defines pool buffer/stand-by agents.

ResourcePredictionsProfile resourcePredictionsProfile()

Get the resourcePredictionsProfile property: Defines how the pool buffer/stand-by agents is provided.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AgentProfile withResourcePredictions(ResourcePredictions resourcePredictions)

Set the resourcePredictions property: Defines pool buffer/stand-by agents.

AgentProfile withResourcePredictionsProfile(ResourcePredictionsProfile resourcePredictionsProfile)

Set the resourcePredictionsProfile property: Defines how the pool buffer/stand-by agents is provided.

Methods inherited from java.lang.Object

Constructor Details

AgentProfile

public AgentProfile()

Creates an instance of AgentProfile class.

Method Details

fromJson

public static AgentProfile fromJson(JsonReader jsonReader)

Reads an instance of AgentProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AgentProfile 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 AgentProfile.

kind

public String kind()

Get the kind property: Discriminator property for AgentProfile.

Returns:

the kind value.

resourcePredictions

public ResourcePredictions resourcePredictions()

Get the resourcePredictions property: Defines pool buffer/stand-by agents.

Returns:

the resourcePredictions value.

resourcePredictionsProfile

public ResourcePredictionsProfile resourcePredictionsProfile()

Get the resourcePredictionsProfile property: Defines how the pool buffer/stand-by agents is provided.

Returns:

the resourcePredictionsProfile value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResourcePredictions

public AgentProfile withResourcePredictions(ResourcePredictions resourcePredictions)

Set the resourcePredictions property: Defines pool buffer/stand-by agents.

Parameters:

resourcePredictions - the resourcePredictions value to set.

Returns:

the AgentProfile object itself.

withResourcePredictionsProfile

public AgentProfile withResourcePredictionsProfile(ResourcePredictionsProfile resourcePredictionsProfile)

Set the resourcePredictionsProfile property: Defines how the pool buffer/stand-by agents is provided.

Parameters:

resourcePredictionsProfile - the resourcePredictionsProfile value to set.

Returns:

the AgentProfile object itself.

Applies to