Dela via


WorkerPool Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.fluent.models.WorkerPool

Implements

public final class WorkerPool
implements JsonSerializable<WorkerPool>

Worker pool of an App Service Environment.

Constructor Summary

Constructor Description
WorkerPool()

Creates an instance of WorkerPool class.

Method Summary

Modifier and Type Method and Description
ComputeModeOptions computeMode()

Get the computeMode property: Shared or dedicated app hosting.

static WorkerPool fromJson(JsonReader jsonReader)

Reads an instance of WorkerPool from the JsonReader.

List<String> instanceNames()

Get the instanceNames property: Names of all instances in the worker pool (read only).

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WorkerPool withComputeMode(ComputeModeOptions computeMode)

Set the computeMode property: Shared or dedicated app hosting.

WorkerPool withWorkerCount(Integer workerCount)

Set the workerCount property: Number of instances in the worker pool.

WorkerPool withWorkerSize(String workerSize)

Set the workerSize property: VM size of the worker pool instances.

WorkerPool withWorkerSizeId(Integer workerSizeId)

Set the workerSizeId property: Worker size ID for referencing this worker pool.

Integer workerCount()

Get the workerCount property: Number of instances in the worker pool.

String workerSize()

Get the workerSize property: VM size of the worker pool instances.

Integer workerSizeId()

Get the workerSizeId property: Worker size ID for referencing this worker pool.

Methods inherited from java.lang.Object

Constructor Details

WorkerPool

public WorkerPool()

Creates an instance of WorkerPool class.

Method Details

computeMode

public ComputeModeOptions computeMode()

Get the computeMode property: Shared or dedicated app hosting.

Returns:

the computeMode value.

fromJson

public static WorkerPool fromJson(JsonReader jsonReader)

Reads an instance of WorkerPool from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

instanceNames

public List<String> instanceNames()

Get the instanceNames property: Names of all instances in the worker pool (read only).

Returns:

the instanceNames value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withComputeMode

public WorkerPool withComputeMode(ComputeModeOptions computeMode)

Set the computeMode property: Shared or dedicated app hosting.

Parameters:

computeMode - the computeMode value to set.

Returns:

the WorkerPool object itself.

withWorkerCount

public WorkerPool withWorkerCount(Integer workerCount)

Set the workerCount property: Number of instances in the worker pool.

Parameters:

workerCount - the workerCount value to set.

Returns:

the WorkerPool object itself.

withWorkerSize

public WorkerPool withWorkerSize(String workerSize)

Set the workerSize property: VM size of the worker pool instances.

Parameters:

workerSize - the workerSize value to set.

Returns:

the WorkerPool object itself.

withWorkerSizeId

public WorkerPool withWorkerSizeId(Integer workerSizeId)

Set the workerSizeId property: Worker size ID for referencing this worker pool.

Parameters:

workerSizeId - the workerSizeId value to set.

Returns:

the WorkerPool object itself.

workerCount

public Integer workerCount()

Get the workerCount property: Number of instances in the worker pool.

Returns:

the workerCount value.

workerSize

public String workerSize()

Get the workerSize property: VM size of the worker pool instances.

Returns:

the workerSize value.

workerSizeId

public Integer workerSizeId()

Get the workerSizeId property: Worker size ID for referencing this worker pool.

Returns:

the workerSizeId value.

Applies to