PoolUpdateProperties Class

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

Implements

public final class PoolUpdateProperties
implements JsonSerializable<PoolUpdateProperties>

The updatable properties of the Pool.

Constructor Summary

Constructor Description
PoolUpdateProperties()

Creates an instance of PoolUpdateProperties class.

Method Summary

Modifier and Type Method and Description
AgentProfile agentProfile()

Get the agentProfile property: Defines how the machine will be handled once it executed a job.

String devCenterProjectResourceId()

Get the devCenterProjectResourceId property: The resource id of the DevCenter Project the pool belongs to.

FabricProfile fabricProfile()

Get the fabricProfile property: Defines the type of fabric the agent will run on.

static PoolUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of PoolUpdateProperties from the JsonReader.

Integer maximumConcurrency()

Get the maximumConcurrency property: Defines how many resources can there be created at any given time.

OrganizationProfile organizationProfile()

Get the organizationProfile property: Defines the organization in which the pool will be used.

ProvisioningState provisioningState()

Get the provisioningState property: The status of the current operation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PoolUpdateProperties withAgentProfile(AgentProfile agentProfile)

Set the agentProfile property: Defines how the machine will be handled once it executed a job.

PoolUpdateProperties withDevCenterProjectResourceId(String devCenterProjectResourceId)

Set the devCenterProjectResourceId property: The resource id of the DevCenter Project the pool belongs to.

PoolUpdateProperties withFabricProfile(FabricProfile fabricProfile)

Set the fabricProfile property: Defines the type of fabric the agent will run on.

PoolUpdateProperties withMaximumConcurrency(Integer maximumConcurrency)

Set the maximumConcurrency property: Defines how many resources can there be created at any given time.

PoolUpdateProperties withOrganizationProfile(OrganizationProfile organizationProfile)

Set the organizationProfile property: Defines the organization in which the pool will be used.

PoolUpdateProperties withProvisioningState(ProvisioningState provisioningState)

Set the provisioningState property: The status of the current operation.

Methods inherited from java.lang.Object

Constructor Details

PoolUpdateProperties

public PoolUpdateProperties()

Creates an instance of PoolUpdateProperties class.

Method Details

agentProfile

public AgentProfile agentProfile()

Get the agentProfile property: Defines how the machine will be handled once it executed a job.

Returns:

the agentProfile value.

devCenterProjectResourceId

public String devCenterProjectResourceId()

Get the devCenterProjectResourceId property: The resource id of the DevCenter Project the pool belongs to.

Returns:

the devCenterProjectResourceId value.

fabricProfile

public FabricProfile fabricProfile()

Get the fabricProfile property: Defines the type of fabric the agent will run on.

Returns:

the fabricProfile value.

fromJson

public static PoolUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of PoolUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

maximumConcurrency

public Integer maximumConcurrency()

Get the maximumConcurrency property: Defines how many resources can there be created at any given time.

Returns:

the maximumConcurrency value.

organizationProfile

public OrganizationProfile organizationProfile()

Get the organizationProfile property: Defines the organization in which the pool will be used.

Returns:

the organizationProfile value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The status of the current operation.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAgentProfile

public PoolUpdateProperties withAgentProfile(AgentProfile agentProfile)

Set the agentProfile property: Defines how the machine will be handled once it executed a job.

Parameters:

agentProfile - the agentProfile value to set.

Returns:

the PoolUpdateProperties object itself.

withDevCenterProjectResourceId

public PoolUpdateProperties withDevCenterProjectResourceId(String devCenterProjectResourceId)

Set the devCenterProjectResourceId property: The resource id of the DevCenter Project the pool belongs to.

Parameters:

devCenterProjectResourceId - the devCenterProjectResourceId value to set.

Returns:

the PoolUpdateProperties object itself.

withFabricProfile

public PoolUpdateProperties withFabricProfile(FabricProfile fabricProfile)

Set the fabricProfile property: Defines the type of fabric the agent will run on.

Parameters:

fabricProfile - the fabricProfile value to set.

Returns:

the PoolUpdateProperties object itself.

withMaximumConcurrency

public PoolUpdateProperties withMaximumConcurrency(Integer maximumConcurrency)

Set the maximumConcurrency property: Defines how many resources can there be created at any given time.

Parameters:

maximumConcurrency - the maximumConcurrency value to set.

Returns:

the PoolUpdateProperties object itself.

withOrganizationProfile

public PoolUpdateProperties withOrganizationProfile(OrganizationProfile organizationProfile)

Set the organizationProfile property: Defines the organization in which the pool will be used.

Parameters:

organizationProfile - the organizationProfile value to set.

Returns:

the PoolUpdateProperties object itself.

withProvisioningState

public PoolUpdateProperties withProvisioningState(ProvisioningState provisioningState)

Set the provisioningState property: The status of the current operation.

Parameters:

provisioningState - the provisioningState value to set.

Returns:

the PoolUpdateProperties object itself.

Applies to