Class DataCenterResourceProperties
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.DataCenterResourceProperties
-
public final class DataCenterResourceProperties extends Object
Properties of a managed Cassandra data center.
-
-
Constructor Summary
Constructors Constructor Description DataCenterResourceProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanavailabilityZone()Get the availabilityZone property: If the azure data center has Availability Zone support, apply it to the Virtual Machine ScaleSet that host the cassandra data center virtual machines.StringbackupStorageCustomerKeyUri()Get the backupStorageCustomerKeyUri property: Indicates the Key Uri of the customer key to use for encryption of the backup storage account.Stringbase64EncodedCassandraYamlFragment()Get the base64EncodedCassandraYamlFragment property: A fragment of a cassandra.yaml configuration file to be included in the cassandra.yaml for all nodes in this data center.StringdataCenterLocation()Get the dataCenterLocation property: The region this data center should be created in.StringdelegatedSubnetId()Get the delegatedSubnetId property: Resource id of a subnet the nodes in this data center should have their network interfaces connected to.IntegerdiskCapacity()Get the diskCapacity property: Number of disk used for data centers.StringdiskSku()Get the diskSku property: Disk SKU used for data centers.StringmanagedDiskCustomerKeyUri()Get the managedDiskCustomerKeyUri property: Key uri to use for encryption of managed disks.IntegernodeCount()Get the nodeCount property: The number of nodes the data center should have.ManagedCassandraProvisioningStateprovisioningState()Get the provisioningState property: The status of the resource at the time the operation was called.List<SeedNode>seedNodes()Get the seedNodes property: IP addresses for seed nodes in this data center.Stringsku()Get the sku property: Virtual Machine SKU used for data centers.voidvalidate()Validates the instance.DataCenterResourcePropertieswithAvailabilityZone(Boolean availabilityZone)Set the availabilityZone property: If the azure data center has Availability Zone support, apply it to the Virtual Machine ScaleSet that host the cassandra data center virtual machines.DataCenterResourcePropertieswithBackupStorageCustomerKeyUri(String backupStorageCustomerKeyUri)Set the backupStorageCustomerKeyUri property: Indicates the Key Uri of the customer key to use for encryption of the backup storage account.DataCenterResourcePropertieswithBase64EncodedCassandraYamlFragment(String base64EncodedCassandraYamlFragment)Set the base64EncodedCassandraYamlFragment property: A fragment of a cassandra.yaml configuration file to be included in the cassandra.yaml for all nodes in this data center.DataCenterResourcePropertieswithDataCenterLocation(String dataCenterLocation)Set the dataCenterLocation property: The region this data center should be created in.DataCenterResourcePropertieswithDelegatedSubnetId(String delegatedSubnetId)Set the delegatedSubnetId property: Resource id of a subnet the nodes in this data center should have their network interfaces connected to.DataCenterResourcePropertieswithDiskCapacity(Integer diskCapacity)Set the diskCapacity property: Number of disk used for data centers.DataCenterResourcePropertieswithDiskSku(String diskSku)Set the diskSku property: Disk SKU used for data centers.DataCenterResourcePropertieswithManagedDiskCustomerKeyUri(String managedDiskCustomerKeyUri)Set the managedDiskCustomerKeyUri property: Key uri to use for encryption of managed disks.DataCenterResourcePropertieswithNodeCount(Integer nodeCount)Set the nodeCount property: The number of nodes the data center should have.DataCenterResourcePropertieswithProvisioningState(ManagedCassandraProvisioningState provisioningState)Set the provisioningState property: The status of the resource at the time the operation was called.DataCenterResourcePropertieswithSku(String sku)Set the sku property: Virtual Machine SKU used for data centers.
-
-
-
Method Detail
-
provisioningState
public ManagedCassandraProvisioningState provisioningState()
Get the provisioningState property: The status of the resource at the time the operation was called.- Returns:
- the provisioningState value.
-
withProvisioningState
public DataCenterResourceProperties withProvisioningState(ManagedCassandraProvisioningState provisioningState)
Set the provisioningState property: The status of the resource at the time the operation was called.- Parameters:
provisioningState- the provisioningState value to set.- Returns:
- the DataCenterResourceProperties object itself.
-
dataCenterLocation
public String dataCenterLocation()
Get the dataCenterLocation property: The region this data center should be created in.- Returns:
- the dataCenterLocation value.
-
withDataCenterLocation
public DataCenterResourceProperties withDataCenterLocation(String dataCenterLocation)
Set the dataCenterLocation property: The region this data center should be created in.- Parameters:
dataCenterLocation- the dataCenterLocation value to set.- Returns:
- the DataCenterResourceProperties object itself.
-
delegatedSubnetId
public String delegatedSubnetId()
Get the delegatedSubnetId property: Resource id of a subnet the nodes in this data center should have their network interfaces connected to. The subnet must be in the same region specified in 'dataCenterLocation' and must be able to route to the subnet specified in the cluster's 'delegatedManagementSubnetId' property. This resource id will be of the form '/subscriptions/<subscription id>/resourceGroups/<resource group>/providers/Microsoft.Network/virtualNetworks/<virtual network>/subnets/<subnet>'.- Returns:
- the delegatedSubnetId value.
-
withDelegatedSubnetId
public DataCenterResourceProperties withDelegatedSubnetId(String delegatedSubnetId)
Set the delegatedSubnetId property: Resource id of a subnet the nodes in this data center should have their network interfaces connected to. The subnet must be in the same region specified in 'dataCenterLocation' and must be able to route to the subnet specified in the cluster's 'delegatedManagementSubnetId' property. This resource id will be of the form '/subscriptions/<subscription id>/resourceGroups/<resource group>/providers/Microsoft.Network/virtualNetworks/<virtual network>/subnets/<subnet>'.- Parameters:
delegatedSubnetId- the delegatedSubnetId value to set.- Returns:
- the DataCenterResourceProperties object itself.
-
nodeCount
public Integer nodeCount()
Get the nodeCount property: The number of nodes the data center should have. This is the desired number. After it is set, it may take some time for the data center to be scaled to match. To monitor the number of nodes and their status, use the fetchNodeStatus method on the cluster.- Returns:
- the nodeCount value.
-
withNodeCount
public DataCenterResourceProperties withNodeCount(Integer nodeCount)
Set the nodeCount property: The number of nodes the data center should have. This is the desired number. After it is set, it may take some time for the data center to be scaled to match. To monitor the number of nodes and their status, use the fetchNodeStatus method on the cluster.- Parameters:
nodeCount- the nodeCount value to set.- Returns:
- the DataCenterResourceProperties object itself.
-
seedNodes
public List<SeedNode> seedNodes()
Get the seedNodes property: IP addresses for seed nodes in this data center. This is for reference. Generally you will want to use the seedNodes property on the cluster, which aggregates the seed nodes from all data centers in the cluster.- Returns:
- the seedNodes value.
-
base64EncodedCassandraYamlFragment
public String base64EncodedCassandraYamlFragment()
Get the base64EncodedCassandraYamlFragment property: A fragment of a cassandra.yaml configuration file to be included in the cassandra.yaml for all nodes in this data center. The fragment should be Base64 encoded, and only a subset of keys are allowed.- Returns:
- the base64EncodedCassandraYamlFragment value.
-
withBase64EncodedCassandraYamlFragment
public DataCenterResourceProperties withBase64EncodedCassandraYamlFragment(String base64EncodedCassandraYamlFragment)
Set the base64EncodedCassandraYamlFragment property: A fragment of a cassandra.yaml configuration file to be included in the cassandra.yaml for all nodes in this data center. The fragment should be Base64 encoded, and only a subset of keys are allowed.- Parameters:
base64EncodedCassandraYamlFragment- the base64EncodedCassandraYamlFragment value to set.- Returns:
- the DataCenterResourceProperties object itself.
-
managedDiskCustomerKeyUri
public String managedDiskCustomerKeyUri()
Get the managedDiskCustomerKeyUri property: Key uri to use for encryption of managed disks. Ensure the system assigned identity of the cluster has been assigned appropriate permissions(key get/wrap/unwrap permissions) on the key.- Returns:
- the managedDiskCustomerKeyUri value.
-
withManagedDiskCustomerKeyUri
public DataCenterResourceProperties withManagedDiskCustomerKeyUri(String managedDiskCustomerKeyUri)
Set the managedDiskCustomerKeyUri property: Key uri to use for encryption of managed disks. Ensure the system assigned identity of the cluster has been assigned appropriate permissions(key get/wrap/unwrap permissions) on the key.- Parameters:
managedDiskCustomerKeyUri- the managedDiskCustomerKeyUri value to set.- Returns:
- the DataCenterResourceProperties object itself.
-
backupStorageCustomerKeyUri
public String backupStorageCustomerKeyUri()
Get the backupStorageCustomerKeyUri property: Indicates the Key Uri of the customer key to use for encryption of the backup storage account.- Returns:
- the backupStorageCustomerKeyUri value.
-
withBackupStorageCustomerKeyUri
public DataCenterResourceProperties withBackupStorageCustomerKeyUri(String backupStorageCustomerKeyUri)
Set the backupStorageCustomerKeyUri property: Indicates the Key Uri of the customer key to use for encryption of the backup storage account.- Parameters:
backupStorageCustomerKeyUri- the backupStorageCustomerKeyUri value to set.- Returns:
- the DataCenterResourceProperties object itself.
-
sku
public String sku()
Get the sku property: Virtual Machine SKU used for data centers. Default value is Standard_DS14_v2.- Returns:
- the sku value.
-
withSku
public DataCenterResourceProperties withSku(String sku)
Set the sku property: Virtual Machine SKU used for data centers. Default value is Standard_DS14_v2.- Parameters:
sku- the sku value to set.- Returns:
- the DataCenterResourceProperties object itself.
-
diskSku
public String diskSku()
Get the diskSku property: Disk SKU used for data centers. Default value is P30.- Returns:
- the diskSku value.
-
withDiskSku
public DataCenterResourceProperties withDiskSku(String diskSku)
Set the diskSku property: Disk SKU used for data centers. Default value is P30.- Parameters:
diskSku- the diskSku value to set.- Returns:
- the DataCenterResourceProperties object itself.
-
diskCapacity
public Integer diskCapacity()
Get the diskCapacity property: Number of disk used for data centers. Default value is 4.- Returns:
- the diskCapacity value.
-
withDiskCapacity
public DataCenterResourceProperties withDiskCapacity(Integer diskCapacity)
Set the diskCapacity property: Number of disk used for data centers. Default value is 4.- Parameters:
diskCapacity- the diskCapacity value to set.- Returns:
- the DataCenterResourceProperties object itself.
-
availabilityZone
public Boolean availabilityZone()
Get the availabilityZone property: If the azure data center has Availability Zone support, apply it to the Virtual Machine ScaleSet that host the cassandra data center virtual machines.- Returns:
- the availabilityZone value.
-
withAvailabilityZone
public DataCenterResourceProperties withAvailabilityZone(Boolean availabilityZone)
Set the availabilityZone property: If the azure data center has Availability Zone support, apply it to the Virtual Machine ScaleSet that host the cassandra data center virtual machines.- Parameters:
availabilityZone- the availabilityZone value to set.- Returns:
- the DataCenterResourceProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-