Interface Cluster.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Cluster.Builder,Cluster>,SdkBuilder<Cluster.Builder,Cluster>,SdkPojo
- Enclosing class:
- Cluster
public static interface Cluster.Builder extends SdkPojo, CopyableBuilder<Cluster.Builder,Cluster>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Cluster.BuilderadminUserName(String adminUserName)The name of the elastic cluster administrator.Cluster.BuilderauthType(String authType)The authentication type for the elastic cluster.Cluster.BuilderauthType(Auth authType)The authentication type for the elastic cluster.Cluster.BuilderbackupRetentionPeriod(Integer backupRetentionPeriod)The number of days for which automatic snapshots are retained.Cluster.BuilderclusterArn(String clusterArn)The ARN identifier of the elastic cluster.Cluster.BuilderclusterEndpoint(String clusterEndpoint)The URL used to connect to the elastic cluster.Cluster.BuilderclusterName(String clusterName)The name of the elastic cluster.Cluster.BuildercreateTime(String createTime)The time when the elastic cluster was created in Universal Coordinated Time (UTC).Cluster.BuilderkmsKeyId(String kmsKeyId)The KMS key identifier to use to encrypt the elastic cluster.Cluster.BuilderpreferredBackupWindow(String preferredBackupWindow)The daily time range during which automated backups are created if automated backups are enabled, as determined bybackupRetentionPeriod.Cluster.BuilderpreferredMaintenanceWindow(String preferredMaintenanceWindow)The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).Cluster.BuildershardCapacity(Integer shardCapacity)The number of vCPUs assigned to each elastic cluster shard.Cluster.BuildershardCount(Integer shardCount)The number of shards assigned to the elastic cluster.Cluster.BuildershardInstanceCount(Integer shardInstanceCount)The number of replica instances applying to all shards in the cluster.Cluster.Buildershards(Collection<Shard> shards)The total number of shards in the cluster.Cluster.Buildershards(Consumer<Shard.Builder>... shards)The total number of shards in the cluster.Cluster.Buildershards(Shard... shards)The total number of shards in the cluster.Cluster.Builderstatus(String status)The status of the elastic cluster.Cluster.Builderstatus(Status status)The status of the elastic cluster.Cluster.BuildersubnetIds(String... subnetIds)The Amazon EC2 subnet IDs for the elastic cluster.Cluster.BuildersubnetIds(Collection<String> subnetIds)The Amazon EC2 subnet IDs for the elastic cluster.Cluster.BuildervpcSecurityGroupIds(String... vpcSecurityGroupIds)A list of EC2 VPC security groups associated with thie elastic cluster.Cluster.BuildervpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)A list of EC2 VPC security groups associated with thie elastic cluster.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
adminUserName
Cluster.Builder adminUserName(String adminUserName)
The name of the elastic cluster administrator.
- Parameters:
adminUserName- The name of the elastic cluster administrator.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authType
Cluster.Builder authType(String authType)
The authentication type for the elastic cluster.
-
authType
Cluster.Builder authType(Auth authType)
The authentication type for the elastic cluster.
-
backupRetentionPeriod
Cluster.Builder backupRetentionPeriod(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.
-
clusterArn
Cluster.Builder clusterArn(String clusterArn)
The ARN identifier of the elastic cluster.
- Parameters:
clusterArn- The ARN identifier of the elastic cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterEndpoint
Cluster.Builder clusterEndpoint(String clusterEndpoint)
The URL used to connect to the elastic cluster.
- Parameters:
clusterEndpoint- The URL used to connect to the elastic cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterName
Cluster.Builder clusterName(String clusterName)
The name of the elastic cluster.
- Parameters:
clusterName- The name of the elastic cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createTime
Cluster.Builder createTime(String createTime)
The time when the elastic cluster was created in Universal Coordinated Time (UTC).
- Parameters:
createTime- The time when the elastic cluster was created in Universal Coordinated Time (UTC).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
Cluster.Builder kmsKeyId(String kmsKeyId)
The KMS key identifier to use to encrypt the elastic cluster.
- Parameters:
kmsKeyId- The KMS key identifier to use to encrypt the elastic cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preferredBackupWindow
Cluster.Builder preferredBackupWindow(String preferredBackupWindow)
The daily time range during which automated backups are created if automated backups are enabled, as determined by
backupRetentionPeriod.- Parameters:
preferredBackupWindow- The daily time range during which automated backups are created if automated backups are enabled, as determined bybackupRetentionPeriod.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preferredMaintenanceWindow
Cluster.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow)
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format:
ddd:hh24:mi-ddd:hh24:mi- Parameters:
preferredMaintenanceWindow- The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).Format:
ddd:hh24:mi-ddd:hh24:mi- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shardCapacity
Cluster.Builder shardCapacity(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.
-
shardCount
Cluster.Builder shardCount(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.
-
shardInstanceCount
Cluster.Builder shardInstanceCount(Integer shardInstanceCount)
The number of replica instances applying to all shards in the cluster. A
shardInstanceCountvalue 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 cluster. AshardInstanceCountvalue 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.
-
shards
Cluster.Builder shards(Collection<Shard> shards)
The total number of shards in the cluster.
- Parameters:
shards- The total number of shards in the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shards
Cluster.Builder shards(Shard... shards)
The total number of shards in the cluster.
- Parameters:
shards- The total number of shards in the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shards
Cluster.Builder shards(Consumer<Shard.Builder>... shards)
The total number of shards in the cluster.
This is a convenience method that creates an instance of theShard.Builderavoiding the need to create one manually viaShard.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#shards(List.) - Parameters:
shards- a consumer that will call methods onShard.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#shards(java.util.Collection)
-
status
Cluster.Builder status(String status)
The status of the elastic cluster.
-
status
Cluster.Builder status(Status status)
The status of the elastic cluster.
-
subnetIds
Cluster.Builder subnetIds(Collection<String> subnetIds)
The Amazon EC2 subnet IDs for the elastic cluster.
- Parameters:
subnetIds- The Amazon EC2 subnet IDs for the elastic cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetIds
Cluster.Builder subnetIds(String... subnetIds)
The Amazon EC2 subnet IDs for the elastic cluster.
- Parameters:
subnetIds- The Amazon EC2 subnet IDs for the elastic cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcSecurityGroupIds
Cluster.Builder vpcSecurityGroupIds(Collection<String> vpcSecurityGroupIds)
A list of EC2 VPC security groups associated with thie elastic cluster.
- Parameters:
vpcSecurityGroupIds- A list of EC2 VPC security groups associated with thie elastic cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcSecurityGroupIds
Cluster.Builder vpcSecurityGroupIds(String... vpcSecurityGroupIds)
A list of EC2 VPC security groups associated with thie elastic cluster.
- Parameters:
vpcSecurityGroupIds- A list of EC2 VPC security groups associated with thie elastic cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-