AgentPoolInner Class

public final class AgentPoolInner
extends Resource

The agentpool that has the ARM resource and properties. The agentpool will have all information to create an agent pool.

Constructor Summary

Constructor Description
AgentPoolInner()

Creates an instance of AgentPoolInner class.

Method Summary

Modifier and Type Method and Description
Integer count()

Get the count property: The count of agent machine.

static AgentPoolInner fromJson(JsonReader jsonReader)

Reads an instance of AgentPoolInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

OS os()

Get the os property: The OS of agent machine.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of this agent pool.

SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

String tier()

Get the tier property: The Tier of agent machine.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

String virtualNetworkSubnetResourceId()

Get the virtualNetworkSubnetResourceId property: The Virtual Network Subnet Resource Id of the agent machine.

AgentPoolInner withCount(Integer count)

Set the count property: The count of agent machine.

AgentPoolInner withLocation(String location)
AgentPoolInner withOs(OS os)

Set the os property: The OS of agent machine.

AgentPoolInner withTags(Map<String,String> tags)
AgentPoolInner withTier(String tier)

Set the tier property: The Tier of agent machine.

AgentPoolInner withVirtualNetworkSubnetResourceId(String virtualNetworkSubnetResourceId)

Set the virtualNetworkSubnetResourceId property: The Virtual Network Subnet Resource Id of the agent machine.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

AgentPoolInner

public AgentPoolInner()

Creates an instance of AgentPoolInner class.

Method Details

count

public Integer count()

Get the count property: The count of agent machine.

Returns:

the count value.

fromJson

public static AgentPoolInner fromJson(JsonReader jsonReader)

Reads an instance of AgentPoolInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

AgentPoolInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

AgentPoolInner.name()

Returns:

the name value.

os

public OS os()

Get the os property: The OS of agent machine.

Returns:

the os value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of this agent pool.

Returns:

the provisioningState value.

systemData

public SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

Returns:

the systemData value.

tier

public String tier()

Get the tier property: The Tier of agent machine.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AgentPoolInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

AgentPoolInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

virtualNetworkSubnetResourceId

public String virtualNetworkSubnetResourceId()

Get the virtualNetworkSubnetResourceId property: The Virtual Network Subnet Resource Id of the agent machine.

Returns:

the virtualNetworkSubnetResourceId value.

withCount

public AgentPoolInner withCount(Integer count)

Set the count property: The count of agent machine.

Parameters:

count - the count value to set.

Returns:

the AgentPoolInner object itself.

withLocation

public AgentPoolInner withLocation(String location)

Overrides:

AgentPoolInner.withLocation(String location)

Parameters:

location

withOs

public AgentPoolInner withOs(OS os)

Set the os property: The OS of agent machine.

Parameters:

os - the os value to set.

Returns:

the AgentPoolInner object itself.

withTags

public AgentPoolInner withTags(Map tags)

Overrides:

AgentPoolInner.withTags(Map<String,String> tags)

Parameters:

tags

withTier

public AgentPoolInner withTier(String tier)

Set the tier property: The Tier of agent machine.

Parameters:

tier - the tier value to set.

Returns:

the AgentPoolInner object itself.

withVirtualNetworkSubnetResourceId

public AgentPoolInner withVirtualNetworkSubnetResourceId(String virtualNetworkSubnetResourceId)

Set the virtualNetworkSubnetResourceId property: The Virtual Network Subnet Resource Id of the agent machine.

Parameters:

virtualNetworkSubnetResourceId - the virtualNetworkSubnetResourceId value to set.

Returns:

the AgentPoolInner object itself.

Applies to