JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.docdbelastic.model

Class CreateClusterRequest

    • Constructor Detail

      • CreateClusterRequest

        public CreateClusterRequest()
    • Method Detail

      • setAdminUserName

        public void setAdminUserName(String adminUserName)

        The name of the Amazon DocumentDB elastic clusters administrator.

        Constraints:

        • Must be from 1 to 63 letters or numbers.

        • The first character must be a letter.

        • Cannot be a reserved word.

        Parameters:
        adminUserName - The name of the Amazon DocumentDB elastic clusters administrator.

        Constraints:

        • Must be from 1 to 63 letters or numbers.

        • The first character must be a letter.

        • Cannot be a reserved word.

      • getAdminUserName

        public String getAdminUserName()

        The name of the Amazon DocumentDB elastic clusters administrator.

        Constraints:

        • Must be from 1 to 63 letters or numbers.

        • The first character must be a letter.

        • Cannot be a reserved word.

        Returns:
        The name of the Amazon DocumentDB elastic clusters administrator.

        Constraints:

        • Must be from 1 to 63 letters or numbers.

        • The first character must be a letter.

        • Cannot be a reserved word.

      • withAdminUserName

        public CreateClusterRequest withAdminUserName(String adminUserName)

        The name of the Amazon DocumentDB elastic clusters administrator.

        Constraints:

        • Must be from 1 to 63 letters or numbers.

        • The first character must be a letter.

        • Cannot be a reserved word.

        Parameters:
        adminUserName - The name of the Amazon DocumentDB elastic clusters administrator.

        Constraints:

        • Must be from 1 to 63 letters or numbers.

        • The first character must be a letter.

        • Cannot be a reserved word.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAdminUserPassword

        public void setAdminUserPassword(String adminUserPassword)

        The password for the Amazon DocumentDB elastic clusters administrator. The password can contain any printable ASCII characters.

        Constraints:

        • Must contain from 8 to 100 characters.

        • Cannot contain a forward slash (/), double quote ("), or the "at" symbol (@).

        Parameters:
        adminUserPassword - The password for the Amazon DocumentDB elastic clusters administrator. The password can contain any printable ASCII characters.

        Constraints:

        • Must contain from 8 to 100 characters.

        • Cannot contain a forward slash (/), double quote ("), or the "at" symbol (@).

      • getAdminUserPassword

        public String getAdminUserPassword()

        The password for the Amazon DocumentDB elastic clusters administrator. The password can contain any printable ASCII characters.

        Constraints:

        • Must contain from 8 to 100 characters.

        • Cannot contain a forward slash (/), double quote ("), or the "at" symbol (@).

        Returns:
        The password for the Amazon DocumentDB elastic clusters administrator. The password can contain any printable ASCII characters.

        Constraints:

        • Must contain from 8 to 100 characters.

        • Cannot contain a forward slash (/), double quote ("), or the "at" symbol (@).

      • withAdminUserPassword

        public CreateClusterRequest withAdminUserPassword(String adminUserPassword)

        The password for the Amazon DocumentDB elastic clusters administrator. The password can contain any printable ASCII characters.

        Constraints:

        • Must contain from 8 to 100 characters.

        • Cannot contain a forward slash (/), double quote ("), or the "at" symbol (@).

        Parameters:
        adminUserPassword - The password for the Amazon DocumentDB elastic clusters administrator. The password can contain any printable ASCII characters.

        Constraints:

        • Must contain from 8 to 100 characters.

        • Cannot contain a forward slash (/), double quote ("), or the "at" symbol (@).

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAuthType

        public void setAuthType(String authType)

        The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are PLAIN_TEXT or SECRET_ARN.

        Parameters:
        authType - The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are PLAIN_TEXT or SECRET_ARN.
        See Also:
        Auth
      • getAuthType

        public String getAuthType()

        The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are PLAIN_TEXT or SECRET_ARN.

        Returns:
        The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are PLAIN_TEXT or SECRET_ARN.
        See Also:
        Auth
      • withAuthType

        public CreateClusterRequest withAuthType(String authType)

        The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are PLAIN_TEXT or SECRET_ARN.

        Parameters:
        authType - The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are PLAIN_TEXT or SECRET_ARN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Auth
      • withAuthType

        public CreateClusterRequest withAuthType(Auth authType)

        The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are PLAIN_TEXT or SECRET_ARN.

        Parameters:
        authType - The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are PLAIN_TEXT or SECRET_ARN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Auth
      • setBackupRetentionPeriod

        public void setBackupRetentionPeriod(Integer backupRetentionPeriod)

        The number of days for which automatic snapshots are retained.

        Parameters:
        backupRetentionPeriod - The number of days for which automatic snapshots are retained.
      • getBackupRetentionPeriod

        public Integer getBackupRetentionPeriod()

        The number of days for which automatic snapshots are retained.

        Returns:
        The number of days for which automatic snapshots are retained.
      • withBackupRetentionPeriod

        public CreateClusterRequest withBackupRetentionPeriod(Integer backupRetentionPeriod)

        The number of days for which automatic snapshots are retained.

        Parameters:
        backupRetentionPeriod - The number of days for which automatic snapshots are retained.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setClientToken

        public void setClientToken(String clientToken)

        The client token for the elastic cluster.

        Parameters:
        clientToken - The client token for the elastic cluster.
      • getClientToken

        public String getClientToken()

        The client token for the elastic cluster.

        Returns:
        The client token for the elastic cluster.
      • withClientToken

        public CreateClusterRequest withClientToken(String clientToken)

        The client token for the elastic cluster.

        Parameters:
        clientToken - The client token for the elastic cluster.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setClusterName

        public void setClusterName(String clusterName)

        The name of the new elastic cluster. This parameter is stored as a lowercase string.

        Constraints:

        • Must contain from 1 to 63 letters, numbers, or hyphens.

        • The first character must be a letter.

        • Cannot end with a hyphen or contain two consecutive hyphens.

        Example: my-cluster

        Parameters:
        clusterName - The name of the new elastic cluster. This parameter is stored as a lowercase string.

        Constraints:

        • Must contain from 1 to 63 letters, numbers, or hyphens.

        • The first character must be a letter.

        • Cannot end with a hyphen or contain two consecutive hyphens.

        Example: my-cluster

      • getClusterName

        public String getClusterName()

        The name of the new elastic cluster. This parameter is stored as a lowercase string.

        Constraints:

        • Must contain from 1 to 63 letters, numbers, or hyphens.

        • The first character must be a letter.

        • Cannot end with a hyphen or contain two consecutive hyphens.

        Example: my-cluster

        Returns:
        The name of the new elastic cluster. This parameter is stored as a lowercase string.

        Constraints:

        • Must contain from 1 to 63 letters, numbers, or hyphens.

        • The first character must be a letter.

        • Cannot end with a hyphen or contain two consecutive hyphens.

        Example: my-cluster

      • withClusterName

        public CreateClusterRequest withClusterName(String clusterName)

        The name of the new elastic cluster. This parameter is stored as a lowercase string.

        Constraints:

        • Must contain from 1 to 63 letters, numbers, or hyphens.

        • The first character must be a letter.

        • Cannot end with a hyphen or contain two consecutive hyphens.

        Example: my-cluster

        Parameters:
        clusterName - The name of the new elastic cluster. This parameter is stored as a lowercase string.

        Constraints:

        • Must contain from 1 to 63 letters, numbers, or hyphens.

        • The first character must be a letter.

        • Cannot end with a hyphen or contain two consecutive hyphens.

        Example: my-cluster

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setKmsKeyId

        public void setKmsKeyId(String kmsKeyId)

        The KMS key identifier to use to encrypt the new elastic cluster.

        The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key.

        If an encryption key is not specified, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.

        Parameters:
        kmsKeyId - The KMS key identifier to use to encrypt the new elastic cluster.

        The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key.

        If an encryption key is not specified, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.

      • getKmsKeyId

        public String getKmsKeyId()

        The KMS key identifier to use to encrypt the new elastic cluster.

        The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key.

        If an encryption key is not specified, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.

        Returns:
        The KMS key identifier to use to encrypt the new elastic cluster.

        The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key.

        If an encryption key is not specified, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.

      • withKmsKeyId

        public CreateClusterRequest withKmsKeyId(String kmsKeyId)

        The KMS key identifier to use to encrypt the new elastic cluster.

        The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key.

        If an encryption key is not specified, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.

        Parameters:
        kmsKeyId - The KMS key identifier to use to encrypt the new elastic cluster.

        The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key.

        If an encryption key is not specified, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPreferredBackupWindow

        public void setPreferredBackupWindow(String preferredBackupWindow)

        The daily time range during which automated backups are created if automated backups are enabled, as determined by the backupRetentionPeriod.

        Parameters:
        preferredBackupWindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by the backupRetentionPeriod.
      • getPreferredBackupWindow

        public String getPreferredBackupWindow()

        The daily time range during which automated backups are created if automated backups are enabled, as determined by the backupRetentionPeriod.

        Returns:
        The daily time range during which automated backups are created if automated backups are enabled, as determined by the backupRetentionPeriod.
      • withPreferredBackupWindow

        public CreateClusterRequest withPreferredBackupWindow(String preferredBackupWindow)

        The daily time range during which automated backups are created if automated backups are enabled, as determined by the backupRetentionPeriod.

        Parameters:
        preferredBackupWindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by the backupRetentionPeriod.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPreferredMaintenanceWindow

        public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow)

        The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

        Format: ddd:hh24:mi-ddd:hh24:mi

        Default: a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.

        Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

        Constraints: Minimum 30-minute window.

        Parameters:
        preferredMaintenanceWindow - The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

        Format: ddd:hh24:mi-ddd:hh24:mi

        Default: a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.

        Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

        Constraints: Minimum 30-minute window.

      • getPreferredMaintenanceWindow

        public String getPreferredMaintenanceWindow()

        The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

        Format: ddd:hh24:mi-ddd:hh24:mi

        Default: a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.

        Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

        Constraints: Minimum 30-minute window.

        Returns:
        The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

        Format: ddd:hh24:mi-ddd:hh24:mi

        Default: a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.

        Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

        Constraints: Minimum 30-minute window.

      • withPreferredMaintenanceWindow

        public CreateClusterRequest withPreferredMaintenanceWindow(String preferredMaintenanceWindow)

        The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

        Format: ddd:hh24:mi-ddd:hh24:mi

        Default: a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.

        Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

        Constraints: Minimum 30-minute window.

        Parameters:
        preferredMaintenanceWindow - The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

        Format: ddd:hh24:mi-ddd:hh24:mi

        Default: a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.

        Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

        Constraints: Minimum 30-minute window.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setShardCapacity

        public void setShardCapacity(Integer shardCapacity)

        The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.

        Parameters:
        shardCapacity - The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.
      • getShardCapacity

        public Integer getShardCapacity()

        The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.

        Returns:
        The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.
      • withShardCapacity

        public CreateClusterRequest withShardCapacity(Integer shardCapacity)

        The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.

        Parameters:
        shardCapacity - The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setShardCount

        public void setShardCount(Integer shardCount)

        The number of shards assigned to the elastic cluster. Maximum is 32.

        Parameters:
        shardCount - The number of shards assigned to the elastic cluster. Maximum is 32.
      • getShardCount

        public Integer getShardCount()

        The number of shards assigned to the elastic cluster. Maximum is 32.

        Returns:
        The number of shards assigned to the elastic cluster. Maximum is 32.
      • withShardCount

        public CreateClusterRequest withShardCount(Integer shardCount)

        The number of shards assigned to the elastic cluster. Maximum is 32.

        Parameters:
        shardCount - The number of shards assigned to the elastic cluster. Maximum is 32.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setShardInstanceCount

        public void setShardInstanceCount(Integer shardInstanceCount)

        The number of replica instances applying to all shards in the elastic cluster. A shardInstanceCount value of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.

        Parameters:
        shardInstanceCount - The number of replica instances applying to all shards in the elastic cluster. A shardInstanceCount value of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.
      • getShardInstanceCount

        public Integer getShardInstanceCount()

        The number of replica instances applying to all shards in the elastic cluster. A shardInstanceCount value of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.

        Returns:
        The number of replica instances applying to all shards in the elastic cluster. A shardInstanceCount value of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.
      • withShardInstanceCount

        public CreateClusterRequest withShardInstanceCount(Integer shardInstanceCount)

        The number of replica instances applying to all shards in the elastic cluster. A shardInstanceCount value of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.

        Parameters:
        shardInstanceCount - The number of replica instances applying to all shards in the elastic cluster. A shardInstanceCount value of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getSubnetIds

        public List<String> getSubnetIds()

        The Amazon EC2 subnet IDs for the new elastic cluster.

        Returns:
        The Amazon EC2 subnet IDs for the new elastic cluster.
      • setSubnetIds

        public void setSubnetIds(Collection<String> subnetIds)

        The Amazon EC2 subnet IDs for the new elastic cluster.

        Parameters:
        subnetIds - The Amazon EC2 subnet IDs for the new elastic cluster.
      • withSubnetIds

        public CreateClusterRequest withSubnetIds(String... subnetIds)

        The Amazon EC2 subnet IDs for the new elastic cluster.

        NOTE: This method appends the values to the existing list (if any). Use setSubnetIds(java.util.Collection) or withSubnetIds(java.util.Collection) if you want to override the existing values.

        Parameters:
        subnetIds - The Amazon EC2 subnet IDs for the new elastic cluster.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withSubnetIds

        public CreateClusterRequest withSubnetIds(Collection<String> subnetIds)

        The Amazon EC2 subnet IDs for the new elastic cluster.

        Parameters:
        subnetIds - The Amazon EC2 subnet IDs for the new elastic cluster.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getTags

        public Map<String,String> getTags()

        The tags to be assigned to the new elastic cluster.

        Returns:
        The tags to be assigned to the new elastic cluster.
      • setTags

        public void setTags(Map<String,String> tags)

        The tags to be assigned to the new elastic cluster.

        Parameters:
        tags - The tags to be assigned to the new elastic cluster.
      • withTags

        public CreateClusterRequest withTags(Map<String,String> tags)

        The tags to be assigned to the new elastic cluster.

        Parameters:
        tags - The tags to be assigned to the new elastic cluster.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clearTagsEntries

        public CreateClusterRequest clearTagsEntries()
        Removes all the entries added into Tags.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getVpcSecurityGroupIds

        public List<String> getVpcSecurityGroupIds()

        A list of EC2 VPC security groups to associate with the new elastic cluster.

        Returns:
        A list of EC2 VPC security groups to associate with the new elastic cluster.
      • setVpcSecurityGroupIds

        public void setVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)

        A list of EC2 VPC security groups to associate with the new elastic cluster.

        Parameters:
        vpcSecurityGroupIds - A list of EC2 VPC security groups to associate with the new elastic cluster.
      • withVpcSecurityGroupIds

        public CreateClusterRequest withVpcSecurityGroupIds(String... vpcSecurityGroupIds)

        A list of EC2 VPC security groups to associate with the new elastic cluster.

        NOTE: This method appends the values to the existing list (if any). Use setVpcSecurityGroupIds(java.util.Collection) or withVpcSecurityGroupIds(java.util.Collection) if you want to override the existing values.

        Parameters:
        vpcSecurityGroupIds - A list of EC2 VPC security groups to associate with the new elastic cluster.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withVpcSecurityGroupIds

        public CreateClusterRequest withVpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)

        A list of EC2 VPC security groups to associate with the new elastic cluster.

        Parameters:
        vpcSecurityGroupIds - A list of EC2 VPC security groups to associate with the new elastic cluster.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /