DiskPoolCreate Class

public final class DiskPoolCreate
extends Resource

Request payload for create or update Disk Pool request.

Constructor Summary

Constructor Description
DiskPoolCreate()

Creates an instance of DiskPoolCreate class.

Method Summary

Modifier and Type Method and Description
List<String> additionalCapabilities()

Get the additionalCapabilities property: List of additional capabilities for a Disk Pool.

List<String> availabilityZones()

Get the availabilityZones property: Logical zone for Disk Pool resource; example: ["1"].

List<Disk> disks()

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

static DiskPoolCreate fromJson(JsonReader jsonReader)

Reads an instance of DiskPoolCreate from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

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.

String name()

Get the name property: The name of the resource.

Sku sku()

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

String subnetId()

Get the subnetId property: Azure Resource ID of a Subnet for the Disk Pool.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

DiskPoolCreate withAdditionalCapabilities(List<String> additionalCapabilities)

Set the additionalCapabilities property: List of additional capabilities for a Disk Pool.

DiskPoolCreate withAvailabilityZones(List<String> availabilityZones)

Set the availabilityZones property: Logical zone for Disk Pool resource; example: ["1"].

DiskPoolCreate withDisks(List<Disk> disks)

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

DiskPoolCreate withLocation(String location)
DiskPoolCreate withManagedBy(String managedBy)

Set the managedBy property: Azure resource id.

DiskPoolCreate withManagedByExtended(List<String> managedByExtended)

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

DiskPoolCreate withSku(Sku sku)

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

DiskPoolCreate withSubnetId(String subnetId)

Set the subnetId property: Azure Resource ID of a Subnet for the Disk Pool.

DiskPoolCreate withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

DiskPoolCreate

public DiskPoolCreate()

Creates an instance of DiskPoolCreate class.

Method Details

additionalCapabilities

public List<String> additionalCapabilities()

Get the additionalCapabilities property: List of additional capabilities for a Disk Pool.

Returns:

the additionalCapabilities value.

availabilityZones

public List<String> availabilityZones()

Get the availabilityZones property: Logical zone for Disk Pool resource; example: ["1"].

Returns:

the availabilityZones value.

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 DiskPoolCreate fromJson(JsonReader jsonReader)

Reads an instance of DiskPoolCreate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

DiskPoolCreate.id()

Returns:

the id value.

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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DiskPoolCreate.name()

Returns:

the name value.

sku

public Sku sku()

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

Returns:

the sku value.

subnetId

public String subnetId()

Get the subnetId property: Azure Resource ID of a Subnet for the Disk Pool.

Returns:

the subnetId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DiskPoolCreate.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DiskPoolCreate.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAdditionalCapabilities

public DiskPoolCreate withAdditionalCapabilities(List<String> additionalCapabilities)

Set the additionalCapabilities property: List of additional capabilities for a Disk Pool.

Parameters:

additionalCapabilities - the additionalCapabilities value to set.

Returns:

the DiskPoolCreate object itself.

withAvailabilityZones

public DiskPoolCreate withAvailabilityZones(List<String> availabilityZones)

Set the availabilityZones property: Logical zone for Disk Pool resource; example: ["1"].

Parameters:

availabilityZones - the availabilityZones value to set.

Returns:

the DiskPoolCreate object itself.

withDisks

public DiskPoolCreate 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 DiskPoolCreate object itself.

withLocation

public DiskPoolCreate withLocation(String location)

Overrides:

DiskPoolCreate.withLocation(String location)

Parameters:

location

withManagedBy

public DiskPoolCreate 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 DiskPoolCreate object itself.

withManagedByExtended

public DiskPoolCreate 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 DiskPoolCreate object itself.

withSku

public DiskPoolCreate withSku(Sku sku)

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

Parameters:

sku - the sku value to set.

Returns:

the DiskPoolCreate object itself.

withSubnetId

public DiskPoolCreate withSubnetId(String subnetId)

Set the subnetId property: Azure Resource ID of a Subnet for the Disk Pool.

Parameters:

subnetId - the subnetId value to set.

Returns:

the DiskPoolCreate object itself.

withTags

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

Overrides:

DiskPoolCreate.withTags(Map<String,String> tags)

Parameters:

tags

Applies to