Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License").
    * You may not use this file except in compliance with the License.
    * A copy of the License is located at
    * 
    *  http://aws.amazon.com/apache2.0
    * 
   * or in the "license" file accompanying this file. This file is distributed
   * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
   * express or implied. See the License for the specific language governing
   * permissions and limitations under the License.
   */
  package com.amazonaws.services.elasticache.model;
  
  
Container for the parameters to the ModifyReplicationGroup operation.

The ModifyReplicationGroup action modifies the settings for a replication group.

  
  public class ModifyReplicationGroupRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
The identifier of the replication group to modify.
  
      private String replicationGroupId;

    
A description for the replication group. Maximum length is 255 characters.
  
      private String replicationGroupDescription;

    
If this parameter is specified, ElastiCache will promote each of the cache clusters in the specified replication group to the primary role. The nodes of all other cache clusters in the replication group will be read replicas.
  
      private String primaryClusterId;

    
The cache cluster ID that will be used as the daily snapshot source for the replication group.
  
      private String snapshottingClusterId;

    
Whether a read replica will be automatically promoted to read/write primary if the existing primary encounters a failure.

Valid values: true | false <note>

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.
  • T1 and T2 cache node types.
</note>
  
      private Boolean automaticFailoverEnabled;

    
A list of cache security group names to authorize for the clusters in this replication group. This change is asynchronously applied as soon as possible.

This parameter can be used only with replication group containing cache clusters running outside of an Amazon Virtual Private Cloud (VPC).

Constraints: Must contain no more than 255 alphanumeric characters. Must not be "Default".

  
Specifies the VPC Security Groups associated with the cache clusters in the replication group.

This parameter can be used only with replication group containing cache clusters running in an Amazon Virtual Private Cloud (VPC).

  
Specifies the weekly time range during which maintenance on the cache 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. Valid values for ddd are:
  • sun
  • mon
  • tue
  • wed
  • thu
  • fri
  • sat

Example: sun:05:00-sun:09:00

  
      private String preferredMaintenanceWindow;

    
The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent. <note>The Amazon SNS topic owner must be same as the replication group owner. </note>
 
     private String notificationTopicArn;

    
The name of the cache parameter group to apply to all of the clusters in this replication group. This change is asynchronously applied as soon as possible for parameters when the ApplyImmediately parameter is specified as true for this request.
 
     private String cacheParameterGroupName;

    
The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is active.

Valid values: active | inactive

 
     private String notificationTopicStatus;

    
If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the replication group.

If false, then changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.

Valid values: true | false

Default: false

 
     private Boolean applyImmediately;

    
The upgraded version of the cache engine to be run on the cache clusters in the replication group.
 
     private String engineVersion;

    
This parameter is currently disabled.
 
     private Boolean autoMinorVersionUpgrade;

    
The number of days for which ElastiCache will retain automatic node group snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.

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

 
     private Integer snapshotRetentionLimit;

    
The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of the node group specified by SnapshottingClusterId.

Example: 05:00-09:00

If you do not specify this parameter, then ElastiCache will automatically choose an appropriate time range.

 
     private String snapshotWindow;

    
The identifier of the replication group to modify.

Returns:
The identifier of the replication group to modify.
 
     public String getReplicationGroupId() {
         return ;
     }
    
    
The identifier of the replication group to modify.

Parameters:
replicationGroupId The identifier of the replication group to modify.
 
     public void setReplicationGroupId(String replicationGroupId) {
         this. = replicationGroupId;
     }
    
    
The identifier of the replication group to modify.

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

Parameters:
replicationGroupId The identifier of the replication group to modify.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ModifyReplicationGroupRequest withReplicationGroupId(String replicationGroupId) {
         this. = replicationGroupId;
         return this;
     }

    
A description for the replication group. Maximum length is 255 characters.

Returns:
A description for the replication group. Maximum length is 255 characters.
 
         return ;
     }
    
    
A description for the replication group. Maximum length is 255 characters.

Parameters:
replicationGroupDescription A description for the replication group. Maximum length is 255 characters.
 
     public void setReplicationGroupDescription(String replicationGroupDescription) {
         this. = replicationGroupDescription;
     }
    
    
A description for the replication group. Maximum length is 255 characters.

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

Parameters:
replicationGroupDescription A description for the replication group. Maximum length is 255 characters.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ModifyReplicationGroupRequest withReplicationGroupDescription(String replicationGroupDescription) {
         this. = replicationGroupDescription;
         return this;
     }

    
If this parameter is specified, ElastiCache will promote each of the cache clusters in the specified replication group to the primary role. The nodes of all other cache clusters in the replication group will be read replicas.

Returns:
If this parameter is specified, ElastiCache will promote each of the cache clusters in the specified replication group to the primary role. The nodes of all other cache clusters in the replication group will be read replicas.
 
     public String getPrimaryClusterId() {
         return ;
     }
    
    
If this parameter is specified, ElastiCache will promote each of the cache clusters in the specified replication group to the primary role. The nodes of all other cache clusters in the replication group will be read replicas.

Parameters:
primaryClusterId If this parameter is specified, ElastiCache will promote each of the cache clusters in the specified replication group to the primary role. The nodes of all other cache clusters in the replication group will be read replicas.
 
     public void setPrimaryClusterId(String primaryClusterId) {
         this. = primaryClusterId;
     }
    
    
If this parameter is specified, ElastiCache will promote each of the cache clusters in the specified replication group to the primary role. The nodes of all other cache clusters in the replication group will be read replicas.

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

Parameters:
primaryClusterId If this parameter is specified, ElastiCache will promote each of the cache clusters in the specified replication group to the primary role. The nodes of all other cache clusters in the replication group will be read replicas.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ModifyReplicationGroupRequest withPrimaryClusterId(String primaryClusterId) {
         this. = primaryClusterId;
         return this;
     }

    
The cache cluster ID that will be used as the daily snapshot source for the replication group.

Returns:
The cache cluster ID that will be used as the daily snapshot source for the replication group.
 
     public String getSnapshottingClusterId() {
         return ;
     }
    
    
The cache cluster ID that will be used as the daily snapshot source for the replication group.

Parameters:
snapshottingClusterId The cache cluster ID that will be used as the daily snapshot source for the replication group.
 
     public void setSnapshottingClusterId(String snapshottingClusterId) {
         this. = snapshottingClusterId;
     }
    
    
The cache cluster ID that will be used as the daily snapshot source for the replication group.

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

Parameters:
snapshottingClusterId The cache cluster ID that will be used as the daily snapshot source for the replication group.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ModifyReplicationGroupRequest withSnapshottingClusterId(String snapshottingClusterId) {
         this. = snapshottingClusterId;
         return this;
     }

    
Whether a read replica will be automatically promoted to read/write primary if the existing primary encounters a failure.

Valid values: true | false <note>

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.
  • T1 and T2 cache node types.
</note>

Returns:
Whether a read replica will be automatically promoted to read/write primary if the existing primary encounters a failure.

Valid values: true | false <note>

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.
  • T1 and T2 cache node types.
</note>
 
     public Boolean isAutomaticFailoverEnabled() {
         return ;
     }
    
    
Whether a read replica will be automatically promoted to read/write primary if the existing primary encounters a failure.

Valid values: true | false <note>

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.
  • T1 and T2 cache node types.
</note>

Parameters:
automaticFailoverEnabled Whether a read replica will be automatically promoted to read/write primary if the existing primary encounters a failure.

Valid values: true | false <note>

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.
  • T1 and T2 cache node types.
</note>
 
     public void setAutomaticFailoverEnabled(Boolean automaticFailoverEnabled) {
         this. = automaticFailoverEnabled;
     }
    
    
Whether a read replica will be automatically promoted to read/write primary if the existing primary encounters a failure.

Valid values: true | false <note>

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.
  • T1 and T2 cache node types.
</note>

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

Parameters:
automaticFailoverEnabled Whether a read replica will be automatically promoted to read/write primary if the existing primary encounters a failure.

Valid values: true | false <note>

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.
  • T1 and T2 cache node types.
</note>
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ModifyReplicationGroupRequest withAutomaticFailoverEnabled(Boolean automaticFailoverEnabled) {
         this. = automaticFailoverEnabled;
         return this;
     }

    
Whether a read replica will be automatically promoted to read/write primary if the existing primary encounters a failure.

Valid values: true | false <note>

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.
  • T1 and T2 cache node types.
</note>

Returns:
Whether a read replica will be automatically promoted to read/write primary if the existing primary encounters a failure.

Valid values: true | false <note>

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.
  • T1 and T2 cache node types.
</note>
 
     public Boolean getAutomaticFailoverEnabled() {
         return ;
     }

    
A list of cache security group names to authorize for the clusters in this replication group. This change is asynchronously applied as soon as possible.

This parameter can be used only with replication group containing cache clusters running outside of an Amazon Virtual Private Cloud (VPC).

Constraints: Must contain no more than 255 alphanumeric characters. Must not be "Default".

Returns:
A list of cache security group names to authorize for the clusters in this replication group. This change is asynchronously applied as soon as possible.

This parameter can be used only with replication group containing cache clusters running outside of an Amazon Virtual Private Cloud (VPC).

Constraints: Must contain no more than 255 alphanumeric characters. Must not be "Default".

 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
A list of cache security group names to authorize for the clusters in this replication group. This change is asynchronously applied as soon as possible.

This parameter can be used only with replication group containing cache clusters running outside of an Amazon Virtual Private Cloud (VPC).

Constraints: Must contain no more than 255 alphanumeric characters. Must not be "Default".

Parameters:
cacheSecurityGroupNames A list of cache security group names to authorize for the clusters in this replication group. This change is asynchronously applied as soon as possible.

This parameter can be used only with replication group containing cache clusters running outside of an Amazon Virtual Private Cloud (VPC).

Constraints: Must contain no more than 255 alphanumeric characters. Must not be "Default".

 
     public void setCacheSecurityGroupNames(java.util.Collection<StringcacheSecurityGroupNames) {
         if (cacheSecurityGroupNames == null) {
             this. = null;
             return;
         }
         com.amazonaws.internal.ListWithAutoConstructFlag<StringcacheSecurityGroupNamesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(cacheSecurityGroupNames.size());
         cacheSecurityGroupNamesCopy.addAll(cacheSecurityGroupNames);
         this. = cacheSecurityGroupNamesCopy;
     }
    
    
A list of cache security group names to authorize for the clusters in this replication group. This change is asynchronously applied as soon as possible.

This parameter can be used only with replication group containing cache clusters running outside of an Amazon Virtual Private Cloud (VPC).

Constraints: Must contain no more than 255 alphanumeric characters. Must not be "Default".

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

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

Parameters:
cacheSecurityGroupNames A list of cache security group names to authorize for the clusters in this replication group. This change is asynchronously applied as soon as possible.

This parameter can be used only with replication group containing cache clusters running outside of an Amazon Virtual Private Cloud (VPC).

Constraints: Must contain no more than 255 alphanumeric characters. Must not be "Default".

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ModifyReplicationGroupRequest withCacheSecurityGroupNames(String... cacheSecurityGroupNames) {
         if (getCacheSecurityGroupNames() == nullsetCacheSecurityGroupNames(new java.util.ArrayList<String>(cacheSecurityGroupNames.length));
         for (String value : cacheSecurityGroupNames) {
             getCacheSecurityGroupNames().add(value);
         }
         return this;
     }
    
    
A list of cache security group names to authorize for the clusters in this replication group. This change is asynchronously applied as soon as possible.

This parameter can be used only with replication group containing cache clusters running outside of an Amazon Virtual Private Cloud (VPC).

Constraints: Must contain no more than 255 alphanumeric characters. Must not be "Default".

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

Parameters:
cacheSecurityGroupNames A list of cache security group names to authorize for the clusters in this replication group. This change is asynchronously applied as soon as possible.

This parameter can be used only with replication group containing cache clusters running outside of an Amazon Virtual Private Cloud (VPC).

Constraints: Must contain no more than 255 alphanumeric characters. Must not be "Default".

Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (cacheSecurityGroupNames == null) {
             this. = null;
         } else {
             com.amazonaws.internal.ListWithAutoConstructFlag<StringcacheSecurityGroupNamesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(cacheSecurityGroupNames.size());
             cacheSecurityGroupNamesCopy.addAll(cacheSecurityGroupNames);
             this. = cacheSecurityGroupNamesCopy;
         }
 
         return this;
     }

    
Specifies the VPC Security Groups associated with the cache clusters in the replication group.

This parameter can be used only with replication group containing cache clusters running in an Amazon Virtual Private Cloud (VPC).

Returns:
Specifies the VPC Security Groups associated with the cache clusters in the replication group.

This parameter can be used only with replication group containing cache clusters running in an Amazon Virtual Private Cloud (VPC).

 
     public java.util.List<StringgetSecurityGroupIds() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
Specifies the VPC Security Groups associated with the cache clusters in the replication group.

This parameter can be used only with replication group containing cache clusters running in an Amazon Virtual Private Cloud (VPC).

Parameters:
securityGroupIds Specifies the VPC Security Groups associated with the cache clusters in the replication group.

This parameter can be used only with replication group containing cache clusters running in an Amazon Virtual Private Cloud (VPC).

 
     public void setSecurityGroupIds(java.util.Collection<StringsecurityGroupIds) {
         if (securityGroupIds == null) {
             this. = null;
             return;
         }
         com.amazonaws.internal.ListWithAutoConstructFlag<StringsecurityGroupIdsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(securityGroupIds.size());
         securityGroupIdsCopy.addAll(securityGroupIds);
         this. = securityGroupIdsCopy;
     }
    
    
Specifies the VPC Security Groups associated with the cache clusters in the replication group.

This parameter can be used only with replication group containing cache clusters running in an Amazon Virtual Private Cloud (VPC).

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

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

Parameters:
securityGroupIds Specifies the VPC Security Groups associated with the cache clusters in the replication group.

This parameter can be used only with replication group containing cache clusters running in an Amazon Virtual Private Cloud (VPC).

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ModifyReplicationGroupRequest withSecurityGroupIds(String... securityGroupIds) {
         if (getSecurityGroupIds() == nullsetSecurityGroupIds(new java.util.ArrayList<String>(securityGroupIds.length));
         for (String value : securityGroupIds) {
             getSecurityGroupIds().add(value);
         }
         return this;
     }
    
    
Specifies the VPC Security Groups associated with the cache clusters in the replication group.

This parameter can be used only with replication group containing cache clusters running in an Amazon Virtual Private Cloud (VPC).

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

Parameters:
securityGroupIds Specifies the VPC Security Groups associated with the cache clusters in the replication group.

This parameter can be used only with replication group containing cache clusters running in an Amazon Virtual Private Cloud (VPC).

Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (securityGroupIds == null) {
             this. = null;
         } else {
             com.amazonaws.internal.ListWithAutoConstructFlag<StringsecurityGroupIdsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(securityGroupIds.size());
             securityGroupIdsCopy.addAll(securityGroupIds);
             this. = securityGroupIdsCopy;
         }
 
         return this;
     }

    
Specifies the weekly time range during which maintenance on the cache 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. Valid values for ddd are:
  • sun
  • mon
  • tue
  • wed
  • thu
  • fri
  • sat

Example: sun:05:00-sun:09:00

Returns:
Specifies the weekly time range during which maintenance on the cache 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. Valid values for ddd are:
  • sun
  • mon
  • tue
  • wed
  • thu
  • fri
  • sat

Example: sun:05:00-sun:09:00

 
         return ;
     }
    
    
Specifies the weekly time range during which maintenance on the cache 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. Valid values for ddd are:
  • sun
  • mon
  • tue
  • wed
  • thu
  • fri
  • sat

Example: sun:05:00-sun:09:00

Parameters:
preferredMaintenanceWindow Specifies the weekly time range during which maintenance on the cache 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. Valid values for ddd are:
  • sun
  • mon
  • tue
  • wed
  • thu
  • fri
  • sat

Example: sun:05:00-sun:09:00

 
     public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
         this. = preferredMaintenanceWindow;
     }
    
    
Specifies the weekly time range during which maintenance on the cache 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. Valid values for ddd are:
  • sun
  • mon
  • tue
  • wed
  • thu
  • fri
  • sat

Example: sun:05:00-sun:09:00

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

Parameters:
preferredMaintenanceWindow Specifies the weekly time range during which maintenance on the cache 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. Valid values for ddd are:
  • sun
  • mon
  • tue
  • wed
  • thu
  • fri
  • sat

