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

com.amazonaws.services.rds.model.OptionGroupOption 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;

/**
 * 

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

* List of all options that are prerequisites for this option. *

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

* A persistent option cannot be removed from the option group once the * option group is used, but this option can be removed from the db instance * while modifying the related data and assigning another option group * without this option. *

*/ private Boolean persistent; /** *

* A permanent option cannot be removed from the option group once the * option group is used, and it cannot be removed from the db instance after * assigning an option group with this permanent option. *

*/ private Boolean permanent; /** *

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

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

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

* List of all options that are prerequisites for this option. *

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

* List of all options that are prerequisites for this option. *

* * @param optionsDependedOn * List of all 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); } /** *

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

* List of all options that are prerequisites for this option. *

* * @param optionsDependedOn * List of all 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; } /** *

* A persistent option cannot be removed from the option group once the * option group is used, but this option can be removed from the db instance * while modifying the related data and assigning another option group * without this option. *

* * @param persistent * A persistent option cannot be removed from the option group once * the option group is used, but this option can be removed from the * db instance while modifying the related data and assigning another * option group without this option. */ public void setPersistent(Boolean persistent) { this.persistent = persistent; } /** *

* A persistent option cannot be removed from the option group once the * option group is used, but this option can be removed from the db instance * while modifying the related data and assigning another option group * without this option. *

* * @return A persistent option cannot be removed from the option group once * the option group is used, but this option can be removed from the * db instance while modifying the related data and assigning * another option group without this option. */ public Boolean getPersistent() { return this.persistent; } /** *

* A persistent option cannot be removed from the option group once the * option group is used, but this option can be removed from the db instance * while modifying the related data and assigning another option group * without this option. *

* * @param persistent * A persistent option cannot be removed from the option group once * the option group is used, but this option can be removed from the * db instance while modifying the related data and assigning another * option group without this option. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withPersistent(Boolean persistent) { setPersistent(persistent); return this; } /** *

* A persistent option cannot be removed from the option group once the * option group is used, but this option can be removed from the db instance * while modifying the related data and assigning another option group * without this option. *

* * @return A persistent option cannot be removed from the option group once * the option group is used, but this option can be removed from the * db instance while modifying the related data and assigning * another option group without this option. */ public Boolean isPersistent() { return this.persistent; } /** *

* A permanent option cannot be removed from the option group once the * option group is used, and it cannot be removed from the db instance after * assigning an option group with this permanent option. *

* * @param permanent * A permanent option cannot be removed from the option group once * the option group is used, and it cannot be removed from the db * instance after assigning an option group with this permanent * option. */ public void setPermanent(Boolean permanent) { this.permanent = permanent; } /** *

* A permanent option cannot be removed from the option group once the * option group is used, and it cannot be removed from the db instance after * assigning an option group with this permanent option. *

* * @return A permanent option cannot be removed from the option group once * the option group is used, and it cannot be removed from the db * instance after assigning an option group with this permanent * option. */ public Boolean getPermanent() { return this.permanent; } /** *

* A permanent option cannot be removed from the option group once the * option group is used, and it cannot be removed from the db instance after * assigning an option group with this permanent option. *

* * @param permanent * A permanent option cannot be removed from the option group once * the option group is used, and it cannot be removed from the db * instance after assigning an option group with this permanent * option. * @return Returns a reference to this object so that method calls can be * chained together. */ public OptionGroupOption withPermanent(Boolean permanent) { setPermanent(permanent); return this; } /** *

* A permanent option cannot be removed from the option group once the * option group is used, and it cannot be removed from the db instance after * assigning an option group with this permanent option. *

* * @return A permanent option cannot be removed from the option group once * the option group is used, and it cannot be removed from the db * instance after assigning an option group with this permanent * option. */ public Boolean isPermanent() { return this.permanent; } /** *

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

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

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

* * @param optionGroupOptionSettings * Specifies 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); } /** *

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

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

* * @param optionGroupOptionSettings * Specifies 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; } /** * 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 (getPersistent() != null) sb.append("Persistent: " + getPersistent() + ","); if (getPermanent() != null) sb.append("Permanent: " + getPermanent() + ","); if (getOptionGroupOptionSettings() != null) sb.append("OptionGroupOptionSettings: " + getOptionGroupOptionSettings()); 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.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; 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 + ((getPersistent() == null) ? 0 : getPersistent().hashCode()); hashCode = prime * hashCode + ((getPermanent() == null) ? 0 : getPermanent().hashCode()); hashCode = prime * hashCode + ((getOptionGroupOptionSettings() == null) ? 0 : getOptionGroupOptionSettings().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