DataCenterResourceProperties Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. DataCenterResourceProperties
- com.
Implements
public final class DataCenterResourceProperties
implements JsonSerializable<DataCenterResourceProperties>
Properties of a managed Cassandra data center.
Constructor Summary
Constructor | Description |
---|---|
DataCenterResourceProperties() |
Creates an instance of Data |
Method Summary
Modifier and Type | Method and Description |
---|---|
Authentication |
authenticationMethodLdapProperties()
Get the authentication |
Boolean |
availabilityZone()
Get the availability |
String |
backupStorageCustomerKeyUri()
Get the backup |
String |
base64EncodedCassandraYamlFragment()
Get the base64Encoded |
String |
dataCenterLocation()
Get the data |
Boolean |
deallocated()
Get the deallocated property: Whether the data center has been deallocated. |
String |
delegatedSubnetId()
Get the delegated |
Integer |
diskCapacity()
Get the disk |
String |
diskSku()
Get the disk |
static
Data |
fromJson(JsonReader jsonReader)
Reads an instance of Data |
String |
managedDiskCustomerKeyUri()
Get the managed |
Integer |
nodeCount()
Get the node |
String |
privateEndpointIpAddress()
Get the private |
Cassandra |
provisionError()
Get the provision |
Managed |
provisioningState()
Get the provisioning |
List<Seed |
seedNodes()
Get the seed |
String |
sku()
Get the sku property: Virtual Machine SKU used for data centers. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Data |
withAuthenticationMethodLdapProperties(AuthenticationMethodLdapProperties authenticationMethodLdapProperties)
Set the authentication |
Data |
withAvailabilityZone(Boolean availabilityZone)
Set the availability |
Data |
withBackupStorageCustomerKeyUri(String backupStorageCustomerKeyUri)
Set the backup |
Data |
withBase64EncodedCassandraYamlFragment(String base64EncodedCassandraYamlFragment)
Set the base64Encoded |
Data |
withDataCenterLocation(String dataCenterLocation)
Set the data |
Data |
withDeallocated(Boolean deallocated)
Set the deallocated property: Whether the data center has been deallocated. |
Data |
withDelegatedSubnetId(String delegatedSubnetId)
Set the delegated |
Data |
withDiskCapacity(Integer diskCapacity)
Set the disk |
Data |
withDiskSku(String diskSku)
Set the disk |
Data |
withManagedDiskCustomerKeyUri(String managedDiskCustomerKeyUri)
Set the managed |
Data |
withNodeCount(Integer nodeCount)
Set the node |
Data |
withPrivateEndpointIpAddress(String privateEndpointIpAddress)
Set the private |
Data |
withProvisionError(CassandraError provisionError)
Set the provision |
Data |
withProvisioningState(ManagedCassandraProvisioningState provisioningState)
Set the provisioning |
Data |
withSku(String sku)
Set the sku property: Virtual Machine SKU used for data centers. |
Methods inherited from java.lang.Object
Constructor Details
DataCenterResourceProperties
public DataCenterResourceProperties()
Creates an instance of DataCenterResourceProperties class.
Method Details
authenticationMethodLdapProperties
public AuthenticationMethodLdapProperties authenticationMethodLdapProperties()
Get the authenticationMethodLdapProperties property: Ldap authentication method properties. This feature is in preview.
Returns:
availabilityZone
public Boolean 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:
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:
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:
dataCenterLocation
public String dataCenterLocation()
Get the dataCenterLocation property: The region this data center should be created in.
Returns:
deallocated
public Boolean deallocated()
Get the deallocated property: Whether the data center has been deallocated.
Returns:
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//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/'.
Returns:
diskCapacity
public Integer diskCapacity()
Get the diskCapacity property: Number of disks attached to each node. Default is 4.
Returns:
diskSku
public String diskSku()
Get the diskSku property: Disk SKU used for data centers. Default value is P30.
Returns:
fromJson
public static DataCenterResourceProperties fromJson(JsonReader jsonReader)
Reads an instance of DataCenterResourceProperties from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
privateEndpointIpAddress
public String privateEndpointIpAddress()
Get the privateEndpointIpAddress property: Ip of the VPN Endpoint for this data center.
Returns:
provisionError
public CassandraError provisionError()
Get the provisionError property: Error related to resource provisioning.
Returns:
provisioningState
public ManagedCassandraProvisioningState provisioningState()
Get the provisioningState property: The status of the resource at the time the operation was called.
Returns:
seedNodes
public List
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:
sku
public String sku()
Get the sku property: Virtual Machine SKU used for data centers. Default value is Standard_DS14_v2.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAuthenticationMethodLdapProperties
public DataCenterResourceProperties withAuthenticationMethodLdapProperties(AuthenticationMethodLdapProperties authenticationMethodLdapProperties)
Set the authenticationMethodLdapProperties property: Ldap authentication method properties. This feature is in preview.
Parameters:
Returns:
withAvailabilityZone
public DataCenterResourceProperties 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.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withDataCenterLocation
public DataCenterResourceProperties withDataCenterLocation(String dataCenterLocation)
Set the dataCenterLocation property: The region this data center should be created in.
Parameters:
Returns:
withDeallocated
public DataCenterResourceProperties withDeallocated(Boolean deallocated)
Set the deallocated property: Whether the data center has been deallocated.
Parameters:
Returns:
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//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/'.
Parameters:
Returns:
withDiskCapacity
public DataCenterResourceProperties withDiskCapacity(Integer diskCapacity)
Set the diskCapacity property: Number of disks attached to each node. Default is 4.
Parameters:
Returns:
withDiskSku
public DataCenterResourceProperties withDiskSku(String diskSku)
Set the diskSku property: Disk SKU used for data centers. Default value is P30.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withPrivateEndpointIpAddress
public DataCenterResourceProperties withPrivateEndpointIpAddress(String privateEndpointIpAddress)
Set the privateEndpointIpAddress property: Ip of the VPN Endpoint for this data center.
Parameters:
Returns:
withProvisionError
public DataCenterResourceProperties withProvisionError(CassandraError provisionError)
Set the provisionError property: Error related to resource provisioning.
Parameters:
Returns:
withProvisioningState
public DataCenterResourceProperties withProvisioningState(ManagedCassandraProvisioningState provisioningState)
Set the provisioningState property: The status of the resource at the time the operation was called.
Parameters:
Returns:
withSku
public DataCenterResourceProperties withSku(String sku)
Set the sku property: Virtual Machine SKU used for data centers. Default value is Standard_DS14_v2.
Parameters:
Returns:
Applies to
Azure SDK for Java