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

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

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

/**
 * 

* Available option. *

*/ public class OptionGroupOption implements Serializable, Cloneable { /** *

* The name of the option. *

*/ private String name; /** *

* The description of the option. *

*/ private String description; /** *

* The name of the engine that this option can be applied to. *

*/ private String engineName; /** *

* Indicates the major engine version that the option is available for. *

*/ private String majorEngineVersion; /** *

* The minimum required engine version for the option to be applied. *

*/ private String minimumRequiredMinorEngineVersion; /** *

* Specifies whether the option requires a port. *

*/ private Boolean portRequired; /** *

* If the option requires a port, specifies the default port for the option. *

*/ private Integer defaultPort; /** *

* The options that are prerequisites for this option. *

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

* The options that conflict with this option. *

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

* Persistent options can't be removed from an option group while DB * instances are associated with the option group. If you disassociate all * DB instances from the option group, your can remove the persistent option * from the option group. *

*/ private Boolean persistent; /** *

* Permanent options can never be removed from an option group. An option * group containing a permanent option can't be removed from a DB instance. *

*/ private Boolean permanent; /** *

* The option settings that are available (and the default value) for each * option in an option group. *

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

* The versions that are available for the option. *

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

* The name of the option. *

* * @param name * The name of the option. */ public void setName(String name) { this.name = name; } /** *

* The name of the option. *

* * @return The name of the option. */ public String getName() { return this.name; } /** *

* The name of the option. *

* * @param name * The name of the option. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withName(String name) { setName(name); return this; } /** *

* The description of the option. *

* * @param description * The description of the option. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the option. *

* * @return The description of the option. */ public String getDescription() { return this.description; } /** *

* The description of the option. *

* * @param description * The description of the option. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withDescription(String description) { setDescription(description); return this; } /** *

* The name of the engine that this option can be applied to. *

* * @param engineName * The name of the engine that this option can be applied to. */ public void setEngineName(String engineName) { this.engineName = engineName; } /** *

* The name of the engine that this option can be applied to. *

* * @return The name of the engine that this option can be applied to. */ public String getEngineName() { return this.engineName; } /** *

* The name of the engine that this option can be applied to. *

* * @param engineName * The name of the engine that this option can be applied to. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withEngineName(String engineName) { setEngineName(engineName); return this; } /** *

* Indicates the major engine version that the option is available for. *

* * @param majorEngineVersion * Indicates the major engine version that the option is available * for. */ public void setMajorEngineVersion(String majorEngineVersion) { this.majorEngineVersion = majorEngineVersion; } /** *

* Indicates the major engine version that the option is available for. *

* * @return Indicates the major engine version that the option is available * for. */ public String getMajorEngineVersion() { return this.majorEngineVersion; } /** *

* Indicates the major engine version that the option is available for. *

* * @param majorEngineVersion * Indicates the major engine version that the option is available * for. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withMajorEngineVersion(String majorEngineVersion) { setMajorEngineVersion(majorEngineVersion); return this; } /** *

* The minimum required engine version for the option to be applied. *

* * @param minimumRequiredMinorEngineVersion * The minimum required engine version for the option to be applied. */ public void setMinimumRequiredMinorEngineVersion( String minimumRequiredMinorEngineVersion) { this.minimumRequiredMinorEngineVersion = minimumRequiredMinorEngineVersion; } /** *

* The minimum required engine version for the option to be applied. *

* * @return The minimum required engine version for the option to be applied. */ public String getMinimumRequiredMinorEngineVersion() { return this.minimumRequiredMinorEngineVersion; } /** *

* The minimum required engine version for the option to be applied. *

* * @param minimumRequiredMinorEngineVersion * The minimum required engine version for the option to be applied. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withMinimumRequiredMinorEngineVersion( String minimumRequiredMinorEngineVersion) { setMinimumRequiredMinorEngineVersion(minimumRequiredMinorEngineVersion); return this; } /** *

* Specifies whether the option requires a port. *

* * @param portRequired * Specifies whether the option requires a port. */ public void setPortRequired(Boolean portRequired) { this.portRequired = portRequired; } /** *

* Specifies whether the option requires a port. *

* * @return Specifies whether the option requires a port. */ public Boolean getPortRequired() { return this.portRequired; } /** *

* Specifies whether the option requires a port. *

* * @param portRequired * Specifies whether the option requires a port. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withPortRequired(Boolean portRequired) { setPortRequired(portRequired); return this; } /** *

* Specifies whether the option requires a port. *

* * @return Specifies whether the option requires a port. */ public Boolean isPortRequired() { return this.portRequired; } /** *

* If the option requires a port, specifies the default port for the option. *

* * @param defaultPort * If the option requires a port, specifies the default port for the * option. */ public void setDefaultPort(Integer defaultPort) { this.defaultPort = defaultPort; } /** *

* If the option requires a port, specifies the default port for the option. *

* * @return If the option requires a port, specifies the default port for the * option. */ public Integer getDefaultPort() { return this.defaultPort; } /** *

* If the option requires a port, specifies the default port for the option. *

* * @param defaultPort * If the option requires a port, specifies the default port for the * option. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withDefaultPort(Integer defaultPort) { setDefaultPort(defaultPort); return this; } /** *

* The options that are prerequisites for this option. *

* * @return The options that are prerequisites for this option. */ public java.util.List getOptionsDependedOn() { if (optionsDependedOn == null) { optionsDependedOn = new com.amazonaws.internal.SdkInternalList(); } return optionsDependedOn; } /** *

* The options that are prerequisites for this option. *

* * @param optionsDependedOn * The options that are prerequisites for this option. */ public void setOptionsDependedOn( java.util.Collection optionsDependedOn) { if (optionsDependedOn == null) { this.optionsDependedOn = null; return; } this.optionsDependedOn = new com.amazonaws.internal.SdkInternalList( optionsDependedOn); } /** *

* The options that are prerequisites for this option. *

*

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

* * @param optionsDependedOn * The options that are prerequisites for this option. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withOptionsDependedOn(String... optionsDependedOn) { if (this.optionsDependedOn == null) { setOptionsDependedOn(new com.amazonaws.internal.SdkInternalList( optionsDependedOn.length)); } for (String ele : optionsDependedOn) { this.optionsDependedOn.add(ele); } return this; } /** *

* The options that are prerequisites for this option. *

* * @param optionsDependedOn * The options that are prerequisites for this option. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withOptionsDependedOn( java.util.Collection optionsDependedOn) { setOptionsDependedOn(optionsDependedOn); return this; } /** *

* The options that conflict with this option. *

* * @return The options that conflict with this option. */ public java.util.List getOptionsConflictsWith() { if (optionsConflictsWith == null) { optionsConflictsWith = new com.amazonaws.internal.SdkInternalList(); } return optionsConflictsWith; } /** *

* The options that conflict with this option. *

* * @param optionsConflictsWith * The options that conflict with this option. */ public void setOptionsConflictsWith( java.util.Collection optionsConflictsWith) { if (optionsConflictsWith == null) { this.optionsConflictsWith = null; return; } this.optionsConflictsWith = new com.amazonaws.internal.SdkInternalList( optionsConflictsWith); } /** *

* The options that conflict with this option. *

*

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

* * @param optionsConflictsWith * The options that conflict with this option. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withOptionsConflictsWith( String... optionsConflictsWith) { if (this.optionsConflictsWith == null) { setOptionsConflictsWith(new com.amazonaws.internal.SdkInternalList( optionsConflictsWith.length)); } for (String ele : optionsConflictsWith) { this.optionsConflictsWith.add(ele); } return this; } /** *

* The options that conflict with this option. *

* * @param optionsConflictsWith * The options that conflict with this option. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withOptionsConflictsWith( java.util.Collection optionsConflictsWith) { setOptionsConflictsWith(optionsConflictsWith); return this; } /** *

* Persistent options can't be removed from an option group while DB * instances are associated with the option group. If you disassociate all * DB instances from the option group, your can remove the persistent option * from the option group. *

* * @param persistent * Persistent options can't be removed from an option group while DB * instances are associated with the option group. If you * disassociate all DB instances from the option group, your can * remove the persistent option from the option group. */ public void setPersistent(Boolean persistent) { this.persistent = persistent; } /** *

* Persistent options can't be removed from an option group while DB * instances are associated with the option group. If you disassociate all * DB instances from the option group, your can remove the persistent option * from the option group. *

* * @return Persistent options can't be removed from an option group while DB * instances are associated with the option group. If you * disassociate all DB instances from the option group, your can * remove the persistent option from the option group. */ public Boolean getPersistent() { return this.persistent; } /** *

* Persistent options can't be removed from an option group while DB * instances are associated with the option group. If you disassociate all * DB instances from the option group, your can remove the persistent option * from the option group. *

* * @param persistent * Persistent options can't be removed from an option group while DB * instances are associated with the option group. If you * disassociate all DB instances from the option group, your can * remove the persistent option from the option group. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withPersistent(Boolean persistent) { setPersistent(persistent); return this; } /** *

* Persistent options can't be removed from an option group while DB * instances are associated with the option group. If you disassociate all * DB instances from the option group, your can remove the persistent option * from the option group. *

* * @return Persistent options can't be removed from an option group while DB * instances are associated with the option group. If you * disassociate all DB instances from the option group, your can * remove the persistent option from the option group. */ public Boolean isPersistent() { return this.persistent; } /** *

* Permanent options can never be removed from an option group. An option * group containing a permanent option can't be removed from a DB instance. *

* * @param permanent * Permanent options can never be removed from an option group. An * option group containing a permanent option can't be removed from a * DB instance. */ public void setPermanent(Boolean permanent) { this.permanent = permanent; } /** *

* Permanent options can never be removed from an option group. An option * group containing a permanent option can't be removed from a DB instance. *

* * @return Permanent options can never be removed from an option group. An * option group containing a permanent option can't be removed from * a DB instance. */ public Boolean getPermanent() { return this.permanent; } /** *

* Permanent options can never be removed from an option group. An option * group containing a permanent option can't be removed from a DB instance. *

* * @param permanent * Permanent options can never be removed from an option group. An * option group containing a permanent option can't be removed from a * DB instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withPermanent(Boolean permanent) { setPermanent(permanent); return this; } /** *

* Permanent options can never be removed from an option group. An option * group containing a permanent option can't be removed from a DB instance. *

* * @return Permanent options can never be removed from an option group. An * option group containing a permanent option can't be removed from * a DB instance. */ public Boolean isPermanent() { return this.permanent; } /** *

* The option settings that are available (and the default value) for each * option in an option group. *

* * @return The option settings that are available (and the default value) * for each option in an option group. */ public java.util.List getOptionGroupOptionSettings() { if (optionGroupOptionSettings == null) { optionGroupOptionSettings = new com.amazonaws.internal.SdkInternalList(); } return optionGroupOptionSettings; } /** *

* The option settings that are available (and the default value) for each * option in an option group. *

* * @param optionGroupOptionSettings * The option settings that are available (and the default value) for * each option in an option group. */ public void setOptionGroupOptionSettings( java.util.Collection optionGroupOptionSettings) { if (optionGroupOptionSettings == null) { this.optionGroupOptionSettings = null; return; } this.optionGroupOptionSettings = new com.amazonaws.internal.SdkInternalList( optionGroupOptionSettings); } /** *

* The option settings that are available (and the default value) for each * option in an option group. *

*

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

* * @param optionGroupOptionSettings * The option settings that are available (and the default value) for * each option in an option group. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withOptionGroupOptionSettings( OptionGroupOptionSetting... optionGroupOptionSettings) { if (this.optionGroupOptionSettings == null) { setOptionGroupOptionSettings(new com.amazonaws.internal.SdkInternalList( optionGroupOptionSettings.length)); } for (OptionGroupOptionSetting ele : optionGroupOptionSettings) { this.optionGroupOptionSettings.add(ele); } return this; } /** *

* The option settings that are available (and the default value) for each * option in an option group. *

* * @param optionGroupOptionSettings * The option settings that are available (and the default value) for * each option in an option group. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withOptionGroupOptionSettings( java.util.Collection optionGroupOptionSettings) { setOptionGroupOptionSettings(optionGroupOptionSettings); return this; } /** *

* The versions that are available for the option. *

* * @return The versions that are available for the option. */ public java.util.List getOptionGroupOptionVersions() { if (optionGroupOptionVersions == null) { optionGroupOptionVersions = new com.amazonaws.internal.SdkInternalList(); } return optionGroupOptionVersions; } /** *

* The versions that are available for the option. *

* * @param optionGroupOptionVersions * The versions that are available for the option. */ public void setOptionGroupOptionVersions( java.util.Collection optionGroupOptionVersions) { if (optionGroupOptionVersions == null) { this.optionGroupOptionVersions = null; return; } this.optionGroupOptionVersions = new com.amazonaws.internal.SdkInternalList( optionGroupOptionVersions); } /** *

* The versions that are available for the option. *

*

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

* * @param optionGroupOptionVersions * The versions that are available for the option. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withOptionGroupOptionVersions( OptionVersion... optionGroupOptionVersions) { if (this.optionGroupOptionVersions == null) { setOptionGroupOptionVersions(new com.amazonaws.internal.SdkInternalList( optionGroupOptionVersions.length)); } for (OptionVersion ele : optionGroupOptionVersions) { this.optionGroupOptionVersions.add(ele); } return this; } /** *

* The versions that are available for the option. *

* * @param optionGroupOptionVersions * The versions that are available for the option. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withOptionGroupOptionVersions( java.util.Collection optionGroupOptionVersions) { setOptionGroupOptionVersions(optionGroupOptionVersions); return this; } /** * 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 (getName() != null) sb.append("Name: " + getName() + ","); if (getDescription() != null) sb.append("Description: " + getDescription() + ","); if (getEngineName() != null) sb.append("EngineName: " + getEngineName() + ","); if (getMajorEngineVersion() != null) sb.append("MajorEngineVersion: " + getMajorEngineVersion() + ","); if (getMinimumRequiredMinorEngineVersion() != null) sb.append("MinimumRequiredMinorEngineVersion: " + getMinimumRequiredMinorEngineVersion() + ","); if (getPortRequired() != null) sb.append("PortRequired: " + getPortRequired() + ","); if (getDefaultPort() != null) sb.append("DefaultPort: " + getDefaultPort() + ","); if (getOptionsDependedOn() != null) sb.append("OptionsDependedOn: " + getOptionsDependedOn() + ","); if (getOptionsConflictsWith() != null) sb.append("OptionsConflictsWith: " + getOptionsConflictsWith() + ","); if (getPersistent() != null) sb.append("Persistent: " + getPersistent() + ","); if (getPermanent() != null) sb.append("Permanent: " + getPermanent() + ","); if (getOptionGroupOptionSettings() != null) sb.append("OptionGroupOptionSettings: " + getOptionGroupOptionSettings() + ","); if (getOptionGroupOptionVersions() != null) sb.append("OptionGroupOptionVersions: " + getOptionGroupOptionVersions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof OptionGroupOption == false) return false; OptionGroupOption other = (OptionGroupOption) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == 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.getEngineName() == null ^ this.getEngineName() == null) return false; if (other.getEngineName() != null && other.getEngineName().equals(this.getEngineName()) == false) return false; if (other.getMajorEngineVersion() == null ^ this.getMajorEngineVersion() == null) return false; if (other.getMajorEngineVersion() != null && other.getMajorEngineVersion().equals( this.getMajorEngineVersion()) == false) return false; if (other.getMinimumRequiredMinorEngineVersion() == null ^ this.getMinimumRequiredMinorEngineVersion() == null) return false; if (other.getMinimumRequiredMinorEngineVersion() != null && other.getMinimumRequiredMinorEngineVersion().equals( this.getMinimumRequiredMinorEngineVersion()) == false) return false; if (other.getPortRequired() == null ^ this.getPortRequired() == null) return false; if (other.getPortRequired() != null && other.getPortRequired().equals(this.getPortRequired()) == false) return false; if (other.getDefaultPort() == null ^ this.getDefaultPort() == null) return false; if (other.getDefaultPort() != null && other.getDefaultPort().equals(this.getDefaultPort()) == false) return false; if (other.getOptionsDependedOn() == null ^ this.getOptionsDependedOn() == null) return false; if (other.getOptionsDependedOn() != null && other.getOptionsDependedOn().equals( this.getOptionsDependedOn()) == false) return false; if (other.getOptionsConflictsWith() == null ^ this.getOptionsConflictsWith() == null) return false; if (other.getOptionsConflictsWith() != null && other.getOptionsConflictsWith().equals( this.getOptionsConflictsWith()) == false) return false; if (other.getPersistent() == null ^ this.getPersistent() == null) return false; if (other.getPersistent() != null && other.getPersistent().equals(this.getPersistent()) == false) return false; if (other.getPermanent() == null ^ this.getPermanent() == null) return false; if (other.getPermanent() != null && other.getPermanent().equals(this.getPermanent()) == false) return false; if (other.getOptionGroupOptionSettings() == null ^ this.getOptionGroupOptionSettings() == null) return false; if (other.getOptionGroupOptionSettings() != null && other.getOptionGroupOptionSettings().equals( this.getOptionGroupOptionSettings()) == false) return false; if (other.getOptionGroupOptionVersions() == null ^ this.getOptionGroupOptionVersions() == null) return false; if (other.getOptionGroupOptionVersions() != null && other.getOptionGroupOptionVersions().equals( this.getOptionGroupOptionVersions()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getEngineName() == null) ? 0 : getEngineName().hashCode()); hashCode = prime * hashCode + ((getMajorEngineVersion() == null) ? 0 : getMajorEngineVersion().hashCode()); hashCode = prime * hashCode + ((getMinimumRequiredMinorEngineVersion() == null) ? 0 : getMinimumRequiredMinorEngineVersion().hashCode()); hashCode = prime * hashCode + ((getPortRequired() == null) ? 0 : getPortRequired() .hashCode()); hashCode = prime * hashCode + ((getDefaultPort() == null) ? 0 : getDefaultPort().hashCode()); hashCode = prime * hashCode + ((getOptionsDependedOn() == null) ? 0 : getOptionsDependedOn().hashCode()); hashCode = prime * hashCode + ((getOptionsConflictsWith() == null) ? 0 : getOptionsConflictsWith().hashCode()); hashCode = prime * hashCode + ((getPersistent() == null) ? 0 : getPersistent().hashCode()); hashCode = prime * hashCode + ((getPermanent() == null) ? 0 : getPermanent().hashCode()); hashCode = prime * hashCode + ((getOptionGroupOptionSettings() == null) ? 0 : getOptionGroupOptionSettings().hashCode()); hashCode = prime * hashCode + ((getOptionGroupOptionVersions() == null) ? 0 : getOptionGroupOptionVersions().hashCode()); return hashCode; } @Override public OptionGroupOption clone() { try { return (OptionGroupOption) 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