StatelessAgentProfile Class
- java.
lang. Object - com.
azure. resourcemanager. devopsinfrastructure. models. AgentProfile - com.
azure. resourcemanager. devopsinfrastructure. models. StatelessAgentProfile
- com.
- com.
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 Stateless |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Stateless |
fromJson(JsonReader jsonReader)
Reads an instance of Stateless |
| String |
kind()
Get the kind property: Discriminator property for Agent |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Stateless |
withResourcePredictions(ResourcePredictions resourcePredictions)
Set the resource |
|
Stateless |
withResourcePredictionsProfile(ResourcePredictionsProfile resourcePredictionsProfile)
Set the resource |
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:
Returns:
Throws:
kind
public String kind()
Get the kind property: Discriminator property for AgentProfile.
Overrides:
StatelessAgentProfile.kind()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
StatelessAgentProfile.toJson(JsonWriter jsonWriter)Parameters:
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:
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: