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
Constructors -
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:mariadbmysqloracle-eeoracle-ee-cdboracle-se2oracle-se2-cdbpostgressqlserver-eesqlserver-sesqlserver-exsqlserver-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:
myoptiongroupIf you don't specify a value for
OptionGroupNameproperty, 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnOptionGroupProps>- Returns:
- a new instance of
CfnOptionGroupProps - Throws:
NullPointerException- if any required attribute was not provided
-