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

com.amazonaws.services.rds.model.UpgradeTarget Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon RDS module holds the client classes that are used for communicating with Amazon Relational Database 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.rds.model;

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

/**
 * 

* The version of the database engine that a DB instance can be upgraded to. *

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

* The name of the upgrade target database engine. *

*/ private String engine; /** *

* The version number of the upgrade target database engine. *

*/ private String engineVersion; /** *

* The version of the database engine that a DB instance can be upgraded to. *

*/ private String description; /** *

* Indicates whether the target version is applied to any source DB instances that have * AutoMinorVersionUpgrade set to true. *

*

* This parameter is dynamic, and is set by RDS. *

*/ private Boolean autoUpgrade; /** *

* Indicates whether upgrading to the target version requires upgrading the major version of the database engine. *

*/ private Boolean isMajorVersionUpgrade; /** *

* A list of the supported DB engine modes for the target engine version. *

*/ private com.amazonaws.internal.SdkInternalList supportedEngineModes; /** *

* Indicates whether you can use Aurora parallel query with the target engine version. *

*/ private Boolean supportsParallelQuery; /** *

* Indicates whether you can use Aurora global databases with the target engine version. *

*/ private Boolean supportsGlobalDatabases; /** *

* Indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine version. *

*/ private Boolean supportsBabelfish; /** *

* Indicates whether the DB engine version supports Aurora Limitless Database. *

*/ private Boolean supportsLimitlessDatabase; /** *

* Indicates whether the target engine version supports forwarding write operations from reader DB instances to the * writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances. *

*

* Valid for: Aurora DB clusters only *

*/ private Boolean supportsLocalWriteForwarding; /** *

* Indicates whether the DB engine version supports zero-ETL integrations with Amazon Redshift. *

*/ private Boolean supportsIntegrations; /** *

* The name of the upgrade target database engine. *

* * @param engine * The name of the upgrade target database engine. */ public void setEngine(String engine) { this.engine = engine; } /** *

* The name of the upgrade target database engine. *

* * @return The name of the upgrade target database engine. */ public String getEngine() { return this.engine; } /** *

* The name of the upgrade target database engine. *

* * @param engine * The name of the upgrade target database engine. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeTarget withEngine(String engine) { setEngine(engine); return this; } /** *

* The version number of the upgrade target database engine. *

* * @param engineVersion * The version number of the upgrade target database engine. */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** *

* The version number of the upgrade target database engine. *

