Class CfnOptionGroup.Builder

java.lang.Object
software.amazon.awscdk.services.rds.CfnOptionGroup.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOptionGroup>
Enclosing class:
CfnOptionGroup

@Stability(Stable) public static final class CfnOptionGroup.Builder extends Object implements software.amazon.jsii.Builder<CfnOptionGroup>
A fluent builder for CfnOptionGroup.
  • Method Details

    • create

      @Stability(Stable) public static CfnOptionGroup.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnOptionGroup.Builder.
    • engineName

      @Stability(Stable) public CfnOptionGroup.Builder engineName(String engineName)
      Specifies the name of the engine that this option group should be associated with.

      Valid Values:

      • mariadb
      • mysql
      • oracle-ee
      • oracle-ee-cdb
      • oracle-se2
      • oracle-se2-cdb
      • postgres
      • sqlserver-ee
      • sqlserver-se
      • sqlserver-ex
      • sqlserver-web

      Parameters:
      engineName - Specifies the name of the engine that this option group should be associated with. This parameter is required.
      Returns:
      this
    • majorEngineVersion

      @Stability(Stable) public CfnOptionGroup.Builder majorEngineVersion(String majorEngineVersion)
      Specifies the major version of the engine that this option group should be associated with.

      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 CfnOptionGroup.Builder optionGroupDescription(String optionGroupDescription)
      The description of the option group.

      Parameters:
      optionGroupDescription - The description of the option group. This parameter is required.
      Returns:
      this
    • optionConfigurations

      @Stability(Stable) public CfnOptionGroup.Builder optionConfigurations(IResolvable optionConfigurations)
      A list of options and the settings for each option.

      Parameters:
      optionConfigurations - A list of options and the settings for each option. This parameter is required.
      Returns:
      this
    • optionConfigurations

      @Stability(Stable) public CfnOptionGroup.Builder optionConfigurations(List<? extends Object> optionConfigurations)
      A list of options and the settings for each option.

      Parameters:
      optionConfigurations - A list of options and the settings for each option. This parameter is required.
      Returns:
      this
    • optionGroupName

      @Stability(Stable) public CfnOptionGroup.Builder optionGroupName(String 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.

      Parameters:
      optionGroupName - The name of the option group to be created. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnOptionGroup.Builder tags(List<? extends CfnTag> tags)
      An optional array of key-value pairs to apply to this option group.

      Parameters:
      tags - An optional array of key-value pairs to apply to this option group. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnOptionGroup build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnOptionGroup>
      Returns:
      a newly built instance of CfnOptionGroup.