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;
 

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

 
 public class ReplicationGroupPendingModifiedValues implements SerializableCloneable {

    
The primary cluster ID which will be applied immediately (if --apply-immediately was specified), or during the next maintenance window.
 
     private String primaryClusterId;

    
Indicates the status of Multi-AZ for this replication group. <note>

ElastiCache Multi-AZ replication groups are not supported on:

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

Constraints:
Allowed Values: enabled, disabled

 
     private String automaticFailoverStatus;

    
The primary cluster ID which will be applied immediately (if --apply-immediately was specified), or during the next maintenance window.

Returns:
The primary cluster ID which will be applied immediately (if --apply-immediately was specified), or during the next maintenance window.
 
     public String getPrimaryClusterId() {
         return ;
     }
    
    
The primary cluster ID which will be applied immediately (if --apply-immediately was specified), or during the next maintenance window.

Parameters:
primaryClusterId The primary cluster ID which will be applied immediately (if --apply-immediately was specified), or during the next maintenance window.
 
     public void setPrimaryClusterId(String primaryClusterId) {
         this. = primaryClusterId;
     }
    
    
The primary cluster ID which will be applied immediately (if --apply-immediately was specified), or during the next maintenance window.

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

Parameters:
primaryClusterId The primary cluster ID which will be applied immediately (if --apply-immediately was specified), or during the next maintenance window.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         this. = primaryClusterId;
         return this;
     }

    
Indicates the status of Multi-AZ for this replication group. <note>

ElastiCache Multi-AZ replication groups are not supported on:

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

Constraints:
Allowed Values: enabled, disabled

Returns:
Indicates the status of Multi-AZ for this replication group. <note>

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.
  • T1 and T2 cache node types.
</note>
See also:
PendingAutomaticFailoverStatus
        return ;
    }
    
    
Indicates the status of Multi-AZ for this replication group. <note>

ElastiCache Multi-AZ replication groups are not supported on:

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

Constraints:
Allowed Values: enabled, disabled

Parameters:
automaticFailoverStatus Indicates the status of Multi-AZ for this replication group. <note>

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.
  • T1 and T2 cache node types.
</note>
See also:
PendingAutomaticFailoverStatus
    public void setAutomaticFailoverStatus(String automaticFailoverStatus) {
        this. = automaticFailoverStatus;
    }
    
    
Indicates the status of Multi-AZ for this replication group. <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.

Constraints:
Allowed Values: enabled, disabled

Parameters:
automaticFailoverStatus Indicates the status of Multi-AZ for this replication group. <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.
See also:
PendingAutomaticFailoverStatus
        this. = automaticFailoverStatus;
        return this;
    }

    
Indicates the status of Multi-AZ for this replication group. <note>

ElastiCache Multi-AZ replication groups are not supported on:

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

Constraints:
Allowed Values: enabled, disabled

Parameters:
automaticFailoverStatus Indicates the status of Multi-AZ for this replication group. <note>

ElastiCache Multi-AZ replication groups are not supported on:

  • Redis versions earlier than 2.8.6.
  • T1 and T2 cache node types.
</note>
See also:
PendingAutomaticFailoverStatus
    public void setAutomaticFailoverStatus(PendingAutomaticFailoverStatus automaticFailoverStatus) {
        this. = automaticFailoverStatus.toString();
    }
    
    
Indicates the status of Multi-AZ for this replication group. <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.

Constraints:
Allowed Values: enabled, disabled

Parameters:
automaticFailoverStatus Indicates the status of Multi-AZ for this replication group. <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.
See also:
PendingAutomaticFailoverStatus
        this. = automaticFailoverStatus.toString();
        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 (getPrimaryClusterId() != nullsb.append("PrimaryClusterId: " + getPrimaryClusterId() + ",");
        if (getAutomaticFailoverStatus() != nullsb.append("AutomaticFailoverStatus: " + getAutomaticFailoverStatus() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getPrimaryClusterId() == null) ? 0 : getPrimaryClusterId().hashCode()); 
        hashCode = prime * hashCode + ((getAutomaticFailoverStatus() == null) ? 0 : getAutomaticFailoverStatus().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ReplicationGroupPendingModifiedValues == falsereturn false;
        
        if (other.getPrimaryClusterId() == null ^ this.getPrimaryClusterId() == nullreturn false;
        if (other.getPrimaryClusterId() != null && other.getPrimaryClusterId().equals(this.getPrimaryClusterId()) == falsereturn false
        if (other.getAutomaticFailoverStatus() == null ^ this.getAutomaticFailoverStatus() == nullreturn false;
        if (other.getAutomaticFailoverStatus() != null && other.getAutomaticFailoverStatus().equals(this.getAutomaticFailoverStatus()) == falsereturn false
        return true;
    }
    
    @Override
        try {
            return (ReplicationGroupPendingModifiedValuessuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X