* * @return The version number of the upgrade target database engine. */ public String getEngineVersion() { return this.engineVersion; } /** *

* The version number of the upgrade target database engine. *

* * @param engineVersion * The version number of the upgrade target database engine. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeTarget withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); return this; } /** *

* The version of the database engine that a DB instance can be upgraded to. *

* * @param description * The version of the database engine that a DB instance can be upgraded to. */ public void setDescription(String description) { this.description = description; } /** *

* The version of the database engine that a DB instance can be upgraded to. *

* * @return The version of the database engine that a DB instance can be upgraded to. */ public String getDescription() { return this.description; } /** *

* The version of the database engine that a DB instance can be upgraded to. *

* * @param description * The version of the database engine that a DB instance can be upgraded to. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeTarget withDescription(String description) { setDescription(description); return this; } /** *

* Indicates whether the target version is applied to any source DB instances that have * AutoMinorVersionUpgrade set to true. *

*

* This parameter is dynamic, and is set by RDS. *

* * @param autoUpgrade * Indicates whether the target version is applied to any source DB instances that have * AutoMinorVersionUpgrade set to true.

*

* This parameter is dynamic, and is set by RDS. */ public void setAutoUpgrade(Boolean autoUpgrade) { this.autoUpgrade = autoUpgrade; } /** *

* Indicates whether the target version is applied to any source DB instances that have * AutoMinorVersionUpgrade set to true. *

*

* This parameter is dynamic, and is set by RDS. *

* * @return Indicates whether the target version is applied to any source DB instances that have * AutoMinorVersionUpgrade set to true.

*

* This parameter is dynamic, and is set by RDS. */ public Boolean getAutoUpgrade() { return this.autoUpgrade; } /** *

* Indicates whether the target version is applied to any source DB instances that have * AutoMinorVersionUpgrade set to true. *

*

* This parameter is dynamic, and is set by RDS. *

* * @param autoUpgrade * Indicates whether the target version is applied to any source DB instances that have * AutoMinorVersionUpgrade set to true.

*

* This parameter is dynamic, and is set by RDS. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeTarget withAutoUpgrade(Boolean autoUpgrade) { setAutoUpgrade(autoUpgrade); return this; } /** *

* Indicates whether the target version is applied to any source DB instances that have * AutoMinorVersionUpgrade set to true. *

*

* This parameter is dynamic, and is set by RDS. *

* * @return Indicates whether the target version is applied to any source DB instances that have * AutoMinorVersionUpgrade set to true.

*

* This parameter is dynamic, and is set by RDS. */ public Boolean isAutoUpgrade() { return this.autoUpgrade; } /** *

* Indicates whether upgrading to the target version requires upgrading the major version of the database engine. *

* * @param isMajorVersionUpgrade * Indicates whether upgrading to the target version requires upgrading the major version of the database * engine. */ public void setIsMajorVersionUpgrade(Boolean isMajorVersionUpgrade) { this.isMajorVersionUpgrade = isMajorVersionUpgrade; } /** *

* Indicates whether upgrading to the target version requires upgrading the major version of the database engine. *

* * @return Indicates whether upgrading to the target version requires upgrading the major version of the database * engine. */ public Boolean getIsMajorVersionUpgrade() { return this.isMajorVersionUpgrade; } /** *

* Indicates whether upgrading to the target version requires upgrading the major version of the database engine. *

* * @param isMajorVersionUpgrade * Indicates whether upgrading to the target version requires upgrading the major version of the database * engine. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeTarget withIsMajorVersionUpgrade(Boolean isMajorVersionUpgrade) { setIsMajorVersionUpgrade(isMajorVersionUpgrade); return this; } /** *

* Indicates whether upgrading to the target version requires upgrading the major version of the database engine. *

* * @return Indicates whether upgrading to the target version requires upgrading the major version of the database * engine. */ public Boolean isMajorVersionUpgrade() { return this.isMajorVersionUpgrade; } /** *

* A list of the supported DB engine modes for the target engine version. *

* * @return A list of the supported DB engine modes for the target engine version. */ public java.util.List getSupportedEngineModes() { if (supportedEngineModes == null) { supportedEngineModes = new com.amazonaws.internal.SdkInternalList(); } return supportedEngineModes; } /** *

* A list of the supported DB engine modes for the target engine version. *

* * @param supportedEngineModes * A list of the supported DB engine modes for the target engine version. */ public void setSupportedEngineModes(java.util.Collection supportedEngineModes) { if (supportedEngineModes == null) { this.supportedEngineModes = null; return; } this.supportedEngineModes = new com.amazonaws.internal.SdkInternalList(supportedEngineModes); } /** *

* A list of the supported DB engine modes for the target engine version. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportedEngineModes(java.util.Collection)} or {@link #withSupportedEngineModes(java.util.Collection)} * if you want to override the existing values. *

* * @param supportedEngineModes * A list of the supported DB engine modes for the target engine version. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeTarget withSupportedEngineModes(String... supportedEngineModes) { if (this.supportedEngineModes == null) { setSupportedEngineModes(new com.amazonaws.internal.SdkInternalList(supportedEngineModes.length)); } for (String ele : supportedEngineModes) { this.supportedEngineModes.add(ele); } return this; } /** *

* A list of the supported DB engine modes for the target engine version. *

* * @param supportedEngineModes * A list of the supported DB engine modes for the target engine version. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeTarget withSupportedEngineModes(java.util.Collection supportedEngineModes) { setSupportedEngineModes(supportedEngineModes); return this; } /** *

* Indicates whether you can use Aurora parallel query with the target engine version. *

* * @param supportsParallelQuery * Indicates whether you can use Aurora parallel query with the target engine version. */ public void setSupportsParallelQuery(Boolean supportsParallelQuery) { this.supportsParallelQuery = supportsParallelQuery; } /** *

* Indicates whether you can use Aurora parallel query with the target engine version. *

* * @return Indicates whether you can use Aurora parallel query with the target engine version. */ public Boolean getSupportsParallelQuery() { return this.supportsParallelQuery; } /** *

* Indicates whether you can use Aurora parallel query with the target engine version. *

* * @param supportsParallelQuery * Indicates whether you can use Aurora parallel query with the target engine version. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeTarget withSupportsParallelQuery(Boolean supportsParallelQuery) { setSupportsParallelQuery(supportsParallelQuery); return this; } /** *

* Indicates whether you can use Aurora parallel query with the target engine version. *

* * @return Indicates whether you can use Aurora parallel query with the target engine version. */ public Boolean isSupportsParallelQuery() { return this.supportsParallelQuery; } /** *

* Indicates whether you can use Aurora global databases with the target engine version. *

* * @param supportsGlobalDatabases * Indicates whether you can use Aurora global databases with the target engine version. */ public void setSupportsGlobalDatabases(Boolean supportsGlobalDatabases) { this.supportsGlobalDatabases = supportsGlobalDatabases; } /** *

* Indicates whether you can use Aurora global databases with the target engine version. *

* * @return Indicates whether you can use Aurora global databases with the target engine version. */ public Boolean getSupportsGlobalDatabases() { return this.supportsGlobalDatabases; } /** *

* Indicates whether you can use Aurora global databases with the target engine version. *

* * @param supportsGlobalDatabases * Indicates whether you can use Aurora global databases with the target engine version. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeTarget withSupportsGlobalDatabases(Boolean supportsGlobalDatabases) { setSupportsGlobalDatabases(supportsGlobalDatabases); return this; } /** *

* Indicates whether you can use Aurora global databases with the target engine version. *

* * @return Indicates whether you can use Aurora global databases with the target engine version. */ public Boolean isSupportsGlobalDatabases() { return this.supportsGlobalDatabases; } /** *

* Indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine version. *

* * @param supportsBabelfish * Indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine version. */ public void setSupportsBabelfish(Boolean supportsBabelfish) { this.supportsBabelfish = supportsBabelfish; } /** *

* Indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine version. *

* * @return Indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine version. */ public Boolean getSupportsBabelfish() { return this.supportsBabelfish; } /** *

* Indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine version. *

* * @param supportsBabelfish * Indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine version. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeTarget withSupportsBabelfish(Boolean supportsBabelfish) { setSupportsBabelfish(supportsBabelfish); return this; } /** *

* Indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine version. *

* * @return Indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine version. */ public Boolean isSupportsBabelfish() { return this.supportsBabelfish; } /** *

* Indicates whether the DB engine version supports Aurora Limitless Database. *

* * @param supportsLimitlessDatabase * Indicates whether the DB engine version supports Aurora Limitless Database. */ public void setSupportsLimitlessDatabase(Boolean supportsLimitlessDatabase) { this.supportsLimitlessDatabase = supportsLimitlessDatabase; } /** *

* Indicates whether the DB engine version supports Aurora Limitless Database. *

* * @return Indicates whether the DB engine version supports Aurora Limitless Database. */ public Boolean getSupportsLimitlessDatabase() { return this.supportsLimitlessDatabase; } /** *

* Indicates whether the DB engine version supports Aurora Limitless Database. *

* * @param supportsLimitlessDatabase * Indicates whether the DB engine version supports Aurora Limitless Database. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeTarget withSupportsLimitlessDatabase(Boolean supportsLimitlessDatabase) { setSupportsLimitlessDatabase(supportsLimitlessDatabase); return this; } /** *

* Indicates whether the DB engine version supports Aurora Limitless Database. *

* * @return Indicates whether the DB engine version supports Aurora Limitless Database. */ public Boolean isSupportsLimitlessDatabase() { return this.supportsLimitlessDatabase; } /** *

* Indicates whether the target engine version supports forwarding write operations from reader DB instances to the * writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances. *

*

* Valid for: Aurora DB clusters only *

* * @param supportsLocalWriteForwarding * Indicates whether the target engine version supports forwarding write operations from reader DB instances * to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB * instances.

*

* Valid for: Aurora DB clusters only */ public void setSupportsLocalWriteForwarding(Boolean supportsLocalWriteForwarding) { this.supportsLocalWriteForwarding = supportsLocalWriteForwarding; } /** *

* Indicates whether the target engine version supports forwarding write operations from reader DB instances to the * writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances. *

*

* Valid for: Aurora DB clusters only *

* * @return Indicates whether the target engine version supports forwarding write operations from reader DB instances * to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB * instances.

*

* Valid for: Aurora DB clusters only */ public Boolean getSupportsLocalWriteForwarding() { return this.supportsLocalWriteForwarding; } /** *

* Indicates whether the target engine version supports forwarding write operations from reader DB instances to the * writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances. *

*

* Valid for: Aurora DB clusters only *

* * @param supportsLocalWriteForwarding * Indicates whether the target engine version supports forwarding write operations from reader DB instances * to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB * instances.

*

* Valid for: Aurora DB clusters only * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeTarget withSupportsLocalWriteForwarding(Boolean supportsLocalWriteForwarding) { setSupportsLocalWriteForwarding(supportsLocalWriteForwarding); return this; } /** *

* Indicates whether the target engine version supports forwarding write operations from reader DB instances to the * writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances. *

*

* Valid for: Aurora DB clusters only *

* * @return Indicates whether the target engine version supports forwarding write operations from reader DB instances * to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB * instances.

*

* Valid for: Aurora DB clusters only */ public Boolean isSupportsLocalWriteForwarding() { return this.supportsLocalWriteForwarding; } /** *

* Indicates whether the DB engine version supports zero-ETL integrations with Amazon Redshift. *

* * @param supportsIntegrations * Indicates whether the DB engine version supports zero-ETL integrations with Amazon Redshift. */ public void setSupportsIntegrations(Boolean supportsIntegrations) { this.supportsIntegrations = supportsIntegrations; } /** *

* Indicates whether the DB engine version supports zero-ETL integrations with Amazon Redshift. *

* * @return Indicates whether the DB engine version supports zero-ETL integrations with Amazon Redshift. */ public Boolean getSupportsIntegrations() { return this.supportsIntegrations; } /** *

* Indicates whether the DB engine version supports zero-ETL integrations with Amazon Redshift. *

* * @param supportsIntegrations * Indicates whether the DB engine version supports zero-ETL integrations with Amazon Redshift. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeTarget withSupportsIntegrations(Boolean supportsIntegrations) { setSupportsIntegrations(supportsIntegrations); return this; } /** *

* Indicates whether the DB engine version supports zero-ETL integrations with Amazon Redshift. *

* * @return Indicates whether the DB engine version supports zero-ETL integrations with Amazon Redshift. */ public Boolean isSupportsIntegrations() { return this.supportsIntegrations; } /** * 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 (getEngine() != null) sb.append("Engine: ").append(getEngine()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getAutoUpgrade() != null) sb.append("AutoUpgrade: ").append(getAutoUpgrade()).append(","); if (getIsMajorVersionUpgrade() != null) sb.append("IsMajorVersionUpgrade: ").append(getIsMajorVersionUpgrade()).append(","); if (getSupportedEngineModes() != null) sb.append("SupportedEngineModes: ").append(getSupportedEngineModes()).append(","); if (getSupportsParallelQuery() != null) sb.append("SupportsParallelQuery: ").append(getSupportsParallelQuery()).append(","); if (getSupportsGlobalDatabases() != null) sb.append("SupportsGlobalDatabases: ").append(getSupportsGlobalDatabases()).append(","); if (getSupportsBabelfish() != null) sb.append("SupportsBabelfish: ").append(getSupportsBabelfish()).append(","); if (getSupportsLimitlessDatabase() != null) sb.append("SupportsLimitlessDatabase: ").append(getSupportsLimitlessDatabase()).append(","); if (getSupportsLocalWriteForwarding() != null) sb.append("SupportsLocalWriteForwarding: ").append(getSupportsLocalWriteForwarding()).append(","); if (getSupportsIntegrations() != null) sb.append("SupportsIntegrations: ").append(getSupportsIntegrations()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpgradeTarget == false) return false; UpgradeTarget other = (UpgradeTarget) obj; if (other.getEngine() == null ^ this.getEngine() == null) return false; if (other.getEngine() != null && other.getEngine().equals(this.getEngine()) == false) return false; if (other.getEngineVersion() == null ^ this.getEngineVersion() == null) return false; if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getAutoUpgrade() == null ^ this.getAutoUpgrade() == null) return false; if (other.getAutoUpgrade() != null && other.getAutoUpgrade().equals(this.getAutoUpgrade()) == false) return false; if (other.getIsMajorVersionUpgrade() == null ^ this.getIsMajorVersionUpgrade() == null) return false; if (other.getIsMajorVersionUpgrade() != null && other.getIsMajorVersionUpgrade().equals(this.getIsMajorVersionUpgrade()) == false) return false; if (other.getSupportedEngineModes() == null ^ this.getSupportedEngineModes() == null) return false; if (other.getSupportedEngineModes() != null && other.getSupportedEngineModes().equals(this.getSupportedEngineModes()) == false) return false; if (other.getSupportsParallelQuery() == null ^ this.getSupportsParallelQuery() == null) return false; if (other.getSupportsParallelQuery() != null && other.getSupportsParallelQuery().equals(this.getSupportsParallelQuery()) == false) return false; if (other.getSupportsGlobalDatabases() == null ^ this.getSupportsGlobalDatabases() == null) return false; if (other.getSupportsGlobalDatabases() != null && other.getSupportsGlobalDatabases().equals(this.getSupportsGlobalDatabases()) == false) return false; if (other.getSupportsBabelfish() == null ^ this.getSupportsBabelfish() == null) return false; if (other.getSupportsBabelfish() != null && other.getSupportsBabelfish().equals(this.getSupportsBabelfish()) == false) return false; if (other.getSupportsLimitlessDatabase() == null ^ this.getSupportsLimitlessDatabase() == null) return false; if (other.getSupportsLimitlessDatabase() != null && other.getSupportsLimitlessDatabase().equals(this.getSupportsLimitlessDatabase()) == false) return false; if (other.getSupportsLocalWriteForwarding() == null ^ this.getSupportsLocalWriteForwarding() == null) return false; if (other.getSupportsLocalWriteForwarding() != null && other.getSupportsLocalWriteForwarding().equals(this.getSupportsLocalWriteForwarding()) == false) return false; if (other.getSupportsIntegrations() == null ^ this.getSupportsIntegrations() == null) return false; if (other.getSupportsIntegrations() != null && other.getSupportsIntegrations().equals(this.getSupportsIntegrations()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getAutoUpgrade() == null) ? 0 : getAutoUpgrade().hashCode()); hashCode = prime * hashCode + ((getIsMajorVersionUpgrade() == null) ? 0 : getIsMajorVersionUpgrade().hashCode()); hashCode = prime * hashCode + ((getSupportedEngineModes() == null) ? 0 : getSupportedEngineModes().hashCode()); hashCode = prime * hashCode + ((getSupportsParallelQuery() == null) ? 0 : getSupportsParallelQuery().hashCode()); hashCode = prime * hashCode + ((getSupportsGlobalDatabases() == null) ? 0 : getSupportsGlobalDatabases().hashCode()); hashCode = prime * hashCode + ((getSupportsBabelfish() == null) ? 0 : getSupportsBabelfish().hashCode()); hashCode = prime * hashCode + ((getSupportsLimitlessDatabase() == null) ? 0 : getSupportsLimitlessDatabase().hashCode()); hashCode = prime * hashCode + ((getSupportsLocalWriteForwarding() == null) ? 0 : getSupportsLocalWriteForwarding().hashCode()); hashCode = prime * hashCode + ((getSupportsIntegrations() == null) ? 0 : getSupportsIntegrations().hashCode()); return hashCode; } @Override public UpgradeTarget clone() { try { return (UpgradeTarget) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy