Class CfnOptionGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.rds.CfnOptionGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOptionGroupProps>
- Enclosing interface:
CfnOptionGroupProps
@Stability(Stable)
public static final class CfnOptionGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOptionGroupProps>
A builder for
CfnOptionGroupProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.engineName
(String engineName) Sets the value ofCfnOptionGroupProps.getEngineName()
majorEngineVersion
(String majorEngineVersion) Sets the value ofCfnOptionGroupProps.getMajorEngineVersion()
optionConfigurations
(List<? extends Object> optionConfigurations) Sets the value ofCfnOptionGroupProps.getOptionConfigurations()
optionConfigurations
(IResolvable optionConfigurations) Sets the value ofCfnOptionGroupProps.getOptionConfigurations()
optionGroupDescription
(String optionGroupDescription) Sets the value ofCfnOptionGroupProps.getOptionGroupDescription()
optionGroupName
(String optionGroupName) Sets the value ofCfnOptionGroupProps.getOptionGroupName()
Sets the value ofCfnOptionGroupProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
engineName
Sets the value ofCfnOptionGroupProps.getEngineName()
- Parameters:
engineName
- Specifies the name of the engine that this option group should be associated with. This parameter is required. Valid Values:mariadb
mysql
oracle-ee
oracle-ee-cdb
oracle-se2
oracle-se2-cdb
postgres
sqlserver-ee
sqlserver-se
sqlserver-ex
sqlserver-web
- Returns:
this
-
majorEngineVersion
Sets the value ofCfnOptionGroupProps.getMajorEngineVersion()
- Parameters:
majorEngineVersion
- Specifies the major version of the engine that this option group should be associated with. This parameter is required.- Returns:
this
-
optionGroupDescription
@Stability(Stable) public CfnOptionGroupProps.Builder optionGroupDescription(String optionGroupDescription) Sets the value ofCfnOptionGroupProps.getOptionGroupDescription()
- Parameters:
optionGroupDescription
- The description of the option group. This parameter is required.- Returns:
this
-
optionConfigurations
@Stability(Stable) public CfnOptionGroupProps.Builder optionConfigurations(IResolvable optionConfigurations) Sets the value ofCfnOptionGroupProps.getOptionConfigurations()
- Parameters:
optionConfigurations
- A list of options and the settings for each option.- Returns:
this
-
optionConfigurations
@Stability(Stable) public CfnOptionGroupProps.Builder optionConfigurations(List<? extends Object> optionConfigurations) Sets the value ofCfnOptionGroupProps.getOptionConfigurations()
- Parameters:
optionConfigurations
- A list of options and the settings for each option.- Returns:
this
-
optionGroupName
Sets the value ofCfnOptionGroupProps.getOptionGroupName()
- Parameters:
optionGroupName
- The name of the option group to be created. Constraints:- Must be 1 to 255 letters, numbers, or hyphens
- First character must be a letter
- Can't end with a hyphen or contain two consecutive hyphens
Example:
myoptiongroup
If you don't specify a value for
OptionGroupName
property, a name is automatically created for the option group.This value is stored as a lowercase string.
- Returns:
this
-
tags
Sets the value ofCfnOptionGroupProps.getTags()
- Parameters:
tags
- An optional array of key-value pairs to apply to this option group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnOptionGroupProps>
- Returns:
- a new instance of
CfnOptionGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-