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

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

/*
 * Copyright 2017-2022 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; /** *

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

*/ private Boolean autoUpgrade; /** *

* A value that 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; /** *

* A value that indicates whether you can use Aurora parallel query with the target engine version. *

*/ private Boolean supportsParallelQuery; /** *

* A value that indicates whether you can use Aurora global databases with the target engine version. *

*/ private Boolean supportsGlobalDatabases; /** *

* A value that indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine version. *

*/ private Boolean supportsBabelfish; /** *

* 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; } /** *

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

* * @param autoUpgrade * A value that indicates whether the target version is applied to any source DB instances that have * AutoMinorVersionUpgrade set to true. */ public void setAutoUpgrade(Boolean autoUpgrade) { this.autoUpgrade = autoUpgrade; } /** *

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

* * @return A value that indicates whether the target version is applied to any source DB instances that have * AutoMinorVersionUpgrade set to true. */ public Boolean getAutoUpgrade() { return this.autoUpgrade; } /** *

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

* * @param autoUpgrade * A value that indicates whether the target version is applied to any source DB instances that have * AutoMinorVersionUpgrade set to true. * @return Returns a reference to this object so that method calls can be chained together. */ public UpgradeTarget withAutoUpgrade(Boolean autoUpgrade) { setAutoUpgrade(autoUpgrade); return this; } /** *

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

* * @return A value that indicates whether the target version is applied to any source DB instances that have * AutoMinorVersionUpgrade set to true. */ public Boolean isAutoUpgrade() { return this.autoUpgrade; } /** *

* A value that indicates whether upgrading to the target version requires upgrading the major version of the * database engine. *

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

* A value that indicates whether upgrading to the target version requires upgrading the major version of the * database engine. *

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

* A value that indicates whether upgrading to the target version requires upgrading the major version of the * database engine. *

* * @param isMajorVersionUpgrade * A value that 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; } /** *

* A value that indicates whether upgrading to the target version requires upgrading the major version of the * database engine. *

* * @return A value that 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; } /** *

* A value that indicates whether you can use Aurora parallel query with the target engine version. *

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

* A value that indicates whether you can use Aurora parallel query with the target engine version. *

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

* A value that indicates whether you can use Aurora parallel query with the target engine version. *

* * @param supportsParallelQuery * A value that 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; } /** *

* A value that indicates whether you can use Aurora parallel query with the target engine version. *

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

* A value that indicates whether you can use Aurora global databases with the target engine version. *

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

* A value that indicates whether you can use Aurora global databases with the target engine version. *

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

* A value that indicates whether you can use Aurora global databases with the target engine version. *

* * @param supportsGlobalDatabases * A value that 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; } /** *

* A value that indicates whether you can use Aurora global databases with the target engine version. *

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

* A value that indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine version. *

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

* A value that indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine version. *

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

* A value that indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine version. *

* * @param supportsBabelfish * A value that 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; } /** *

* A value that indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine version. *

* * @return A value that indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine * version. */ public Boolean isSupportsBabelfish() { return this.supportsBabelfish; } /** * 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()); 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; 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()); 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