DevOpsAzureSku Class

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

Implements

public final class DevOpsAzureSku
implements JsonSerializable<DevOpsAzureSku>

The Azure SKU of the machines in the pool.

Constructor Summary

Constructor Description
DevOpsAzureSku()

Creates an instance of DevOpsAzureSku class.

Method Summary

Modifier and Type Method and Description
static DevOpsAzureSku fromJson(JsonReader jsonReader)

Reads an instance of DevOpsAzureSku from the JsonReader.

String name()

Get the name property: The Azure SKU name of the machines in the pool.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DevOpsAzureSku withName(String name)

Set the name property: The Azure SKU name of the machines in the pool.

Methods inherited from java.lang.Object

Constructor Details

DevOpsAzureSku

public DevOpsAzureSku()

Creates an instance of DevOpsAzureSku class.

Method Details

fromJson

public static DevOpsAzureSku fromJson(JsonReader jsonReader)

Reads an instance of DevOpsAzureSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The Azure SKU name of the machines in the pool.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public DevOpsAzureSku withName(String name)

Set the name property: The Azure SKU name of the machines in the pool.

Parameters:

name - the name value to set.

Returns:

the DevOpsAzureSku object itself.

Applies to