DiskPoolCreate Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. storagepool. models. DiskPoolCreate
- com.
- com.
- com.
public final class DiskPoolCreate
extends Resource
Request payload for create or update Disk Pool request.
Constructor Summary
| Constructor | Description |
|---|---|
| DiskPoolCreate() |
Creates an instance of Disk |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
additionalCapabilities()
Get the additional |
| List<String> |
availabilityZones()
Get the availability |
| List<Disk> |
disks()
Get the disks property: List of Azure Managed Disks to attach to a Disk Pool. |
|
static
Disk |
fromJson(JsonReader jsonReader)
Reads an instance of Disk |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
managedBy()
Get the managed |
| List<String> |
managedByExtended()
Get the managed |
| 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 subnet |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Disk |
withAdditionalCapabilities(List<String> additionalCapabilities)
Set the additional |
|
Disk |
withAvailabilityZones(List<String> availabilityZones)
Set the availability |
|
Disk |
withDisks(List<Disk> disks)
Set the disks property: List of Azure Managed Disks to attach to a Disk Pool. |
|
Disk |
withLocation(String location) |
|
Disk |
withManagedBy(String managedBy)
Set the managed |
|
Disk |
withManagedByExtended(List<String> managedByExtended)
Set the managed |
|
Disk |
withSku(Sku sku)
Set the sku property: Determines the SKU of the Disk Pool. |
|
Disk |
withSubnetId(String subnetId)
Set the subnet |
|
Disk |
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:
availabilityZones
public List<String> availabilityZones()
Get the availabilityZones property: Logical zone for Disk Pool resource; example: ["1"].
Returns:
disks
public List<Disk> disks()
Get the disks property: List of Azure Managed Disks to attach to a Disk Pool.
Returns:
fromJson
public static DiskPoolCreate fromJson(JsonReader jsonReader)
Reads an instance of DiskPoolCreate from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
DiskPoolCreate.id()Returns:
managedBy
public String managedBy()
Get the managedBy property: Azure resource id. Indicates if this resource is managed by another Azure resource.
Returns:
managedByExtended
public List<String> managedByExtended()
Get the managedByExtended property: List of Azure resource ids that manage this resource.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
DiskPoolCreate.name()Returns:
sku
public Sku sku()
Get the sku property: Determines the SKU of the Disk Pool.
Returns:
subnetId
public String subnetId()
Get the subnetId property: Azure Resource ID of a Subnet for the Disk Pool.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DiskPoolCreate.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
DiskPoolCreate.type()Returns:
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:
Returns:
withAvailabilityZones
public DiskPoolCreate withAvailabilityZones(List<String> availabilityZones)
Set the availabilityZones property: Logical zone for Disk Pool resource; example: ["1"].
Parameters:
Returns:
withDisks
public DiskPoolCreate withDisks(List<Disk> disks)
Set the disks property: List of Azure Managed Disks to attach to a Disk Pool.
Parameters:
Returns:
withLocation
public DiskPoolCreate withLocation(String location)
Overrides:
DiskPoolCreate.withLocation(String location)Parameters:
withManagedBy
public DiskPoolCreate withManagedBy(String managedBy)
Set the managedBy property: Azure resource id. Indicates if this resource is managed by another Azure resource.
Parameters:
Returns:
withManagedByExtended
public DiskPoolCreate withManagedByExtended(List<String> managedByExtended)
Set the managedByExtended property: List of Azure resource ids that manage this resource.
Parameters:
Returns:
withSku
public DiskPoolCreate withSku(Sku sku)
Set the sku property: Determines the SKU of the Disk Pool.
Parameters:
Returns:
withSubnetId
public DiskPoolCreate withSubnetId(String subnetId)
Set the subnetId property: Azure Resource ID of a Subnet for the Disk Pool.
Parameters:
Returns:
withTags
public DiskPoolCreate withTags(Map<String,String> tags)
Overrides:
DiskPoolCreate.withTags(Map<String,String> tags)Parameters: