/* * Copyright 2018-2023 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; /** *
* Option details. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Option implements Serializable, Cloneable { /** ** The name of the option. *
*/ private String optionName; /** ** The description of the option. *
*/ private String optionDescription; /** ** Indicate if this option is persistent. *
*/ private Boolean persistent; /** ** Indicate if this option is permanent. *
*/ private Boolean permanent; /** ** If required, the port configured for this option to use. *
*/ private Integer port; /** ** The version of the option. *
*/ private String optionVersion; /** ** The option settings for this option. *
*/ private com.amazonaws.internal.SdkInternalList* If the option requires access to a port, then this DB security group allows access to the port. *
*/ private com.amazonaws.internal.SdkInternalList* If the option requires access to a port, then this VPC security group allows access to the port. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the option. *
* * @param optionName * The name of the option. */ public void setOptionName(String optionName) { this.optionName = optionName; } /** ** The name of the option. *
* * @return The name of the option. */ public String getOptionName() { return this.optionName; } /** ** The name of the option. *
* * @param optionName * The name of the option. * @return Returns a reference to this object so that method calls can be chained together. */ public Option withOptionName(String optionName) { setOptionName(optionName); return this; } /** ** The description of the option. *
* * @param optionDescription * The description of the option. */ public void setOptionDescription(String optionDescription) { this.optionDescription = optionDescription; } /** ** The description of the option. *
* * @return The description of the option. */ public String getOptionDescription() { return this.optionDescription; } /** ** The description of the option. *
* * @param optionDescription * The description of the option. * @return Returns a reference to this object so that method calls can be chained together. */ public Option withOptionDescription(String optionDescription) { setOptionDescription(optionDescription); return this; } /** ** Indicate if this option is persistent. *
* * @param persistent * Indicate if this option is persistent. */ public void setPersistent(Boolean persistent) { this.persistent = persistent; } /** ** Indicate if this option is persistent. *
* * @return Indicate if this option is persistent. */ public Boolean getPersistent() { return this.persistent; } /** ** Indicate if this option is persistent. *
* * @param persistent * Indicate if this option is persistent. * @return Returns a reference to this object so that method calls can be chained together. */ public Option withPersistent(Boolean persistent) { setPersistent(persistent); return this; } /** ** Indicate if this option is persistent. *
* * @return Indicate if this option is persistent. */ public Boolean isPersistent() { return this.persistent; } /** ** Indicate if this option is permanent. *
* * @param permanent * Indicate if this option is permanent. */ public void setPermanent(Boolean permanent) { this.permanent = permanent; } /** ** Indicate if this option is permanent. *
* * @return Indicate if this option is permanent. */ public Boolean getPermanent() { return this.permanent; } /** ** Indicate if this option is permanent. *
* * @param permanent * Indicate if this option is permanent. * @return Returns a reference to this object so that method calls can be chained together. */ public Option withPermanent(Boolean permanent) { setPermanent(permanent); return this; } /** ** Indicate if this option is permanent. *
* * @return Indicate if this option is permanent. */ public Boolean isPermanent() { return this.permanent; } /** ** If required, the port configured for this option to use. *
* * @param port * If required, the port configured for this option to use. */ public void setPort(Integer port) { this.port = port; } /** ** If required, the port configured for this option to use. *
* * @return If required, the port configured for this option to use. */ public Integer getPort() { return this.port; } /** ** If required, the port configured for this option to use. *
* * @param port * If required, the port configured for this option to use. * @return Returns a reference to this object so that method calls can be chained together. */ public Option withPort(Integer port) { setPort(port); return this; } /** ** The version of the option. *
* * @param optionVersion * The version of the option. */ public void setOptionVersion(String optionVersion) { this.optionVersion = optionVersion; } /** ** The version of the option. *
* * @return The version of the option. */ public String getOptionVersion() { return this.optionVersion; } /** ** The version of the option. *
* * @param optionVersion * The version of the option. * @return Returns a reference to this object so that method calls can be chained together. */ public Option withOptionVersion(String optionVersion) { setOptionVersion(optionVersion); return this; } /** ** The option settings for this option. *
* * @return The option settings for this option. */ public java.util.List* The option settings for this option. *
* * @param optionSettings * The option settings for this option. */ public void setOptionSettings(java.util.Collection* The option settings for this option. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setOptionSettings(java.util.Collection)} or {@link #withOptionSettings(java.util.Collection)} if you want * to override the existing values. *
* * @param optionSettings * The option settings for this option. * @return Returns a reference to this object so that method calls can be chained together. */ public Option withOptionSettings(OptionSetting... optionSettings) { if (this.optionSettings == null) { setOptionSettings(new com.amazonaws.internal.SdkInternalList* The option settings for this option. *
* * @param optionSettings * The option settings for this option. * @return Returns a reference to this object so that method calls can be chained together. */ public Option withOptionSettings(java.util.Collection* If the option requires access to a port, then this DB security group allows access to the port. *
* * @return If the option requires access to a port, then this DB security group allows access to the port. */ public java.util.List* If the option requires access to a port, then this DB security group allows access to the port. *
* * @param dBSecurityGroupMemberships * If the option requires access to a port, then this DB security group allows access to the port. */ public void setDBSecurityGroupMemberships(java.util.Collection* If the option requires access to a port, then this DB security group allows access to the port. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDBSecurityGroupMemberships(java.util.Collection)} or * {@link #withDBSecurityGroupMemberships(java.util.Collection)} if you want to override the existing values. *
* * @param dBSecurityGroupMemberships * If the option requires access to a port, then this DB security group allows access to the port. * @return Returns a reference to this object so that method calls can be chained together. */ public Option withDBSecurityGroupMemberships(DBSecurityGroupMembership... dBSecurityGroupMemberships) { if (this.dBSecurityGroupMemberships == null) { setDBSecurityGroupMemberships(new com.amazonaws.internal.SdkInternalList* If the option requires access to a port, then this DB security group allows access to the port. *
* * @param dBSecurityGroupMemberships * If the option requires access to a port, then this DB security group allows access to the port. * @return Returns a reference to this object so that method calls can be chained together. */ public Option withDBSecurityGroupMemberships(java.util.Collection* If the option requires access to a port, then this VPC security group allows access to the port. *
* * @return If the option requires access to a port, then this VPC security group allows access to the port. */ public java.util.List* If the option requires access to a port, then this VPC security group allows access to the port. *
* * @param vpcSecurityGroupMemberships * If the option requires access to a port, then this VPC security group allows access to the port. */ public void setVpcSecurityGroupMemberships(java.util.Collection* If the option requires access to a port, then this VPC security group allows access to the port. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVpcSecurityGroupMemberships(java.util.Collection)} or * {@link #withVpcSecurityGroupMemberships(java.util.Collection)} if you want to override the existing values. *
* * @param vpcSecurityGroupMemberships * If the option requires access to a port, then this VPC security group allows access to the port. * @return Returns a reference to this object so that method calls can be chained together. */ public Option withVpcSecurityGroupMemberships(VpcSecurityGroupMembership... vpcSecurityGroupMemberships) { if (this.vpcSecurityGroupMemberships == null) { setVpcSecurityGroupMemberships(new com.amazonaws.internal.SdkInternalList* If the option requires access to a port, then this VPC security group allows access to the port. *
* * @param vpcSecurityGroupMemberships * If the option requires access to a port, then this VPC security group allows access to the port. * @return Returns a reference to this object so that method calls can be chained together. */ public Option withVpcSecurityGroupMemberships(java.util.Collection