All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.elasticache.model.ReplicationGroupPendingModifiedValues Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon ElastiCache module holds the client classes that are used for communicating with Amazon ElastiCache Service

There is a newer version: 2.29.39
Show newest version
/*
 * Copyright 2012-2017 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 software.amazon.awssdk.services.elasticache.model;

import javax.annotation.Generated;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 * 

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

*/ @Generated("software.amazon.awssdk:codegen") public class ReplicationGroupPendingModifiedValues implements ToCopyableBuilder { private final String primaryClusterId; private final String automaticFailoverStatus; private ReplicationGroupPendingModifiedValues(BuilderImpl builder) { this.primaryClusterId = builder.primaryClusterId; this.automaticFailoverStatus = builder.automaticFailoverStatus; } /** *

* The primary cluster ID that is applied immediately (if --apply-immediately was specified), or during * the next maintenance window. *

* * @return The primary cluster ID that is applied immediately (if --apply-immediately was specified), * or during the next maintenance window. */ public String primaryClusterId() { return primaryClusterId; } /** *

* Indicates the status of Multi-AZ for this Redis replication group. *

* *

* ElastiCache Multi-AZ replication groups are not supported on: *

*
    *
  • *

    * Redis versions earlier than 2.8.6. *

    *
  • *
  • *

    * Redis (cluster mode disabled):T1 and T2 cache node types. *

    *

    * Redis (cluster mode enabled): T1 node types. *

    *
  • *
*
* * @return Indicates the status of Multi-AZ for this Redis replication group.

*

* ElastiCache Multi-AZ replication groups are not supported on: *

*
    *
  • *

    * Redis versions earlier than 2.8.6. *

    *
  • *
  • *

    * Redis (cluster mode disabled):T1 and T2 cache node types. *

    *

    * Redis (cluster mode enabled): T1 node types. *

    *
  • *
* @see PendingAutomaticFailoverStatus */ public String automaticFailoverStatus() { return automaticFailoverStatus; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + ((primaryClusterId() == null) ? 0 : primaryClusterId().hashCode()); hashCode = 31 * hashCode + ((automaticFailoverStatus() == null) ? 0 : automaticFailoverStatus().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ReplicationGroupPendingModifiedValues)) { return false; } ReplicationGroupPendingModifiedValues other = (ReplicationGroupPendingModifiedValues) obj; if (other.primaryClusterId() == null ^ this.primaryClusterId() == null) { return false; } if (other.primaryClusterId() != null && !other.primaryClusterId().equals(this.primaryClusterId())) { return false; } if (other.automaticFailoverStatus() == null ^ this.automaticFailoverStatus() == null) { return false; } if (other.automaticFailoverStatus() != null && !other.automaticFailoverStatus().equals(this.automaticFailoverStatus())) { return false; } return true; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (primaryClusterId() != null) { sb.append("PrimaryClusterId: ").append(primaryClusterId()).append(","); } if (automaticFailoverStatus() != null) { sb.append("AutomaticFailoverStatus: ").append(automaticFailoverStatus()).append(","); } sb.append("}"); return sb.toString(); } public interface Builder extends CopyableBuilder { /** *

* The primary cluster ID that is applied immediately (if --apply-immediately was specified), or * during the next maintenance window. *

* * @param primaryClusterId * The primary cluster ID that is applied immediately (if --apply-immediately was * specified), or during the next maintenance window. * @return Returns a reference to this object so that method calls can be chained together. */ Builder primaryClusterId(String primaryClusterId); /** *

* Indicates the status of Multi-AZ for this Redis replication group. *

* *

* ElastiCache Multi-AZ replication groups are not supported on: *

*
    *
  • *

    * Redis versions earlier than 2.8.6. *

    *
  • *
  • *

    * Redis (cluster mode disabled):T1 and T2 cache node types. *

    *

    * Redis (cluster mode enabled): T1 node types. *

    *
  • *
*
* * @param automaticFailoverStatus * Indicates the status of Multi-AZ for this Redis replication group.

*

* ElastiCache Multi-AZ replication groups are not supported on: *

*
    *
  • *

    * Redis versions earlier than 2.8.6. *

    *
  • *
  • *

    * Redis (cluster mode disabled):T1 and T2 cache node types. *

    *

    * Redis (cluster mode enabled): T1 node types. *

    *
  • *
* @see PendingAutomaticFailoverStatus * @return Returns a reference to this object so that method calls can be chained together. * @see PendingAutomaticFailoverStatus */ Builder automaticFailoverStatus(String automaticFailoverStatus); /** *

* Indicates the status of Multi-AZ for this Redis replication group. *

* *

* ElastiCache Multi-AZ replication groups are not supported on: *

*
    *
  • *

    * Redis versions earlier than 2.8.6. *

    *
  • *
  • *

    * Redis (cluster mode disabled):T1 and T2 cache node types. *

    *

    * Redis (cluster mode enabled): T1 node types. *

    *
  • *
*
* * @param automaticFailoverStatus * Indicates the status of Multi-AZ for this Redis replication group.

*

* ElastiCache Multi-AZ replication groups are not supported on: *

*
    *
  • *

    * Redis versions earlier than 2.8.6. *

    *
  • *
  • *

    * Redis (cluster mode disabled):T1 and T2 cache node types. *

    *

    * Redis (cluster mode enabled): T1 node types. *

    *
  • *
* @see PendingAutomaticFailoverStatus * @return Returns a reference to this object so that method calls can be chained together. * @see PendingAutomaticFailoverStatus */ Builder automaticFailoverStatus(PendingAutomaticFailoverStatus automaticFailoverStatus); } private static final class BuilderImpl implements Builder { private String primaryClusterId; private String automaticFailoverStatus; private BuilderImpl() { } private BuilderImpl(ReplicationGroupPendingModifiedValues model) { setPrimaryClusterId(model.primaryClusterId); setAutomaticFailoverStatus(model.automaticFailoverStatus); } public final String getPrimaryClusterId() { return primaryClusterId; } @Override public final Builder primaryClusterId(String primaryClusterId) { this.primaryClusterId = primaryClusterId; return this; } public final void setPrimaryClusterId(String primaryClusterId) { this.primaryClusterId = primaryClusterId; } public final String getAutomaticFailoverStatus() { return automaticFailoverStatus; } @Override public final Builder automaticFailoverStatus(String automaticFailoverStatus) { this.automaticFailoverStatus = automaticFailoverStatus; return this; } @Override public final Builder automaticFailoverStatus(PendingAutomaticFailoverStatus automaticFailoverStatus) { this.automaticFailoverStatus(automaticFailoverStatus.toString()); return this; } public final void setAutomaticFailoverStatus(String automaticFailoverStatus) { this.automaticFailoverStatus = automaticFailoverStatus; } @Override public ReplicationGroupPendingModifiedValues build() { return new ReplicationGroupPendingModifiedValues(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy