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