Interface OptionGroup.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<OptionGroup.Builder,OptionGroup>
,SdkBuilder<OptionGroup.Builder,OptionGroup>
,SdkPojo
- Enclosing class:
- OptionGroup
public static interface OptionGroup.Builder extends SdkPojo, CopyableBuilder<OptionGroup.Builder,OptionGroup>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OptionGroup.Builder
allowsVpcAndNonVpcInstanceMemberships(Boolean allowsVpcAndNonVpcInstanceMemberships)
Indicates whether this option group can be applied to both VPC and non-VPC instances.OptionGroup.Builder
copyTimestamp(Instant copyTimestamp)
Indicates when the option group was copied.OptionGroup.Builder
engineName(String engineName)
Indicates the name of the engine that this option group can be applied to.OptionGroup.Builder
majorEngineVersion(String majorEngineVersion)
Indicates the major engine version associated with this option group.OptionGroup.Builder
optionGroupArn(String optionGroupArn)
Specifies the Amazon Resource Name (ARN) for the option group.OptionGroup.Builder
optionGroupDescription(String optionGroupDescription)
Provides a description of the option group.OptionGroup.Builder
optionGroupName(String optionGroupName)
Specifies the name of the option group.OptionGroup.Builder
options(Collection<Option> options)
Indicates what options are available in the option group.OptionGroup.Builder
options(Consumer<Option.Builder>... options)
Indicates what options are available in the option group.OptionGroup.Builder
options(Option... options)
Indicates what options are available in the option group.OptionGroup.Builder
sourceAccountId(String sourceAccountId)
Specifies the Amazon Web Services account ID for the option group from which this option group is copied.OptionGroup.Builder
sourceOptionGroup(String sourceOptionGroup)
Specifies the name of the option group from which this option group is copied.OptionGroup.Builder
vpcId(String vpcId)
If AllowsVpcAndNonVpcInstanceMemberships isfalse
, this field is blank.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
optionGroupName
OptionGroup.Builder optionGroupName(String optionGroupName)
Specifies the name of the option group.
- Parameters:
optionGroupName
- Specifies the name of the option group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optionGroupDescription
OptionGroup.Builder optionGroupDescription(String optionGroupDescription)
Provides a description of the option group.
- Parameters:
optionGroupDescription
- Provides a description of the option group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineName
OptionGroup.Builder engineName(String engineName)
Indicates the name of the engine that this option group can be applied to.
- Parameters:
engineName
- Indicates the name of the engine that this option group can be applied to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
majorEngineVersion
OptionGroup.Builder majorEngineVersion(String majorEngineVersion)
Indicates the major engine version associated with this option group.
- Parameters:
majorEngineVersion
- Indicates the major engine version associated with this option group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
options
OptionGroup.Builder options(Collection<Option> options)
Indicates what options are available in the option group.
- Parameters:
options
- Indicates what options are available in the option group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
options
OptionGroup.Builder options(Option... options)
Indicates what options are available in the option group.
- Parameters:
options
- Indicates what options are available in the option group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
options
OptionGroup.Builder options(Consumer<Option.Builder>... options)
Indicates what options are available in the option group.
This is a convenience method that creates an instance of theOption.Builder
avoiding the need to create one manually viaOption.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#options(List
.- Parameters:
options
- a consumer that will call methods onOption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#options(java.util.Collection
-
allowsVpcAndNonVpcInstanceMemberships
OptionGroup.Builder allowsVpcAndNonVpcInstanceMemberships(Boolean allowsVpcAndNonVpcInstanceMemberships)
Indicates whether this option group can be applied to both VPC and non-VPC instances. The value
true
indicates the option group can be applied to both VPC and non-VPC instances.- Parameters:
allowsVpcAndNonVpcInstanceMemberships
- Indicates whether this option group can be applied to both VPC and non-VPC instances. The valuetrue
indicates the option group can be applied to both VPC and non-VPC instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
OptionGroup.Builder vpcId(String vpcId)
If AllowsVpcAndNonVpcInstanceMemberships is
false
, this field is blank. If AllowsVpcAndNonVpcInstanceMemberships istrue
and this field is blank, then this option group can be applied to both VPC and non-VPC instances. If this field contains a value, then this option group can only be applied to instances that are in the VPC indicated by this field.- Parameters:
vpcId
- If AllowsVpcAndNonVpcInstanceMemberships isfalse
, this field is blank. If AllowsVpcAndNonVpcInstanceMemberships istrue
and this field is blank, then this option group can be applied to both VPC and non-VPC instances. If this field contains a value, then this option group can only be applied to instances that are in the VPC indicated by this field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optionGroupArn
OptionGroup.Builder optionGroupArn(String optionGroupArn)
Specifies the Amazon Resource Name (ARN) for the option group.
- Parameters:
optionGroupArn
- Specifies the Amazon Resource Name (ARN) for the option group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceOptionGroup
OptionGroup.Builder sourceOptionGroup(String sourceOptionGroup)
Specifies the name of the option group from which this option group is copied.
- Parameters:
sourceOptionGroup
- Specifies the name of the option group from which this option group is copied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceAccountId
OptionGroup.Builder sourceAccountId(String sourceAccountId)
Specifies the Amazon Web Services account ID for the option group from which this option group is copied.
- Parameters:
sourceAccountId
- Specifies the Amazon Web Services account ID for the option group from which this option group is copied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
copyTimestamp
OptionGroup.Builder copyTimestamp(Instant copyTimestamp)
Indicates when the option group was copied.
- Parameters:
copyTimestamp
- Indicates when the option group was copied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-