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 SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-2016 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;

/**
 * 

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

*/ 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 will be applied to any * source DB instances that have AutoMinorVersionUpgrade set to true. *

*/ private Boolean autoUpgrade; /** *

* A value that indicates whether a database engine will be upgraded to a * major version. *

*/ private Boolean isMajorVersionUpgrade; /** *

* 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 will be applied to any * source DB instances that have AutoMinorVersionUpgrade set to true. *

* * @param autoUpgrade * A value that indicates whether the target version will be 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 will be applied to any * source DB instances that have AutoMinorVersionUpgrade set to true. *

* * @return A value that indicates whether the target version will be 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 will be applied to any * source DB instances that have AutoMinorVersionUpgrade set to true. *

* * @param autoUpgrade * A value that indicates whether the target version will be 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 will be applied to any * source DB instances that have AutoMinorVersionUpgrade set to true. *

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

* A value that indicates whether a database engine will be upgraded to a * major version. *

* * @param isMajorVersionUpgrade * A value that indicates whether a database engine will be upgraded * to a major version. */ public void setIsMajorVersionUpgrade(Boolean isMajorVersionUpgrade) { this.isMajorVersionUpgrade = isMajorVersionUpgrade; } /** *

* A value that indicates whether a database engine will be upgraded to a * major version. *

* * @return A value that indicates whether a database engine will be upgraded * to a major version. */ public Boolean getIsMajorVersionUpgrade() { return this.isMajorVersionUpgrade; } /** *

* A value that indicates whether a database engine will be upgraded to a * major version. *

* * @param isMajorVersionUpgrade * A value that indicates whether a database engine will be upgraded * to a major version. * @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 a database engine will be upgraded to a * major version. *

* * @return A value that indicates whether a database engine will be upgraded * to a major version. */ public Boolean isMajorVersionUpgrade() { return this.isMajorVersionUpgrade; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @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: " + getEngine() + ","); if (getEngineVersion() != null) sb.append("EngineVersion: " + getEngineVersion() + ","); if (getDescription() != null) sb.append("Description: " + getDescription() + ","); if (getAutoUpgrade() != null) sb.append("AutoUpgrade: " + getAutoUpgrade() + ","); if (getIsMajorVersionUpgrade() != null) sb.append("IsMajorVersionUpgrade: " + getIsMajorVersionUpgrade()); 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; 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()); 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