StatelessAgentProfile Class

public final class StatelessAgentProfile
extends AgentProfile

Stateless profile meaning that the machines will be cleaned up after running a job.

Constructor Summary

Constructor Description
StatelessAgentProfile()

Creates an instance of StatelessAgentProfile class.

Method Summary

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

Reads an instance of StatelessAgentProfile from the JsonReader.

String kind()

Get the kind property: Discriminator property for AgentProfile.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StatelessAgentProfile withResourcePredictions(ResourcePredictions resourcePredictions)

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

StatelessAgentProfile withResourcePredictionsProfile(ResourcePredictionsProfile resourcePredictionsProfile)

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

Methods inherited from AgentProfile

Methods inherited from java.lang.Object

Constructor Details

StatelessAgentProfile

public StatelessAgentProfile()

Creates an instance of StatelessAgentProfile class.

Method Details

fromJson

public static StatelessAgentProfile fromJson(JsonReader jsonReader)

Reads an instance of StatelessAgentProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

kind

public String kind()

Get the kind property: Discriminator property for AgentProfile.

Overrides:

StatelessAgentProfile.kind()

Returns:

the kind value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

StatelessAgentProfile.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

StatelessAgentProfile.validate()

withResourcePredictions

public StatelessAgentProfile withResourcePredictions(ResourcePredictions resourcePredictions)

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

Overrides:

StatelessAgentProfile.withResourcePredictions(ResourcePredictions resourcePredictions)

Parameters:

resourcePredictions

withResourcePredictionsProfile

public StatelessAgentProfile withResourcePredictionsProfile(ResourcePredictionsProfile resourcePredictionsProfile)

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

Overrides:

StatelessAgentProfile.withResourcePredictionsProfile(ResourcePredictionsProfile resourcePredictionsProfile)

Parameters:

resourcePredictionsProfile

Applies to