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 Details

    • DataCenterResourceProperties

      public DataCenterResourceProperties()
      Creates an instance of DataCenterResourceProperties class.
  • Method Details

    • 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 disks attached to each node. Default is 4.
      Returns:
      the diskCapacity value.
    • withDiskCapacity

      public DataCenterResourceProperties withDiskCapacity(Integer diskCapacity)
      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

      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:
      the availabilityZone value.
    • 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:
      availabilityZone - the availabilityZone value to set.
      Returns:
      the DataCenterResourceProperties object itself.
    • authenticationMethodLdapProperties

      public AuthenticationMethodLdapProperties 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

      public Boolean deallocated()
      Get the deallocated property: Whether the data center has been deallocated.
      Returns:
      the deallocated value.
    • withDeallocated

      public DataCenterResourceProperties withDeallocated(Boolean deallocated)
      Set the deallocated property: Whether the data center has been deallocated.
      Parameters:
      deallocated - the deallocated value to set.
      Returns:
      the DataCenterResourceProperties object itself.
    • provisionError

      public CassandraError provisionError()
      Get the provisionError property: Error related to resource provisioning.
      Returns:
      the provisionError value.
    • withProvisionError

      public DataCenterResourceProperties withProvisionError(CassandraError provisionError)
      Set the provisionError property: Error related to resource provisioning.
      Parameters:
      provisionError - the provisionError value to set.
      Returns:
      the DataCenterResourceProperties object itself.
    • privateEndpointIpAddress

      public String privateEndpointIpAddress()
      Get the privateEndpointIpAddress property: Ip of the VPN Endpoint for this data center.
      Returns:
      the privateEndpointIpAddress value.
    • withPrivateEndpointIpAddress

      public DataCenterResourceProperties withPrivateEndpointIpAddress(String privateEndpointIpAddress)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.