Example: sun:05:00-sun:09:00

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ModifyReplicationGroupRequest withPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
         this. = preferredMaintenanceWindow;
         return this;
     }

    
The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent. <note>The Amazon SNS topic owner must be same as the replication group owner. </note>

Returns:
The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent. <note>The Amazon SNS topic owner must be same as the replication group owner. </note>
 
     public String getNotificationTopicArn() {
         return ;
     }
    
    
The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent. <note>The Amazon SNS topic owner must be same as the replication group owner. </note>

Parameters:
notificationTopicArn The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent. <note>The Amazon SNS topic owner must be same as the replication group owner. </note>
 
     public void setNotificationTopicArn(String notificationTopicArn) {
         this. = notificationTopicArn;
     }
    
    
The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent. <note>The Amazon SNS topic owner must be same as the replication group owner. </note>

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

Parameters:
notificationTopicArn The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent. <note>The Amazon SNS topic owner must be same as the replication group owner. </note>
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ModifyReplicationGroupRequest withNotificationTopicArn(String notificationTopicArn) {
         this. = notificationTopicArn;
         return this;
     }

    
The name of the cache parameter group to apply to all of the clusters in this replication group. This change is asynchronously applied as soon as possible for parameters when the ApplyImmediately parameter is specified as true for this request.

Returns:
The name of the cache parameter group to apply to all of the clusters in this replication group. This change is asynchronously applied as soon as possible for parameters when the ApplyImmediately parameter is specified as true for this request.
 
     public String getCacheParameterGroupName() {
         return ;
     }
    
    
The name of the cache parameter group to apply to all of the clusters in this replication group. This change is asynchronously applied as soon as possible for parameters when the ApplyImmediately parameter is specified as true for this request.

Parameters:
cacheParameterGroupName The name of the cache parameter group to apply to all of the clusters in this replication group. This change is asynchronously applied as soon as possible for parameters when the ApplyImmediately parameter is specified as true for this request.
 
     public void setCacheParameterGroupName(String cacheParameterGroupName) {
         this. = cacheParameterGroupName;
     }
    
    
The name of the cache parameter group to apply to all of the clusters in this replication group. This change is asynchronously applied as soon as possible for parameters when the ApplyImmediately parameter is specified as true for this request.

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

Parameters:
cacheParameterGroupName The name of the cache parameter group to apply to all of the clusters in this replication group. This change is asynchronously applied as soon as possible for parameters when the ApplyImmediately parameter is specified as true for this request.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ModifyReplicationGroupRequest withCacheParameterGroupName(String cacheParameterGroupName) {
         this. = cacheParameterGroupName;
         return this;
     }

    
The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is active.

Valid values: active | inactive

Returns:
The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is active.

Valid values: active | inactive

 
     public String getNotificationTopicStatus() {
         return ;
     }
    
    
The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is active.

Valid values: active | inactive

Parameters:
notificationTopicStatus The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is active.

Valid values: active | inactive

 
     public void setNotificationTopicStatus(String notificationTopicStatus) {
         this. = notificationTopicStatus;
     }
    
    
The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is active.

Valid values: active | inactive

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

Parameters:
notificationTopicStatus The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is active.

Valid values: active | inactive

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ModifyReplicationGroupRequest withNotificationTopicStatus(String notificationTopicStatus) {
         this. = notificationTopicStatus;
         return this;
     }

    
If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the replication group.

If false, then changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.

Valid values: true | false

Default: false

Returns:
If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the replication group.

If false, then changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.

Valid values: true | false

Default: false

 
     public Boolean isApplyImmediately() {
         return ;
     }
    
    
If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the replication group.

If false, then changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.

Valid values: true | false

Default: false

Parameters:
applyImmediately If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the replication group.

If false, then changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.

Valid values: true | false

Default: false

 
     public void setApplyImmediately(Boolean applyImmediately) {
         this. = applyImmediately;
     }
    
    
If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the replication group.

If false, then changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.

Valid values: true | false

Default: false

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

Parameters:
applyImmediately If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the replication group.

If false, then changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.

Valid values: true | false

Default: false

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ModifyReplicationGroupRequest withApplyImmediately(Boolean applyImmediately) {
         this. = applyImmediately;
         return this;
     }

    
