/* * 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; /** *
* A list of all available options *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class OptionConfiguration implements Serializable, Cloneable { /** ** The configuration of options to include in a group. *
*/ private String optionName; /** ** The optional port for the option. *
*/ private Integer port; /** ** The version for the option. *
*/ private String optionVersion; /** ** A list of DBSecurityGroupMembership name strings used for this option. *
*/ private com.amazonaws.internal.SdkInternalList* A list of VpcSecurityGroupMembership name strings used for this option. *
*/ private com.amazonaws.internal.SdkInternalList* The option settings to include in an option group. *
*/ private com.amazonaws.internal.SdkInternalList* The configuration of options to include in a group. *
* * @param optionName * The configuration of options to include in a group. */ public void setOptionName(String optionName) { this.optionName = optionName; } /** ** The configuration of options to include in a group. *
* * @return The configuration of options to include in a group. */ public String getOptionName() { return this.optionName; } /** ** The configuration of options to include in a group. *
* * @param optionName * The configuration of options to include in a group. * @return Returns a reference to this object so that method calls can be chained together. */ public OptionConfiguration withOptionName(String optionName) { setOptionName(optionName); return this; } /** ** The optional port for the option. *
* * @param port * The optional port for the option. */ public void setPort(Integer port) { this.port = port; } /** ** The optional port for the option. *
* * @return The optional port for the option. */ public Integer getPort() { return this.port; } /** ** The optional port for the option. *
* * @param port * The optional port for the option. * @return Returns a reference to this object so that method calls can be chained together. */ public OptionConfiguration withPort(Integer port) { setPort(port); return this; } /** ** The version for the option. *
* * @param optionVersion * The version for the option. */ public void setOptionVersion(String optionVersion) { this.optionVersion = optionVersion; } /** ** The version for the option. *
* * @return The version for the option. */ public String getOptionVersion() { return this.optionVersion; } /** ** The version for the option. *
* * @param optionVersion * The version for the option. * @return Returns a reference to this object so that method calls can be chained together. */ public OptionConfiguration withOptionVersion(String optionVersion) { setOptionVersion(optionVersion); return this; } /** ** A list of DBSecurityGroupMembership name strings used for this option. *
* * @return A list of DBSecurityGroupMembership name strings used for this option. */ public java.util.List* A list of DBSecurityGroupMembership name strings used for this option. *
* * @param dBSecurityGroupMemberships * A list of DBSecurityGroupMembership name strings used for this option. */ public void setDBSecurityGroupMemberships(java.util.Collection* A list of DBSecurityGroupMembership name strings used for this option. *
** 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 * A list of DBSecurityGroupMembership name strings used for this option. * @return Returns a reference to this object so that method calls can be chained together. */ public OptionConfiguration withDBSecurityGroupMemberships(String... dBSecurityGroupMemberships) { if (this.dBSecurityGroupMemberships == null) { setDBSecurityGroupMemberships(new com.amazonaws.internal.SdkInternalList* A list of DBSecurityGroupMembership name strings used for this option. *
* * @param dBSecurityGroupMemberships * A list of DBSecurityGroupMembership name strings used for this option. * @return Returns a reference to this object so that method calls can be chained together. */ public OptionConfiguration withDBSecurityGroupMemberships(java.util.Collection* A list of VpcSecurityGroupMembership name strings used for this option. *
* * @return A list of VpcSecurityGroupMembership name strings used for this option. */ public java.util.List* A list of VpcSecurityGroupMembership name strings used for this option. *
* * @param vpcSecurityGroupMemberships * A list of VpcSecurityGroupMembership name strings used for this option. */ public void setVpcSecurityGroupMemberships(java.util.Collection* A list of VpcSecurityGroupMembership name strings used for this option. *
** 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 * A list of VpcSecurityGroupMembership name strings used for this option. * @return Returns a reference to this object so that method calls can be chained together. */ public OptionConfiguration withVpcSecurityGroupMemberships(String... vpcSecurityGroupMemberships) { if (this.vpcSecurityGroupMemberships == null) { setVpcSecurityGroupMemberships(new com.amazonaws.internal.SdkInternalList* A list of VpcSecurityGroupMembership name strings used for this option. *
* * @param vpcSecurityGroupMemberships * A list of VpcSecurityGroupMembership name strings used for this option. * @return Returns a reference to this object so that method calls can be chained together. */ public OptionConfiguration withVpcSecurityGroupMemberships(java.util.Collection* The option settings to include in an option group. *
* * @return The option settings to include in an option group. */ public java.util.List* The option settings to include in an option group. *
* * @param optionSettings * The option settings to include in an option group. */ public void setOptionSettings(java.util.Collection* The option settings to include in an option group. *
** 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 to include in an option group. * @return Returns a reference to this object so that method calls can be chained together. */ public OptionConfiguration withOptionSettings(OptionSetting... optionSettings) { if (this.optionSettings == null) { setOptionSettings(new com.amazonaws.internal.SdkInternalList* The option settings to include in an option group. *
* * @param optionSettings * The option settings to include in an option group. * @return Returns a reference to this object so that method calls can be chained together. */ public OptionConfiguration withOptionSettings(java.util.Collection