Interface Cluster.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Cluster.Builder,
,Cluster> SdkBuilder<Cluster.Builder,
,Cluster> SdkPojo
- Enclosing class:
Cluster
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the Access Control List associated with this cluster.The Amazon Resource Name (ARN) of the cluster.autoMinorVersionUpgrade
(Boolean autoMinorVersionUpgrade) When set to true, the cluster will automatically receive minor engine version upgrades after launch.availabilityMode
(String availabilityMode) Indicates if the cluster has a Multi-AZ configuration (multiaz) or not (singleaz).availabilityMode
(AZStatus availabilityMode) Indicates if the cluster has a Multi-AZ configuration (multiaz) or not (singleaz).default Cluster.Builder
clusterEndpoint
(Consumer<Endpoint.Builder> clusterEndpoint) The cluster's configuration endpointclusterEndpoint
(Endpoint clusterEndpoint) The cluster's configuration endpointdataTiering
(String dataTiering) Enables data tiering.dataTiering
(DataTieringStatus dataTiering) Enables data tiering.description
(String description) A description of the clusterenginePatchVersion
(String enginePatchVersion) The Redis engine patch version used by the clusterengineVersion
(String engineVersion) The Redis engine version used by the clusterThe ID of the KMS key used to encrypt the clustermaintenanceWindow
(String maintenanceWindow) Specifies the weekly time range during which maintenance on the cluster is performed.The user-supplied name of the cluster.The cluster's node typenumberOfShards
(Integer numberOfShards) The number of shards in the clusterparameterGroupName
(String parameterGroupName) The name of the parameter group used by the clusterparameterGroupStatus
(String parameterGroupStatus) The status of the parameter group used by the cluster, for example 'active' or 'applying'.default Cluster.Builder
pendingUpdates
(Consumer<ClusterPendingUpdates.Builder> pendingUpdates) A group of settings that are currently being applied.pendingUpdates
(ClusterPendingUpdates pendingUpdates) A group of settings that are currently being applied.securityGroups
(Collection<SecurityGroupMembership> securityGroups) A list of security groups used by the clustersecurityGroups
(Consumer<SecurityGroupMembership.Builder>... securityGroups) A list of security groups used by the clustersecurityGroups
(SecurityGroupMembership... securityGroups) A list of security groups used by the clustershards
(Collection<Shard> shards) A list of shards that are members of the cluster.shards
(Consumer<Shard.Builder>... shards) A list of shards that are members of the cluster.A list of shards that are members of the cluster.snapshotRetentionLimit
(Integer snapshotRetentionLimit) The number of days for which MemoryDB retains automatic snapshots before deleting them.snapshotWindow
(String snapshotWindow) The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard.snsTopicArn
(String snsTopicArn) The Amazon Resource Name (ARN) of the SNS notification topicsnsTopicStatus
(String snsTopicStatus) The SNS topic must be in Active status to receive notificationsThe status of the cluster.subnetGroupName
(String subnetGroupName) The name of the subnet group used by the clustertlsEnabled
(Boolean tlsEnabled) A flag to indicate if In-transit encryption is enabledMethods 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, sdkFields
-
Method Details
-
name
The user-supplied name of the cluster. This identifier is a unique key that identifies a cluster.
- Parameters:
name
- The user-supplied name of the cluster. This identifier is a unique key that identifies a cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the cluster
- Parameters:
description
- A description of the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the cluster. For example, Available, Updating, Creating.
- Parameters:
status
- The status of the cluster. For example, Available, Updating, Creating.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pendingUpdates
A group of settings that are currently being applied.
- Parameters:
pendingUpdates
- A group of settings that are currently being applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pendingUpdates
A group of settings that are currently being applied.
This is a convenience method that creates an instance of theClusterPendingUpdates.Builder
avoiding the need to create one manually viaClusterPendingUpdates.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topendingUpdates(ClusterPendingUpdates)
.- Parameters:
pendingUpdates
- a consumer that will call methods onClusterPendingUpdates.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
numberOfShards
The number of shards in the cluster
- Parameters:
numberOfShards
- The number of shards in the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shards
A list of shards that are members of the cluster.
- Parameters:
shards
- A list of shards that are members of the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shards
A list of shards that are members of the cluster.
- Parameters:
shards
- A list of shards that are members of the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shards
A list of shards that are members of the cluster.
This is a convenience method that creates an instance of theShard.Builder
avoiding the need to create one manually viaShard.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toshards(List<Shard>)
.- 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:
-
availabilityMode
Indicates if the cluster has a Multi-AZ configuration (multiaz) or not (singleaz).
- Parameters:
availabilityMode
- Indicates if the cluster has a Multi-AZ configuration (multiaz) or not (singleaz).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
availabilityMode
Indicates if the cluster has a Multi-AZ configuration (multiaz) or not (singleaz).
- Parameters:
availabilityMode
- Indicates if the cluster has a Multi-AZ configuration (multiaz) or not (singleaz).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clusterEndpoint
The cluster's configuration endpoint
- Parameters:
clusterEndpoint
- The cluster's configuration endpoint- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterEndpoint
The cluster's configuration endpoint
This is a convenience method that creates an instance of theEndpoint.Builder
avoiding the need to create one manually viaEndpoint.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toclusterEndpoint(Endpoint)
.- Parameters:
clusterEndpoint
- a consumer that will call methods onEndpoint.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nodeType
The cluster's node type
- Parameters:
nodeType
- The cluster's node type- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineVersion
The Redis engine version used by the cluster
- Parameters:
engineVersion
- The Redis engine version used by the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enginePatchVersion
The Redis engine patch version used by the cluster
- Parameters:
enginePatchVersion
- The Redis engine patch version used by the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameterGroupName
The name of the parameter group used by the cluster
- Parameters:
parameterGroupName
- The name of the parameter group used by the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameterGroupStatus
The status of the parameter group used by the cluster, for example 'active' or 'applying'.
- Parameters:
parameterGroupStatus
- The status of the parameter group used by the cluster, for example 'active' or 'applying'.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
A list of security groups used by the cluster
- Parameters:
securityGroups
- A list of security groups used by the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
A list of security groups used by the cluster
- Parameters:
securityGroups
- A list of security groups used by the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
A list of security groups used by the cluster
This is a convenience method that creates an instance of theSecurityGroupMembership.Builder
avoiding the need to create one manually viaSecurityGroupMembership.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosecurityGroups(List<SecurityGroupMembership>)
.- Parameters:
securityGroups
- a consumer that will call methods onSecurityGroupMembership.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subnetGroupName
The name of the subnet group used by the cluster
- Parameters:
subnetGroupName
- The name of the subnet group used by the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tlsEnabled
A flag to indicate if In-transit encryption is enabled
- Parameters:
tlsEnabled
- A flag to indicate if In-transit encryption is enabled- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
The ID of the KMS key used to encrypt the cluster
- Parameters:
kmsKeyId
- The ID of the KMS key used to encrypt the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the cluster.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snsTopicArn
The Amazon Resource Name (ARN) of the SNS notification topic
- Parameters:
snsTopicArn
- The Amazon Resource Name (ARN) of the SNS notification topic- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snsTopicStatus
The SNS topic must be in Active status to receive notifications
- Parameters:
snsTopicStatus
- The SNS topic must be in Active status to receive notifications- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotRetentionLimit
The number of days for which MemoryDB retains automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.
- Parameters:
snapshotRetentionLimit
- The number of days for which MemoryDB retains automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maintenanceWindow
Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period.
- Parameters:
maintenanceWindow
- Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotWindow
The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: 05:00-09:00 If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range.
- Parameters:
snapshotWindow
- The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: 05:00-09:00 If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aclName
The name of the Access Control List associated with this cluster.
- Parameters:
aclName
- The name of the Access Control List associated with this cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoMinorVersionUpgrade
When set to true, the cluster will automatically receive minor engine version upgrades after launch.
- Parameters:
autoMinorVersionUpgrade
- When set to true, the cluster will automatically receive minor engine version upgrades after launch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataTiering
Enables data tiering. Data tiering is only supported for clusters using the r6gd node type. This parameter must be set when using r6gd nodes. For more information, see Data tiering.
- Parameters:
dataTiering
- Enables data tiering. Data tiering is only supported for clusters using the r6gd node type. This parameter must be set when using r6gd nodes. For more information, see Data tiering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataTiering
Enables data tiering. Data tiering is only supported for clusters using the r6gd node type. This parameter must be set when using r6gd nodes. For more information, see Data tiering.
- Parameters:
dataTiering
- Enables data tiering. Data tiering is only supported for clusters using the r6gd node type. This parameter must be set when using r6gd nodes. For more information, see Data tiering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-