Class DataCenterResourceProperties
java.lang.Object
com.azure.resourcemanager.cosmos.models.DataCenterResourceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DataCenterResourceProperties>
public final class DataCenterResourceProperties
extends Object
implements com.azure.json.JsonSerializable<DataCenterResourceProperties>
Properties of a managed Cassandra data center.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DataCenterResourceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the authenticationMethodLdapProperties property: Ldap authentication method properties.Get the availabilityZone property: If the data center has Availability Zone support, apply it to the Virtual Machine ScaleSet that host the cassandra data center virtual machines.Get the backupStorageCustomerKeyUri property: Indicates the Key Uri of the customer key to use for encryption of the backup storage account.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.Get the dataCenterLocation property: The region this data center should be created in.Get the deallocated property: Whether the data center has been deallocated.Get the delegatedSubnetId property: Resource id of a subnet the nodes in this data center should have their network interfaces connected to.Get the diskCapacity property: Number of disks attached to each node.diskSku()
Get the diskSku property: Disk SKU used for data centers.static DataCenterResourceProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DataCenterResourceProperties from the JsonReader.Get the managedDiskCustomerKeyUri property: Key uri to use for encryption of managed disks.Get the nodeCount property: The number of nodes the data center should have.Get the privateEndpointIpAddress property: Ip of the VPN Endpoint for this data center.Get the provisionError property: Error related to resource provisioning.Get the provisioningState property: The status of the resource at the time the operation was called.Get the seedNodes property: IP addresses for seed nodes in this data center.sku()
Get the sku property: Virtual Machine SKU used for data centers.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAuthenticationMethodLdapProperties
(AuthenticationMethodLdapProperties authenticationMethodLdapProperties) Set the authenticationMethodLdapProperties property: Ldap authentication method properties.withAvailabilityZone
(Boolean availabilityZone) Set the availabilityZone property: If the data center has Availability Zone support, apply it to the Virtual Machine ScaleSet that host the cassandra data center virtual machines.withBackupStorageCustomerKeyUri
(String backupStorageCustomerKeyUri) Set the backupStorageCustomerKeyUri property: Indicates the Key Uri of the customer key to use for encryption of the backup storage account.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.withDataCenterLocation
(String dataCenterLocation) Set the dataCenterLocation property: The region this data center should be created in.withDeallocated
(Boolean deallocated) Set the deallocated property: Whether the data center has been deallocated.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.withDiskCapacity
(Integer diskCapacity) Set the diskCapacity property: Number of disks attached to each node.withDiskSku
(String diskSku) Set the diskSku property: Disk SKU used for data centers.withManagedDiskCustomerKeyUri
(String managedDiskCustomerKeyUri) Set the managedDiskCustomerKeyUri property: Key uri to use for encryption of managed disks.withNodeCount
(Integer nodeCount) Set the nodeCount property: The number of nodes the data center should have.withPrivateEndpointIpAddress
(String privateEndpointIpAddress) Set the privateEndpointIpAddress property: Ip of the VPN Endpoint for this data center.withProvisionError
(CassandraError provisionError) Set the provisionError property: Error related to resource provisioning.withProvisioningState
(ManagedCassandraProvisioningState provisioningState) Set the provisioningState property: The status of the resource at the time the operation was called.Set the sku property: Virtual Machine SKU used for data centers.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DataCenterResourceProperties
public DataCenterResourceProperties()Creates an instance of DataCenterResourceProperties class.
-
-
Method Details
-
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
Get the dataCenterLocation property: The region this data center should be created in.- Returns:
- the dataCenterLocation value.
-
withDataCenterLocation
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
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
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
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
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
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
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
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
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
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
Get the sku property: Virtual Machine SKU used for data centers. Default value is Standard_DS14_v2.- Returns:
- the sku value.
-
withSku
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
Get the diskSku property: Disk SKU used for data centers. Default value is P30.- Returns:
- the diskSku value.
-
withDiskSku
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
Get the diskCapacity property: Number of disks attached to each node. Default is 4.- Returns:
- the diskCapacity value.
-
withDiskCapacity
Set the diskCapacity property: Number of disks attached to each node. Default is 4.- Parameters:
diskCapacity
- the diskCapacity value to set.- Returns:
- the DataCenterResourceProperties object itself.
-
availabilityZone
Get the availabilityZone property: If the 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
Set the availabilityZone property: If the 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.
-
authenticationMethodLdapProperties
Get the authenticationMethodLdapProperties property: Ldap authentication method properties. This feature is in preview.- Returns:
- the authenticationMethodLdapProperties value.
-
withAuthenticationMethodLdapProperties
public DataCenterResourceProperties withAuthenticationMethodLdapProperties(AuthenticationMethodLdapProperties authenticationMethodLdapProperties) Set the authenticationMethodLdapProperties property: Ldap authentication method properties. This feature is in preview.- Parameters:
authenticationMethodLdapProperties
- the authenticationMethodLdapProperties value to set.- Returns:
- the DataCenterResourceProperties object itself.
-
deallocated
Get the deallocated property: Whether the data center has been deallocated.- Returns:
- the deallocated value.
-
withDeallocated
Set the deallocated property: Whether the data center has been deallocated.- Parameters:
deallocated
- the deallocated value to set.- Returns:
- the DataCenterResourceProperties object itself.
-
provisionError
Get the provisionError property: Error related to resource provisioning.- Returns:
- the provisionError value.
-
withProvisionError
Set the provisionError property: Error related to resource provisioning.- Parameters:
provisionError
- the provisionError value to set.- Returns:
- the DataCenterResourceProperties object itself.
-
privateEndpointIpAddress
Get the privateEndpointIpAddress property: Ip of the VPN Endpoint for this data center.- Returns:
- the privateEndpointIpAddress value.
-
withPrivateEndpointIpAddress
Set the privateEndpointIpAddress property: Ip of the VPN Endpoint for this data center.- Parameters:
privateEndpointIpAddress
- the privateEndpointIpAddress value to set.- Returns:
- the DataCenterResourceProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DataCenterResourceProperties>
- Throws:
IOException
-
fromJson
public static DataCenterResourceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DataCenterResourceProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DataCenterResourceProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the DataCenterResourceProperties.
-