Partilhar via


BuildServiceAgentPoolSizeProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.BuildServiceAgentPoolSizeProperties

Implements

public final class BuildServiceAgentPoolSizeProperties
implements JsonSerializable<BuildServiceAgentPoolSizeProperties>

Build service agent pool size properties.

Constructor Summary

Constructor Description
BuildServiceAgentPoolSizeProperties()

Creates an instance of BuildServiceAgentPoolSizeProperties class.

Method Summary

Modifier and Type Method and Description
String cpu()

Get the cpu property: The cpu property of build service agent pool size.

static BuildServiceAgentPoolSizeProperties fromJson(JsonReader jsonReader)

Reads an instance of BuildServiceAgentPoolSizeProperties from the JsonReader.

String memory()

Get the memory property: The memory property of build service agent pool size.

String name()

Get the name property: The name of build service agent pool size.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BuildServiceAgentPoolSizeProperties withName(String name)

Set the name property: The name of build service agent pool size.

Methods inherited from java.lang.Object

Constructor Details

BuildServiceAgentPoolSizeProperties

public BuildServiceAgentPoolSizeProperties()

Creates an instance of BuildServiceAgentPoolSizeProperties class.

Method Details

cpu

public String cpu()

Get the cpu property: The cpu property of build service agent pool size.

Returns:

the cpu value.

fromJson

public static BuildServiceAgentPoolSizeProperties fromJson(JsonReader jsonReader)

Reads an instance of BuildServiceAgentPoolSizeProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

memory

public String memory()

Get the memory property: The memory property of build service agent pool size.

Returns:

the memory value.

name

public String name()

Get the name property: The name of build service agent pool size.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public BuildServiceAgentPoolSizeProperties withName(String name)

Set the name property: The name of build service agent pool size.

Parameters:

name - the name value to set.

Returns:

the BuildServiceAgentPoolSizeProperties object itself.

Applies to