Class CfnOptionGroup.OptionConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.rds.CfnOptionGroup.OptionConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOptionGroup.OptionConfigurationProperty>
- Enclosing interface:
CfnOptionGroup.OptionConfigurationProperty
@Stability(Stable)
public static final class CfnOptionGroup.OptionConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOptionGroup.OptionConfigurationProperty>
A builder for
CfnOptionGroup.OptionConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dbSecurityGroupMemberships
(List<String> dbSecurityGroupMemberships) optionName
(String optionName) Sets the value ofCfnOptionGroup.OptionConfigurationProperty.getOptionName()
optionSettings
(List<? extends Object> optionSettings) Sets the value ofCfnOptionGroup.OptionConfigurationProperty.getOptionSettings()
optionSettings
(IResolvable optionSettings) Sets the value ofCfnOptionGroup.OptionConfigurationProperty.getOptionSettings()
optionVersion
(String optionVersion) Sets the value ofCfnOptionGroup.OptionConfigurationProperty.getOptionVersion()
Sets the value ofCfnOptionGroup.OptionConfigurationProperty.getPort()
vpcSecurityGroupMemberships
(List<String> vpcSecurityGroupMemberships)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
optionName
@Stability(Stable) public CfnOptionGroup.OptionConfigurationProperty.Builder optionName(String optionName) Sets the value ofCfnOptionGroup.OptionConfigurationProperty.getOptionName()
- Parameters:
optionName
- The configuration of options to include in a group. This parameter is required.- Returns:
this
-
dbSecurityGroupMemberships
@Stability(Stable) public CfnOptionGroup.OptionConfigurationProperty.Builder dbSecurityGroupMemberships(List<String> dbSecurityGroupMemberships) - Parameters:
dbSecurityGroupMemberships
- A list of DBSecurityGroupMembership name strings used for this option.- Returns:
this
-
optionSettings
@Stability(Stable) public CfnOptionGroup.OptionConfigurationProperty.Builder optionSettings(IResolvable optionSettings) Sets the value ofCfnOptionGroup.OptionConfigurationProperty.getOptionSettings()
- Parameters:
optionSettings
- The option settings to include in an option group.- Returns:
this
-
optionSettings
@Stability(Stable) public CfnOptionGroup.OptionConfigurationProperty.Builder optionSettings(List<? extends Object> optionSettings) Sets the value ofCfnOptionGroup.OptionConfigurationProperty.getOptionSettings()
- Parameters:
optionSettings
- The option settings to include in an option group.- Returns:
this
-
optionVersion
@Stability(Stable) public CfnOptionGroup.OptionConfigurationProperty.Builder optionVersion(String optionVersion) Sets the value ofCfnOptionGroup.OptionConfigurationProperty.getOptionVersion()
- Parameters:
optionVersion
- The version for the option.- Returns:
this
-
port
Sets the value ofCfnOptionGroup.OptionConfigurationProperty.getPort()
- Parameters:
port
- The optional port for the option.- Returns:
this
-
vpcSecurityGroupMemberships
@Stability(Stable) public CfnOptionGroup.OptionConfigurationProperty.Builder vpcSecurityGroupMemberships(List<String> vpcSecurityGroupMemberships) - Parameters:
vpcSecurityGroupMemberships
- A list of VpcSecurityGroupMembership name strings used for this option.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnOptionGroup.OptionConfigurationProperty>
- Returns:
- a new instance of
CfnOptionGroup.OptionConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-