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

com.amazonaws.services.databasemigrationservice.model.RebootReplicationInstanceRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Database Migration Service module holds the client classes that are used for communicating with AWS Database Migration Service.

The newest version!
/*
 * Copyright 2019-2024 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.databasemigrationservice.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class RebootReplicationInstanceRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The Amazon Resource Name (ARN) of the replication instance. *

*/ private String replicationInstanceArn; /** *

* If this parameter is true, the reboot is conducted through a Multi-AZ failover. If the instance * isn't configured for Multi-AZ, then you can't specify true. ( --force-planned-failover * and --force-failover can't both be set to true.) *

*/ private Boolean forceFailover; /** *

* If this parameter is true, the reboot is conducted through a planned Multi-AZ failover where * resources are released and cleaned up prior to conducting the failover. If the instance isn''t configured for * Multi-AZ, then you can't specify true. ( --force-planned-failover and * --force-failover can't both be set to true.) *

*/ private Boolean forcePlannedFailover; /** *

* The Amazon Resource Name (ARN) of the replication instance. *

* * @param replicationInstanceArn * The Amazon Resource Name (ARN) of the replication instance. */ public void setReplicationInstanceArn(String replicationInstanceArn) { this.replicationInstanceArn = replicationInstanceArn; } /** *

* The Amazon Resource Name (ARN) of the replication instance. *

* * @return The Amazon Resource Name (ARN) of the replication instance. */ public String getReplicationInstanceArn() { return this.replicationInstanceArn; } /** *

* The Amazon Resource Name (ARN) of the replication instance. *

* * @param replicationInstanceArn * The Amazon Resource Name (ARN) of the replication instance. * @return Returns a reference to this object so that method calls can be chained together. */ public RebootReplicationInstanceRequest withReplicationInstanceArn(String replicationInstanceArn) { setReplicationInstanceArn(replicationInstanceArn); return this; } /** *

* If this parameter is true, the reboot is conducted through a Multi-AZ failover. If the instance * isn't configured for Multi-AZ, then you can't specify true. ( --force-planned-failover * and --force-failover can't both be set to true.) *

* * @param forceFailover * If this parameter is true, the reboot is conducted through a Multi-AZ failover. If the * instance isn't configured for Multi-AZ, then you can't specify true. ( * --force-planned-failover and --force-failover can't both be set to * true.) */ public void setForceFailover(Boolean forceFailover) { this.forceFailover = forceFailover; } /** *

* If this parameter is true, the reboot is conducted through a Multi-AZ failover. If the instance * isn't configured for Multi-AZ, then you can't specify true. ( --force-planned-failover * and --force-failover can't both be set to true.) *

* * @return If this parameter is true, the reboot is conducted through a Multi-AZ failover. If the * instance isn't configured for Multi-AZ, then you can't specify true. ( * --force-planned-failover and --force-failover can't both be set to * true.) */ public Boolean getForceFailover() { return this.forceFailover; } /** *

* If this parameter is true, the reboot is conducted through a Multi-AZ failover. If the instance * isn't configured for Multi-AZ, then you can't specify true. ( --force-planned-failover * and --force-failover can't both be set to true.) *

* * @param forceFailover * If this parameter is true, the reboot is conducted through a Multi-AZ failover. If the * instance isn't configured for Multi-AZ, then you can't specify true. ( * --force-planned-failover and --force-failover can't both be set to * true.) * @return Returns a reference to this object so that method calls can be chained together. */ public RebootReplicationInstanceRequest withForceFailover(Boolean forceFailover) { setForceFailover(forceFailover); return this; } /** *

* If this parameter is true, the reboot is conducted through a Multi-AZ failover. If the instance * isn't configured for Multi-AZ, then you can't specify true. ( --force-planned-failover * and --force-failover can't both be set to true.) *

* * @return If this parameter is true, the reboot is conducted through a Multi-AZ failover. If the * instance isn't configured for Multi-AZ, then you can't specify true. ( * --force-planned-failover and --force-failover can't both be set to * true.) */ public Boolean isForceFailover() { return this.forceFailover; } /** *

* If this parameter is true, the reboot is conducted through a planned Multi-AZ failover where * resources are released and cleaned up prior to conducting the failover. If the instance isn''t configured for * Multi-AZ, then you can't specify true. ( --force-planned-failover and * --force-failover can't both be set to true.) *

* * @param forcePlannedFailover * If this parameter is true, the reboot is conducted through a planned Multi-AZ failover where * resources are released and cleaned up prior to conducting the failover. If the instance isn''t configured * for Multi-AZ, then you can't specify true. ( --force-planned-failover and * --force-failover can't both be set to true.) */ public void setForcePlannedFailover(Boolean forcePlannedFailover) { this.forcePlannedFailover = forcePlannedFailover; } /** *

* If this parameter is true, the reboot is conducted through a planned Multi-AZ failover where * resources are released and cleaned up prior to conducting the failover. If the instance isn''t configured for * Multi-AZ, then you can't specify true. ( --force-planned-failover and * --force-failover can't both be set to true.) *

* * @return If this parameter is true, the reboot is conducted through a planned Multi-AZ failover where * resources are released and cleaned up prior to conducting the failover. If the instance isn''t configured * for Multi-AZ, then you can't specify true. ( --force-planned-failover and * --force-failover can't both be set to true.) */ public Boolean getForcePlannedFailover() { return this.forcePlannedFailover; } /** *

* If this parameter is true, the reboot is conducted through a planned Multi-AZ failover where * resources are released and cleaned up prior to conducting the failover. If the instance isn''t configured for * Multi-AZ, then you can't specify true. ( --force-planned-failover and * --force-failover can't both be set to true.) *

* * @param forcePlannedFailover * If this parameter is true, the reboot is conducted through a planned Multi-AZ failover where * resources are released and cleaned up prior to conducting the failover. If the instance isn''t configured * for Multi-AZ, then you can't specify true. ( --force-planned-failover and * --force-failover can't both be set to true.) * @return Returns a reference to this object so that method calls can be chained together. */ public RebootReplicationInstanceRequest withForcePlannedFailover(Boolean forcePlannedFailover) { setForcePlannedFailover(forcePlannedFailover); return this; } /** *

* If this parameter is true, the reboot is conducted through a planned Multi-AZ failover where * resources are released and cleaned up prior to conducting the failover. If the instance isn''t configured for * Multi-AZ, then you can't specify true. ( --force-planned-failover and * --force-failover can't both be set to true.) *

* * @return If this parameter is true, the reboot is conducted through a planned Multi-AZ failover where * resources are released and cleaned up prior to conducting the failover. If the instance isn''t configured * for Multi-AZ, then you can't specify true. ( --force-planned-failover and * --force-failover can't both be set to true.) */ public Boolean isForcePlannedFailover() { return this.forcePlannedFailover; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getReplicationInstanceArn() != null) sb.append("ReplicationInstanceArn: ").append(getReplicationInstanceArn()).append(","); if (getForceFailover() != null) sb.append("ForceFailover: ").append(getForceFailover()).append(","); if (getForcePlannedFailover() != null) sb.append("ForcePlannedFailover: ").append(getForcePlannedFailover()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RebootReplicationInstanceRequest == false) return false; RebootReplicationInstanceRequest other = (RebootReplicationInstanceRequest) obj; if (other.getReplicationInstanceArn() == null ^ this.getReplicationInstanceArn() == null) return false; if (other.getReplicationInstanceArn() != null && other.getReplicationInstanceArn().equals(this.getReplicationInstanceArn()) == false) return false; if (other.getForceFailover() == null ^ this.getForceFailover() == null) return false; if (other.getForceFailover() != null && other.getForceFailover().equals(this.getForceFailover()) == false) return false; if (other.getForcePlannedFailover() == null ^ this.getForcePlannedFailover() == null) return false; if (other.getForcePlannedFailover() != null && other.getForcePlannedFailover().equals(this.getForcePlannedFailover()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReplicationInstanceArn() == null) ? 0 : getReplicationInstanceArn().hashCode()); hashCode = prime * hashCode + ((getForceFailover() == null) ? 0 : getForceFailover().hashCode()); hashCode = prime * hashCode + ((getForcePlannedFailover() == null) ? 0 : getForcePlannedFailover().hashCode()); return hashCode; } @Override public RebootReplicationInstanceRequest clone() { return (RebootReplicationInstanceRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy