DiskPoolUpdate Class

  • java.lang.Object
    • com.azure.resourcemanager.storagepool.models.DiskPoolUpdate

Implements

public final class DiskPoolUpdate
implements JsonSerializable<DiskPoolUpdate>

Request payload for Update Disk Pool request.

Constructor Summary

Constructor Description
DiskPoolUpdate()

Creates an instance of DiskPoolUpdate class.

Method Summary

Modifier and Type Method and Description
List<Disk> disks()

Get the disks property: List of Azure Managed Disks to attach to a Disk Pool.

static DiskPoolUpdate fromJson(JsonReader jsonReader)

Reads an instance of DiskPoolUpdate from the JsonReader.

String managedBy()

Get the managedBy property: Azure resource id.

List<String> managedByExtended()

Get the managedByExtended property: List of Azure resource ids that manage this resource.

Sku sku()

Get the sku property: Determines the SKU of the Disk Pool.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DiskPoolUpdate withDisks(List<Disk> disks)

Set the disks property: List of Azure Managed Disks to attach to a Disk Pool.

DiskPoolUpdate withManagedBy(String managedBy)

Set the managedBy property: Azure resource id.

DiskPoolUpdate withManagedByExtended(List<String> managedByExtended)

Set the managedByExtended property: List of Azure resource ids that manage this resource.

DiskPoolUpdate withSku(Sku sku)

Set the sku property: Determines the SKU of the Disk Pool.

DiskPoolUpdate withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from java.lang.Object

Constructor Details

DiskPoolUpdate

public DiskPoolUpdate()

Creates an instance of DiskPoolUpdate class.

Method Details

disks

public List<Disk> disks()

Get the disks property: List of Azure Managed Disks to attach to a Disk Pool.

Returns:

the disks value.

fromJson

public static DiskPoolUpdate fromJson(JsonReader jsonReader)

Reads an instance of DiskPoolUpdate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

managedBy

public String managedBy()

Get the managedBy property: Azure resource id. Indicates if this resource is managed by another Azure resource.

Returns:

the managedBy value.

managedByExtended

public List<String> managedByExtended()

Get the managedByExtended property: List of Azure resource ids that manage this resource.

Returns:

the managedByExtended value.

sku

public Sku sku()

Get the sku property: Determines the SKU of the Disk Pool.

Returns:

the sku value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDisks

public DiskPoolUpdate withDisks(List<Disk> disks)

Set the disks property: List of Azure Managed Disks to attach to a Disk Pool.

Parameters:

disks - the disks value to set.

Returns:

the DiskPoolUpdate object itself.

withManagedBy

public DiskPoolUpdate withManagedBy(String managedBy)

Set the managedBy property: Azure resource id. Indicates if this resource is managed by another Azure resource.

Parameters:

managedBy - the managedBy value to set.

Returns:

the DiskPoolUpdate object itself.

withManagedByExtended

public DiskPoolUpdate withManagedByExtended(List<String> managedByExtended)

Set the managedByExtended property: List of Azure resource ids that manage this resource.

Parameters:

managedByExtended - the managedByExtended value to set.

Returns:

the DiskPoolUpdate object itself.

withSku

public DiskPoolUpdate withSku(Sku sku)

Set the sku property: Determines the SKU of the Disk Pool.

Parameters:

sku - the sku value to set.

Returns:

the DiskPoolUpdate object itself.

withTags

public DiskPoolUpdate withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the DiskPoolUpdate object itself.

Applies to