Class DiskPoolCreate
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.storagepool.models.DiskPoolCreate
public final class DiskPoolCreate
extends com.azure.core.management.Resource
Request payload for create or update Disk Pool request.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the additionalCapabilities property: List of additional capabilities for a Disk Pool.Get the availabilityZones property: Logical zone for Disk Pool resource; example: ["1"].disks()
Get the disks property: List of Azure Managed Disks to attach to a Disk Pool.Get the managedBy property: Azure resource id.Get the managedByExtended property: List of Azure resource ids that manage this resource.sku()
Get the sku property: Determines the SKU of the Disk Pool.subnetId()
Get the subnetId property: Azure Resource ID of a Subnet for the Disk Pool.void
validate()
Validates the instance.withAdditionalCapabilities
(List<String> additionalCapabilities) Set the additionalCapabilities property: List of additional capabilities for a Disk Pool.withAvailabilityZones
(List<String> availabilityZones) Set the availabilityZones property: Logical zone for Disk Pool resource; example: ["1"].Set the disks property: List of Azure Managed Disks to attach to a Disk Pool.withLocation
(String location) withManagedBy
(String managedBy) Set the managedBy property: Azure resource id.withManagedByExtended
(List<String> managedByExtended) Set the managedByExtended property: List of Azure resource ids that manage this resource.Set the sku property: Determines the SKU of the Disk Pool.withSubnetId
(String subnetId) Set the subnetId property: Azure Resource ID of a Subnet for the Disk Pool.Methods inherited from class com.azure.core.management.Resource
location, tags
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
DiskPoolCreate
public DiskPoolCreate()Creates an instance of DiskPoolCreate class.
-
-
Method Details
-
sku
Get the sku property: Determines the SKU of the Disk Pool.- Returns:
- the sku value.
-
withSku
Set the sku property: Determines the SKU of the Disk Pool.- Parameters:
sku
- the sku value to set.- Returns:
- the DiskPoolCreate object itself.
-
managedBy
Get the managedBy property: Azure resource id. Indicates if this resource is managed by another Azure resource.- Returns:
- the managedBy value.
-
withManagedBy
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.
-
managedByExtended
Get the managedByExtended property: List of Azure resource ids that manage this resource.- Returns:
- the managedByExtended value.
-
withManagedByExtended
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.
-
withLocation
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
availabilityZones
Get the availabilityZones property: Logical zone for Disk Pool resource; example: ["1"].- Returns:
- the availabilityZones value.
-
withAvailabilityZones
Set the availabilityZones property: Logical zone for Disk Pool resource; example: ["1"].- Parameters:
availabilityZones
- the availabilityZones value to set.- Returns:
- the DiskPoolCreate object itself.
-
disks
Get the disks property: List of Azure Managed Disks to attach to a Disk Pool.- Returns:
- the disks value.
-
withDisks
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.
-
subnetId
Get the subnetId property: Azure Resource ID of a Subnet for the Disk Pool.- Returns:
- the subnetId value.
-
withSubnetId
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.
-
additionalCapabilities
Get the additionalCapabilities property: List of additional capabilities for a Disk Pool.- Returns:
- the additionalCapabilities value.
-
withAdditionalCapabilities
Set the additionalCapabilities property: List of additional capabilities for a Disk Pool.- Parameters:
additionalCapabilities
- the additionalCapabilities value to set.- Returns:
- the DiskPoolCreate object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-