If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the replication group.

If false, then changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.

Valid values: true | false

Default: false

Returns:
If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the replication group.

If false, then changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.

Valid values: true | false

Default: false

 
     public Boolean getApplyImmediately() {
         return ;
     }

    
The upgraded version of the cache engine to be run on the cache clusters in the replication group.

Returns:
The upgraded version of the cache engine to be run on the cache clusters in the replication group.
 
     public String getEngineVersion() {
         return ;
     }
    
    
The upgraded version of the cache engine to be run on the cache clusters in the replication group.

Parameters:
engineVersion The upgraded version of the cache engine to be run on the cache clusters in the replication group.
 
     public void setEngineVersion(String engineVersion) {
         this. = engineVersion;
     }
    
    
The upgraded version of the cache engine to be run on the cache clusters in the replication group.

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

Parameters:
engineVersion The upgraded version of the cache engine to be run on the cache clusters in the replication group.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ModifyReplicationGroupRequest withEngineVersion(String engineVersion) {
         this. = engineVersion;
         return this;
     }

    
This parameter is currently disabled.

Returns:
This parameter is currently disabled.
 
     public Boolean isAutoMinorVersionUpgrade() {
         return ;
     }
    
    
This parameter is currently disabled.

Parameters:
autoMinorVersionUpgrade This parameter is currently disabled.
 
     public void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) {
         this. = autoMinorVersionUpgrade;
     }
    
    
This parameter is currently disabled.

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

Parameters:
autoMinorVersionUpgrade This parameter is currently disabled.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ModifyReplicationGroupRequest withAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) {
        this. = autoMinorVersionUpgrade;
        return this;
    }

    
This parameter is currently disabled.

Returns:
This parameter is currently disabled.
        return ;
    }

    
The number of days for which ElastiCache will retain automatic node group snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.

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

Returns:
The number of days for which ElastiCache will retain automatic node group snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.

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

        return ;
    }
    
    
The number of days for which ElastiCache will retain automatic node group snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.

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

Parameters:
snapshotRetentionLimit The number of days for which ElastiCache will retain automatic node group snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.

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

    public void setSnapshotRetentionLimit(Integer snapshotRetentionLimit) {
        this. = snapshotRetentionLimit;
    }
    
    
The number of days for which ElastiCache will retain automatic node group snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.

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

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

Parameters:
snapshotRetentionLimit The number of days for which ElastiCache will retain automatic node group snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.

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

Returns:
A reference to this updated object so that method calls can be chained together.
    public ModifyReplicationGroupRequest withSnapshotRetentionLimit(Integer snapshotRetentionLimit) {
        this. = snapshotRetentionLimit;
        return this;
    }

    
The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of the node group specified by SnapshottingClusterId.

Example: 05:00-09:00

If you do not specify this parameter, then ElastiCache will automatically choose an appropriate time range.

Returns:
The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of the node group specified by SnapshottingClusterId.

Example: 05:00-09:00

If you do not specify this parameter, then ElastiCache will automatically choose an appropriate time range.

    public String getSnapshotWindow() {
        return ;
    }
    
    
The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of the node group specified by SnapshottingClusterId.

Example: 05:00-09:00

If you do not specify this parameter, then ElastiCache will automatically choose an appropriate time range.

Parameters:
snapshotWindow The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of the node group specified by SnapshottingClusterId.

Example: 05:00-09:00

If you do not specify this parameter, then ElastiCache will automatically choose an appropriate time range.

    public void setSnapshotWindow(String snapshotWindow) {
        this. = snapshotWindow;
    }
    
    
The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of the node group specified by SnapshottingClusterId.

Example: 05:00-09:00

If you do not specify this parameter, then ElastiCache will automatically choose an appropriate time range.

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

Parameters:
snapshotWindow The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of the node group specified by SnapshottingClusterId.

Example: 05:00-09:00

If you do not specify this parameter, then ElastiCache will automatically choose an appropriate time range.

