Interface ReplicationGroup.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ReplicationGroup.Builder,ReplicationGroup>, SdkBuilder<ReplicationGroup.Builder,ReplicationGroup>, SdkPojo
Enclosing class:
ReplicationGroup

public static interface ReplicationGroup.Builder extends SdkPojo, CopyableBuilder<ReplicationGroup.Builder,ReplicationGroup>
  • Method Details

    • replicationGroupId

      ReplicationGroup.Builder replicationGroupId(String replicationGroupId)

      The identifier for the replication group.

      Parameters:
      replicationGroupId - The identifier for the replication group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      ReplicationGroup.Builder description(String description)

      The user supplied description of the replication group.

      Parameters:
      description - The user supplied description of the replication group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • globalReplicationGroupInfo

      ReplicationGroup.Builder globalReplicationGroupInfo(GlobalReplicationGroupInfo globalReplicationGroupInfo)

      The name of the Global datastore and role of this replication group in the Global datastore.

      Parameters:
      globalReplicationGroupInfo - The name of the Global datastore and role of this replication group in the Global datastore.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • globalReplicationGroupInfo

      default ReplicationGroup.Builder globalReplicationGroupInfo(Consumer<GlobalReplicationGroupInfo.Builder> globalReplicationGroupInfo)

      The name of the Global datastore and role of this replication group in the Global datastore.

      This is a convenience method that creates an instance of the GlobalReplicationGroupInfo.Builder avoiding the need to create one manually via GlobalReplicationGroupInfo.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to globalReplicationGroupInfo(GlobalReplicationGroupInfo).

      Parameters:
      globalReplicationGroupInfo - a consumer that will call methods on GlobalReplicationGroupInfo.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current state of this replication group - creating, available, modifying, deleting, create-failed, snapshotting.

      Parameters:
      status - The current state of this replication group - creating, available, modifying, deleting, create-failed, snapshotting.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pendingModifiedValues

      ReplicationGroup.Builder pendingModifiedValues(ReplicationGroupPendingModifiedValues pendingModifiedValues)

      A group of settings to be applied to the replication group, either immediately or during the next maintenance window.

      Parameters:
      pendingModifiedValues - A group of settings to be applied to the replication group, either immediately or during the next maintenance window.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pendingModifiedValues

      default ReplicationGroup.Builder pendingModifiedValues(Consumer<ReplicationGroupPendingModifiedValues.Builder> pendingModifiedValues)

      A group of settings to be applied to the replication group, either immediately or during the next maintenance window.

      This is a convenience method that creates an instance of the ReplicationGroupPendingModifiedValues.Builder avoiding the need to create one manually via ReplicationGroupPendingModifiedValues.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to pendingModifiedValues(ReplicationGroupPendingModifiedValues).

      Parameters:
      pendingModifiedValues - a consumer that will call methods on ReplicationGroupPendingModifiedValues.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • memberClusters

      ReplicationGroup.Builder memberClusters(Collection<String> memberClusters)

      The names of all the cache clusters that are part of this replication group.

      Parameters:
      memberClusters - The names of all the cache clusters that are part of this replication group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memberClusters

      ReplicationGroup.Builder memberClusters(String... memberClusters)

      The names of all the cache clusters that are part of this replication group.

      Parameters:
      memberClusters - The names of all the cache clusters that are part of this replication group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nodeGroups

      A list of node groups in this replication group. For Redis (cluster mode disabled) replication groups, this is a single-element list. For Redis (cluster mode enabled) replication groups, the list contains an entry for each node group (shard).

      Parameters:
      nodeGroups - A list of node groups in this replication group. For Redis (cluster mode disabled) replication groups, this is a single-element list. For Redis (cluster mode enabled) replication groups, the list contains an entry for each node group (shard).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nodeGroups

      ReplicationGroup.Builder nodeGroups(NodeGroup... nodeGroups)

      A list of node groups in this replication group. For Redis (cluster mode disabled) replication groups, this is a single-element list. For Redis (cluster mode enabled) replication groups, the list contains an entry for each node group (shard).

      Parameters:
      nodeGroups - A list of node groups in this replication group. For Redis (cluster mode disabled) replication groups, this is a single-element list. For Redis (cluster mode enabled) replication groups, the list contains an entry for each node group (shard).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nodeGroups

      A list of node groups in this replication group. For Redis (cluster mode disabled) replication groups, this is a single-element list. For Redis (cluster mode enabled) replication groups, the list contains an entry for each node group (shard).

      This is a convenience method that creates an instance of the NodeGroup.Builder avoiding the need to create one manually via NodeGroup.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to nodeGroups(List<NodeGroup>).

      Parameters:
      nodeGroups - a consumer that will call methods on NodeGroup.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • snapshottingClusterId

      ReplicationGroup.Builder snapshottingClusterId(String snapshottingClusterId)

      The cluster ID that is used as the daily snapshot source for the replication group.

      Parameters:
      snapshottingClusterId - The cluster ID that is used as the daily snapshot source for the replication group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • automaticFailover

      ReplicationGroup.Builder automaticFailover(String automaticFailover)

      Indicates the status of automatic failover for this Redis replication group.

      Parameters:
      automaticFailover - Indicates the status of automatic failover for this Redis replication group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • automaticFailover

      ReplicationGroup.Builder automaticFailover(AutomaticFailoverStatus automaticFailover)

      Indicates the status of automatic failover for this Redis replication group.

      Parameters:
      automaticFailover - Indicates the status of automatic failover for this Redis replication group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • multiAZ

      ReplicationGroup.Builder multiAZ(String multiAZ)

      A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For more information, see Minimizing Downtime: Multi-AZ

      Parameters:
      multiAZ - A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For more information, see Minimizing Downtime: Multi-AZ
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • multiAZ

      A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For more information, see Minimizing Downtime: Multi-AZ

      Parameters:
      multiAZ - A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For more information, see Minimizing Downtime: Multi-AZ
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • configurationEndpoint

      ReplicationGroup.Builder configurationEndpoint(Endpoint configurationEndpoint)

      The configuration endpoint for this replication group. Use the configuration endpoint to connect to this replication group.

      Parameters:
      configurationEndpoint - The configuration endpoint for this replication group. Use the configuration endpoint to connect to this replication group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configurationEndpoint

      default ReplicationGroup.Builder configurationEndpoint(Consumer<Endpoint.Builder> configurationEndpoint)

      The configuration endpoint for this replication group. Use the configuration endpoint to connect to this replication group.

      This is a convenience method that creates an instance of the Endpoint.Builder avoiding the need to create one manually via Endpoint.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to configurationEndpoint(Endpoint).

      Parameters:
      configurationEndpoint - a consumer that will call methods on Endpoint.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • snapshotRetentionLimit

      ReplicationGroup.Builder snapshotRetentionLimit(Integer snapshotRetentionLimit)

      The number of days for which ElastiCache retains automatic cluster 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.

      If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.

      Parameters:
      snapshotRetentionLimit - The number of days for which ElastiCache retains automatic cluster 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.

      If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.

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

      ReplicationGroup.Builder snapshotWindow(String snapshotWindow)

      The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).

      Example: 05:00-09:00

      If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.

      This parameter is only valid if the Engine parameter is redis.

      Parameters:
      snapshotWindow - The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).

      Example: 05:00-09:00

      If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.

      This parameter is only valid if the Engine parameter is redis.

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

      ReplicationGroup.Builder clusterEnabled(Boolean clusterEnabled)

      A flag indicating whether or not this replication group is cluster enabled; i.e., whether its data can be partitioned across multiple shards (API/CLI: node groups).

      Valid values: true | false

      Parameters:
      clusterEnabled - A flag indicating whether or not this replication group is cluster enabled; i.e., whether its data can be partitioned across multiple shards (API/CLI: node groups).

      Valid values: true | false

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

      ReplicationGroup.Builder cacheNodeType(String cacheNodeType)

      The name of the compute and memory capacity node type for each node in the replication group.

      Parameters:
      cacheNodeType - The name of the compute and memory capacity node type for each node in the replication group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • authTokenEnabled

      ReplicationGroup.Builder authTokenEnabled(Boolean authTokenEnabled)

      A flag that enables using an AuthToken (password) when issuing Redis commands.

      Default: false

      Parameters:
      authTokenEnabled - A flag that enables using an AuthToken (password) when issuing Redis commands.

      Default: false

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

      ReplicationGroup.Builder authTokenLastModifiedDate(Instant authTokenLastModifiedDate)

      The date the auth token was last modified

      Parameters:
      authTokenLastModifiedDate - The date the auth token was last modified
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • transitEncryptionEnabled

      ReplicationGroup.Builder transitEncryptionEnabled(Boolean transitEncryptionEnabled)

      A flag that enables in-transit encryption when set to true.

      Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6, 4.x or later.

      Default: false

      Parameters:
      transitEncryptionEnabled - A flag that enables in-transit encryption when set to true.

      Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6, 4.x or later.

      Default: false

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

      ReplicationGroup.Builder atRestEncryptionEnabled(Boolean atRestEncryptionEnabled)

      A flag that enables encryption at-rest when set to true.

      You cannot modify the value of AtRestEncryptionEnabled after the cluster is created. To enable encryption at-rest on a cluster you must set AtRestEncryptionEnabled to true when you create a cluster.

      Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6, 4.x or later.

      Default: false

      Parameters:
      atRestEncryptionEnabled - A flag that enables encryption at-rest when set to true.

      You cannot modify the value of AtRestEncryptionEnabled after the cluster is created. To enable encryption at-rest on a cluster you must set AtRestEncryptionEnabled to true when you create a cluster.

      Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6, 4.x or later.

      Default: false

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

      ReplicationGroup.Builder memberClustersOutpostArns(Collection<String> memberClustersOutpostArns)

      The outpost ARNs of the replication group's member clusters.

      Parameters:
      memberClustersOutpostArns - The outpost ARNs of the replication group's member clusters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memberClustersOutpostArns

      ReplicationGroup.Builder memberClustersOutpostArns(String... memberClustersOutpostArns)

      The outpost ARNs of the replication group's member clusters.

      Parameters:
      memberClustersOutpostArns - The outpost ARNs of the replication group's member clusters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • kmsKeyId

      ReplicationGroup.Builder kmsKeyId(String kmsKeyId)

      The ID of the KMS key used to encrypt the disk in the cluster.

      Parameters:
      kmsKeyId - The ID of the KMS key used to encrypt the disk in the cluster.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • arn

      The ARN (Amazon Resource Name) of the replication group.

      Parameters:
      arn - The ARN (Amazon Resource Name) of the replication group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userGroupIds

      ReplicationGroup.Builder userGroupIds(Collection<String> userGroupIds)

      The ID of the user group associated to the replication group.

      Parameters:
      userGroupIds - The ID of the user group associated to the replication group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userGroupIds

      ReplicationGroup.Builder userGroupIds(String... userGroupIds)

      The ID of the user group associated to the replication group.

      Parameters:
      userGroupIds - The ID of the user group associated to the replication group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logDeliveryConfigurations

      ReplicationGroup.Builder logDeliveryConfigurations(Collection<LogDeliveryConfiguration> logDeliveryConfigurations)

      Returns the destination, format and type of the logs.

      Parameters:
      logDeliveryConfigurations - Returns the destination, format and type of the logs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logDeliveryConfigurations

      ReplicationGroup.Builder logDeliveryConfigurations(LogDeliveryConfiguration... logDeliveryConfigurations)

      Returns the destination, format and type of the logs.

      Parameters:
      logDeliveryConfigurations - Returns the destination, format and type of the logs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logDeliveryConfigurations

      ReplicationGroup.Builder logDeliveryConfigurations(Consumer<LogDeliveryConfiguration.Builder>... logDeliveryConfigurations)

      Returns the destination, format and type of the logs.

      This is a convenience method that creates an instance of the LogDeliveryConfiguration.Builder avoiding the need to create one manually via LogDeliveryConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to logDeliveryConfigurations(List<LogDeliveryConfiguration>).

      Parameters:
      logDeliveryConfigurations - a consumer that will call methods on LogDeliveryConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • replicationGroupCreateTime

      ReplicationGroup.Builder replicationGroupCreateTime(Instant replicationGroupCreateTime)

      The date and time when the cluster was created.

      Parameters:
      replicationGroupCreateTime - The date and time when the cluster was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataTiering

      ReplicationGroup.Builder dataTiering(String dataTiering)

      Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. For more information, see Data tiering.

      Parameters:
      dataTiering - Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true 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

      ReplicationGroup.Builder dataTiering(DataTieringStatus dataTiering)

      Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. For more information, see Data tiering.

      Parameters:
      dataTiering - Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true 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:
    • autoMinorVersionUpgrade

      ReplicationGroup.Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)

      If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.

      Parameters:
      autoMinorVersionUpgrade - If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkType

      ReplicationGroup.Builder networkType(String networkType)

      Must be either ipv4 | ipv6 | dual_stack. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.

      Parameters:
      networkType - Must be either ipv4 | ipv6 | dual_stack. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • networkType

      ReplicationGroup.Builder networkType(NetworkType networkType)

      Must be either ipv4 | ipv6 | dual_stack. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.

      Parameters:
      networkType - Must be either ipv4 | ipv6 | dual_stack. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ipDiscovery

      ReplicationGroup.Builder ipDiscovery(String ipDiscovery)

      The network type you choose when modifying a cluster, either ipv4 | ipv6. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.

      Parameters:
      ipDiscovery - The network type you choose when modifying a cluster, either ipv4 | ipv6. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ipDiscovery

      ReplicationGroup.Builder ipDiscovery(IpDiscovery ipDiscovery)

      The network type you choose when modifying a cluster, either ipv4 | ipv6. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.

      Parameters:
      ipDiscovery - The network type you choose when modifying a cluster, either ipv4 | ipv6. IPv6 is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • transitEncryptionMode

      ReplicationGroup.Builder transitEncryptionMode(String transitEncryptionMode)

      A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.

      Parameters:
      transitEncryptionMode - A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • transitEncryptionMode

      ReplicationGroup.Builder transitEncryptionMode(TransitEncryptionMode transitEncryptionMode)

      A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.

      Parameters:
      transitEncryptionMode - A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clusterMode

      ReplicationGroup.Builder clusterMode(String clusterMode)

      Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.

      Parameters:
      clusterMode - Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clusterMode

      ReplicationGroup.Builder clusterMode(ClusterMode clusterMode)

      Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.

      Parameters:
      clusterMode - Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: