Class OptionConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.rds.OptionConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<OptionConfiguration>
- Enclosing interface:
- OptionConfiguration
@Stability(Stable)
public static final class OptionConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<OptionConfiguration>
A builder for
OptionConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofOptionConfiguration.getName()
Sets the value ofOptionConfiguration.getPort()
securityGroups
(List<? extends ISecurityGroup> securityGroups) Sets the value ofOptionConfiguration.getSecurityGroups()
Sets the value ofOptionConfiguration.getSettings()
Sets the value ofOptionConfiguration.getVersion()
Sets the value ofOptionConfiguration.getVpc()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofOptionConfiguration.getName()
- Parameters:
name
- The name of the option. This parameter is required.- Returns:
this
-
port
Sets the value ofOptionConfiguration.getPort()
- Parameters:
port
- The port number that this option uses. Ifport
is specified thenvpc
must also be specified.- Returns:
this
-
securityGroups
@Stability(Stable) public OptionConfiguration.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofOptionConfiguration.getSecurityGroups()
- Parameters:
securityGroups
- Optional list of security groups to use for this option, ifvpc
is specified. If no groups are provided, a default one will be created.- Returns:
this
-
settings
Sets the value ofOptionConfiguration.getSettings()
- Parameters:
settings
- The settings for the option.- Returns:
this
-
version
Sets the value ofOptionConfiguration.getVersion()
- Parameters:
version
- The version for the option.- Returns:
this
-
vpc
Sets the value ofOptionConfiguration.getVpc()
- Parameters:
vpc
- The VPC where a security group should be created for this option. Ifvpc
is specified thenport
must also be specified.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<OptionConfiguration>
- Returns:
- a new instance of
OptionConfiguration
- Throws:
NullPointerException
- if any required attribute was not provided
-