Returns:
A reference to this updated object so that method calls can be chained together.
    public ModifyReplicationGroupRequest withSnapshotWindow(String snapshotWindow) {
        this. = snapshotWindow;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getReplicationGroupId() != nullsb.append("ReplicationGroupId: " + getReplicationGroupId() + ",");
        if (getReplicationGroupDescription() != nullsb.append("ReplicationGroupDescription: " + getReplicationGroupDescription() + ",");
        if (getPrimaryClusterId() != nullsb.append("PrimaryClusterId: " + getPrimaryClusterId() + ",");
        if (getSnapshottingClusterId() != nullsb.append("SnapshottingClusterId: " + getSnapshottingClusterId() + ",");
        if (isAutomaticFailoverEnabled() != nullsb.append("AutomaticFailoverEnabled: " + isAutomaticFailoverEnabled() + ",");
        if (getCacheSecurityGroupNames() != nullsb.append("CacheSecurityGroupNames: " + getCacheSecurityGroupNames() + ",");
        if (getSecurityGroupIds() != nullsb.append("SecurityGroupIds: " + getSecurityGroupIds() + ",");
        if (getPreferredMaintenanceWindow() != nullsb.append("PreferredMaintenanceWindow: " + getPreferredMaintenanceWindow() + ",");
        if (getNotificationTopicArn() != nullsb.append("NotificationTopicArn: " + getNotificationTopicArn() + ",");
        if (getCacheParameterGroupName() != nullsb.append("CacheParameterGroupName: " + getCacheParameterGroupName() + ",");
        if (getNotificationTopicStatus() != nullsb.append("NotificationTopicStatus: " + getNotificationTopicStatus() + ",");
        if (isApplyImmediately() != nullsb.append("ApplyImmediately: " + isApplyImmediately() + ",");
        if (getEngineVersion() != nullsb.append("EngineVersion: " + getEngineVersion() + ",");
        if (isAutoMinorVersionUpgrade() != nullsb.append("AutoMinorVersionUpgrade: " + isAutoMinorVersionUpgrade() + ",");
        if (getSnapshotRetentionLimit() != nullsb.append("SnapshotRetentionLimit: " + getSnapshotRetentionLimit() + ",");
        if (getSnapshotWindow() != nullsb.append("SnapshotWindow: " + getSnapshotWindow() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getReplicationGroupId() == null) ? 0 : getReplicationGroupId().hashCode()); 
        hashCode = prime * hashCode + ((getReplicationGroupDescription() == null) ? 0 : getReplicationGroupDescription().hashCode()); 
        hashCode = prime * hashCode + ((getPrimaryClusterId() == null) ? 0 : getPrimaryClusterId().hashCode()); 
        hashCode = prime * hashCode + ((getSnapshottingClusterId() == null) ? 0 : getSnapshottingClusterId().hashCode()); 
        hashCode = prime * hashCode + ((isAutomaticFailoverEnabled() == null) ? 0 : isAutomaticFailoverEnabled().hashCode()); 
        hashCode = prime * hashCode + ((getCacheSecurityGroupNames() == null) ? 0 : getCacheSecurityGroupNames().hashCode()); 
        hashCode = prime * hashCode + ((getSecurityGroupIds() == null) ? 0 : getSecurityGroupIds().hashCode()); 
        hashCode = prime * hashCode + ((getPreferredMaintenanceWindow() == null) ? 0 : getPreferredMaintenanceWindow().hashCode()); 
        hashCode = prime * hashCode + ((getNotificationTopicArn() == null) ? 0 : getNotificationTopicArn().hashCode()); 
        hashCode = prime * hashCode + ((getCacheParameterGroupName() == null) ? 0 : getCacheParameterGroupName().hashCode()); 
        hashCode = prime * hashCode + ((getNotificationTopicStatus() == null) ? 0 : getNotificationTopicStatus().hashCode()); 
        hashCode = prime * hashCode + ((isApplyImmediately() == null) ? 0 : isApplyImmediately().hashCode()); 
        hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); 
        hashCode = prime * hashCode + ((isAutoMinorVersionUpgrade() == null) ? 0 : isAutoMinorVersionUpgrade().hashCode()); 
        hashCode = prime * hashCode + ((getSnapshotRetentionLimit() == null) ? 0 : getSnapshotRetentionLimit().hashCode()); 
        hashCode = prime * hashCode + ((getSnapshotWindow() == null) ? 0 : getSnapshotWindow().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ModifyReplicationGroupRequest == falsereturn false;
        
        if (other.getReplicationGroupId() == null ^ this.getReplicationGroupId() == nullreturn false;
        if (other.getReplicationGroupId() != null && other.getReplicationGroupId().equals(this.getReplicationGroupId()) == falsereturn false
        if (other.getReplicationGroupDescription() == null ^ this.getReplicationGroupDescription() == nullreturn false;
        if (other.getReplicationGroupDescription() != null && other.getReplicationGroupDescription().equals(this.getReplicationGroupDescription()) == falsereturn false
        if (other.getPrimaryClusterId() == null ^ this.getPrimaryClusterId() == nullreturn false;
        if (other.getPrimaryClusterId() != null && other.getPrimaryClusterId().equals(this.getPrimaryClusterId()) == falsereturn false
        if (other.getSnapshottingClusterId() == null ^ this.getSnapshottingClusterId() == nullreturn false;
        if (other.getSnapshottingClusterId() != null && other.getSnapshottingClusterId().equals(this.getSnapshottingClusterId()) == falsereturn false
        if (other.isAutomaticFailoverEnabled() == null ^ this.isAutomaticFailoverEnabled() == nullreturn false;
        if (other.isAutomaticFailoverEnabled() != null && other.isAutomaticFailoverEnabled().equals(this.isAutomaticFailoverEnabled()) == falsereturn false
        if (other.getCacheSecurityGroupNames() == null ^ this.getCacheSecurityGroupNames() == nullreturn false;
        if (other.getCacheSecurityGroupNames() != null && other.getCacheSecurityGroupNames().equals(this.getCacheSecurityGroupNames()) == falsereturn false
        if (other.getSecurityGroupIds() == null ^ this.getSecurityGroupIds() == nullreturn false;
        if (other.getSecurityGroupIds() != null && other.getSecurityGroupIds().equals(this.getSecurityGroupIds()) == falsereturn false
        if (other.getPreferredMaintenanceWindow() == null ^ this.getPreferredMaintenanceWindow() == nullreturn false;
        if (other.getPreferredMaintenanceWindow() != null && other.getPreferredMaintenanceWindow().equals(this.getPreferredMaintenanceWindow()) == falsereturn false
        if (other.getNotificationTopicArn() == null ^ this.getNotificationTopicArn() == nullreturn false;
        if (other.getNotificationTopicArn() != null && other.getNotificationTopicArn().equals(this.getNotificationTopicArn()) == falsereturn false
        if (other.getCacheParameterGroupName() == null ^ this.getCacheParameterGroupName() == nullreturn false;
        if (other.getCacheParameterGroupName() != null && other.getCacheParameterGroupName().equals(this.getCacheParameterGroupName()) == falsereturn false
        if (other.getNotificationTopicStatus() == null ^ this.getNotificationTopicStatus() == nullreturn false;
        if (other.getNotificationTopicStatus() != null && other.getNotificationTopicStatus().equals(this.getNotificationTopicStatus()) == falsereturn false
        if (other.isApplyImmediately() == null ^ this.isApplyImmediately() == nullreturn false;
        if (other.isApplyImmediately() != null && other.isApplyImmediately().equals(this.isApplyImmediately()) == falsereturn false
        if (other.getEngineVersion() == null ^ this.getEngineVersion() == nullreturn false;
        if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == falsereturn false
        if (other.isAutoMinorVersionUpgrade() == null ^ this.isAutoMinorVersionUpgrade() == nullreturn false;
        if (other.isAutoMinorVersionUpgrade() != null && other.isAutoMinorVersionUpgrade().equals(this.isAutoMinorVersionUpgrade()) == falsereturn false
        if (other.getSnapshotRetentionLimit() == null ^ this.getSnapshotRetentionLimit() == nullreturn false;
        if (other.getSnapshotRetentionLimit() != null && other.getSnapshotRetentionLimit().equals(this.getSnapshotRetentionLimit()) == falsereturn false
        if (other.getSnapshotWindow() == null ^ this.getSnapshotWindow() == nullreturn false;
        if (other.getSnapshotWindow() != null && other.getSnapshotWindow().equals(this.getSnapshotWindow()) == falsereturn false
        return true;
    }
    
    @Override
        
            return (ModifyReplicationGroupRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X