ClusterResourceProperties Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. ClusterResourceProperties
- com.
Implements
public final class ClusterResourceProperties
implements JsonSerializable<ClusterResourceProperties>
Properties of a managed Cassandra cluster.
Constructor Summary
Constructor | Description |
---|---|
ClusterResourceProperties() |
Creates an instance of Cluster |
Method Summary
Modifier and Type | Method and Description |
---|---|
Authentication |
authenticationMethod()
Get the authentication |
Azure |
azureConnectionMethod()
Get the azure |
Boolean |
cassandraAuditLoggingEnabled()
Get the cassandra |
String |
cassandraVersion()
Get the cassandra |
List<Certificate> |
clientCertificates()
Get the client |
String |
clusterNameOverride()
Get the cluster |
Boolean |
deallocated()
Get the deallocated property: Whether the cluster and associated data centers has been deallocated. |
String |
delegatedManagementSubnetId()
Get the delegated |
List<Certificate> |
externalGossipCertificates()
Get the external |
List<Seed |
externalSeedNodes()
Get the external |
static
Cluster |
fromJson(JsonReader jsonReader)
Reads an instance of Cluster |
List<Certificate> |
gossipCertificates()
Get the gossip |
Integer |
hoursBetweenBackups()
Get the hours |
String |
initialCassandraAdminPassword()
Get the initial |
String |
privateLinkResourceId()
Get the private |
Seed |
prometheusEndpoint()
Get the prometheus |
Cassandra |
provisionError()
Get the provision |
Managed |
provisioningState()
Get the provisioning |
Boolean |
repairEnabled()
Get the repair |
String |
restoreFromBackupId()
Get the restore |
List<Seed |
seedNodes()
Get the seed |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Cluster |
withAuthenticationMethod(AuthenticationMethod authenticationMethod)
Set the authentication |
Cluster |
withAzureConnectionMethod(AzureConnectionType azureConnectionMethod)
Set the azure |
Cluster |
withCassandraAuditLoggingEnabled(Boolean cassandraAuditLoggingEnabled)
Set the cassandra |
Cluster |
withCassandraVersion(String cassandraVersion)
Set the cassandra |
Cluster |
withClientCertificates(List<Certificate> clientCertificates)
Set the client |
Cluster |
withClusterNameOverride(String clusterNameOverride)
Set the cluster |
Cluster |
withDeallocated(Boolean deallocated)
Set the deallocated property: Whether the cluster and associated data centers has been deallocated. |
Cluster |
withDelegatedManagementSubnetId(String delegatedManagementSubnetId)
Set the delegated |
Cluster |
withExternalGossipCertificates(List<Certificate> externalGossipCertificates)
Set the external |
Cluster |
withExternalSeedNodes(List<SeedNode> externalSeedNodes)
Set the external |
Cluster |
withHoursBetweenBackups(Integer hoursBetweenBackups)
Set the hours |
Cluster |
withInitialCassandraAdminPassword(String initialCassandraAdminPassword)
Set the initial |
Cluster |
withPrometheusEndpoint(SeedNode prometheusEndpoint)
Set the prometheus |
Cluster |
withProvisionError(CassandraError provisionError)
Set the provision |
Cluster |
withProvisioningState(ManagedCassandraProvisioningState provisioningState)
Set the provisioning |
Cluster |
withRepairEnabled(Boolean repairEnabled)
Set the repair |
Cluster |
withRestoreFromBackupId(String restoreFromBackupId)
Set the restore |
Methods inherited from java.lang.Object
Constructor Details
ClusterResourceProperties
public ClusterResourceProperties()
Creates an instance of ClusterResourceProperties class.
Method Details
authenticationMethod
public AuthenticationMethod authenticationMethod()
Get the authenticationMethod property: Which authentication method Cassandra should use to authenticate clients. 'None' turns off authentication, so should not be used except in emergencies. 'Cassandra' is the default password based authentication. The default is 'Cassandra'.
Returns:
azureConnectionMethod
public AzureConnectionType azureConnectionMethod()
Get the azureConnectionMethod property: How to connect to the azure services needed for running the cluster.
Returns:
cassandraAuditLoggingEnabled
public Boolean cassandraAuditLoggingEnabled()
Get the cassandraAuditLoggingEnabled property: Whether Cassandra audit logging is enabled.
Returns:
cassandraVersion
public String cassandraVersion()
Get the cassandraVersion property: Which version of Cassandra should this cluster converge to running (e.g., 3.11). When updated, the cluster may take some time to migrate to the new version.
Returns:
clientCertificates
public List
Get the clientCertificates property: List of TLS certificates used to authorize clients connecting to the cluster. All connections are TLS encrypted whether clientCertificates is set or not, but if clientCertificates is set, the managed Cassandra cluster will reject all connections not bearing a TLS client certificate that can be validated from one or more of the public certificates in this property.
Returns:
clusterNameOverride
public String clusterNameOverride()
Get the clusterNameOverride property: If you need to set the clusterName property in cassandra.yaml to something besides the resource name of the cluster, set the value to use on this property.
Returns:
deallocated
public Boolean deallocated()
Get the deallocated property: Whether the cluster and associated data centers has been deallocated.
Returns:
delegatedManagementSubnetId
public String delegatedManagementSubnetId()
Get the delegatedManagementSubnetId property: Resource id of a subnet that this cluster's management service should have its network interface attached to. The subnet must be routable to all subnets that will be delegated to data centers. The resource id must be of the form '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/'.
Returns:
externalGossipCertificates
public List
Get the externalGossipCertificates property: List of TLS certificates used to authorize gossip from unmanaged data centers. The TLS certificates of all nodes in unmanaged data centers must be verifiable using one of the certificates provided in this property.
Returns:
externalSeedNodes
public List
Get the externalSeedNodes property: List of IP addresses of seed nodes in unmanaged data centers. These will be added to the seed node lists of all managed nodes.
Returns:
fromJson
public static ClusterResourceProperties fromJson(JsonReader jsonReader)
Reads an instance of ClusterResourceProperties from the JsonReader.
Parameters:
Returns:
Throws:
gossipCertificates
public List
Get the gossipCertificates property: List of TLS certificates that unmanaged nodes must trust for gossip with managed nodes. All managed nodes will present TLS client certificates that are verifiable using one of the certificates provided in this property.
Returns:
hoursBetweenBackups
public Integer hoursBetweenBackups()
Get the hoursBetweenBackups property: (Deprecated) Number of hours to wait between taking a backup of the cluster.
Returns:
initialCassandraAdminPassword
public String initialCassandraAdminPassword()
Get the initialCassandraAdminPassword property: Initial password for clients connecting as admin to the cluster. Should be changed after cluster creation. Returns null on GET. This field only applies when the authenticationMethod field is 'Cassandra'.
Returns:
privateLinkResourceId
public String privateLinkResourceId()
Get the privateLinkResourceId property: If the Connection Method is VPN, this is the Id of the private link resource that the datacenters need to connect to.
Returns:
prometheusEndpoint
public SeedNode prometheusEndpoint()
Get the prometheusEndpoint property: Hostname or IP address where the Prometheus endpoint containing data about the managed Cassandra nodes can be reached.
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:
repairEnabled
public Boolean repairEnabled()
Get the repairEnabled property: Should automatic repairs run on this cluster? If omitted, this is true, and should stay true unless you are running a hybrid cluster where you are already doing your own repairs.
Returns:
restoreFromBackupId
public String restoreFromBackupId()
Get the restoreFromBackupId property: To create an empty cluster, omit this field or set it to null. To restore a backup into a new cluster, set this field to the resource id of the backup.
Returns:
seedNodes
public List
Get the seedNodes property: List of IP addresses of seed nodes in the managed data centers. These should be added to the seed node lists of all unmanaged nodes.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAuthenticationMethod
public ClusterResourceProperties withAuthenticationMethod(AuthenticationMethod authenticationMethod)
Set the authenticationMethod property: Which authentication method Cassandra should use to authenticate clients. 'None' turns off authentication, so should not be used except in emergencies. 'Cassandra' is the default password based authentication. The default is 'Cassandra'.
Parameters:
Returns:
withAzureConnectionMethod
public ClusterResourceProperties withAzureConnectionMethod(AzureConnectionType azureConnectionMethod)
Set the azureConnectionMethod property: How to connect to the azure services needed for running the cluster.
Parameters:
Returns:
withCassandraAuditLoggingEnabled
public ClusterResourceProperties withCassandraAuditLoggingEnabled(Boolean cassandraAuditLoggingEnabled)
Set the cassandraAuditLoggingEnabled property: Whether Cassandra audit logging is enabled.
Parameters:
Returns:
withCassandraVersion
public ClusterResourceProperties withCassandraVersion(String cassandraVersion)
Set the cassandraVersion property: Which version of Cassandra should this cluster converge to running (e.g., 3.11). When updated, the cluster may take some time to migrate to the new version.
Parameters:
Returns:
withClientCertificates
public ClusterResourceProperties withClientCertificates(List
Set the clientCertificates property: List of TLS certificates used to authorize clients connecting to the cluster. All connections are TLS encrypted whether clientCertificates is set or not, but if clientCertificates is set, the managed Cassandra cluster will reject all connections not bearing a TLS client certificate that can be validated from one or more of the public certificates in this property.
Parameters:
Returns:
withClusterNameOverride
public ClusterResourceProperties withClusterNameOverride(String clusterNameOverride)
Set the clusterNameOverride property: If you need to set the clusterName property in cassandra.yaml to something besides the resource name of the cluster, set the value to use on this property.
Parameters:
Returns:
withDeallocated
public ClusterResourceProperties withDeallocated(Boolean deallocated)
Set the deallocated property: Whether the cluster and associated data centers has been deallocated.
Parameters:
Returns:
withDelegatedManagementSubnetId
public ClusterResourceProperties withDelegatedManagementSubnetId(String delegatedManagementSubnetId)
Set the delegatedManagementSubnetId property: Resource id of a subnet that this cluster's management service should have its network interface attached to. The subnet must be routable to all subnets that will be delegated to data centers. The resource id must be of the form '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/'.
Parameters:
Returns:
withExternalGossipCertificates
public ClusterResourceProperties withExternalGossipCertificates(List
Set the externalGossipCertificates property: List of TLS certificates used to authorize gossip from unmanaged data centers. The TLS certificates of all nodes in unmanaged data centers must be verifiable using one of the certificates provided in this property.
Parameters:
Returns:
withExternalSeedNodes
public ClusterResourceProperties withExternalSeedNodes(List
Set the externalSeedNodes property: List of IP addresses of seed nodes in unmanaged data centers. These will be added to the seed node lists of all managed nodes.
Parameters:
Returns:
withHoursBetweenBackups
public ClusterResourceProperties withHoursBetweenBackups(Integer hoursBetweenBackups)
Set the hoursBetweenBackups property: (Deprecated) Number of hours to wait between taking a backup of the cluster.
Parameters:
Returns:
withInitialCassandraAdminPassword
public ClusterResourceProperties withInitialCassandraAdminPassword(String initialCassandraAdminPassword)
Set the initialCassandraAdminPassword property: Initial password for clients connecting as admin to the cluster. Should be changed after cluster creation. Returns null on GET. This field only applies when the authenticationMethod field is 'Cassandra'.
Parameters:
Returns:
withPrometheusEndpoint
public ClusterResourceProperties withPrometheusEndpoint(SeedNode prometheusEndpoint)
Set the prometheusEndpoint property: Hostname or IP address where the Prometheus endpoint containing data about the managed Cassandra nodes can be reached.
Parameters:
Returns:
withProvisionError
public ClusterResourceProperties withProvisionError(CassandraError provisionError)
Set the provisionError property: Error related to resource provisioning.
Parameters:
Returns:
withProvisioningState
public ClusterResourceProperties withProvisioningState(ManagedCassandraProvisioningState provisioningState)
Set the provisioningState property: The status of the resource at the time the operation was called.
Parameters:
Returns:
withRepairEnabled
public ClusterResourceProperties withRepairEnabled(Boolean repairEnabled)
Set the repairEnabled property: Should automatic repairs run on this cluster? If omitted, this is true, and should stay true unless you are running a hybrid cluster where you are already doing your own repairs.
Parameters:
Returns:
withRestoreFromBackupId
public ClusterResourceProperties withRestoreFromBackupId(String restoreFromBackupId)
Set the restoreFromBackupId property: To create an empty cluster, omit this field or set it to null. To restore a backup into a new cluster, set this field to the resource id of the backup.
Parameters:
Returns:
Applies to
Azure SDK for Java