Interface Setting.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Setting.Builder,,Setting> SdkBuilder<Setting.Builder,,Setting> SdkPojo
- Enclosing class:
Setting
@Mutable
@NotThreadSafe
public static interface Setting.Builder
extends SdkPojo, CopyableBuilder<Setting.Builder,Setting>
-
Method Summary
Modifier and TypeMethodDescriptionactiveWhen(String activeWhen) A conditional expression referencing another setting's id.default Setting.Builderdefinition(Consumer<SettingDefinition.Builder> definition) The type and constraints for this setting's value.definition(SettingDefinition definition) The type and constraints for this setting's value.description(String description) A description of what this setting controls and how it affects the extension's behavior.displayName(String displayName) A short, human-readable label for this setting, suitable for display in a UI.A unique identifier for this setting within the extension's configuration.Whether the deployer must provide a value for this setting.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
id
A unique identifier for this setting within the extension's configuration.
- Parameters:
id- A unique identifier for this setting within the extension's configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
displayName
A short, human-readable label for this setting, suitable for display in a UI.
- Parameters:
displayName- A short, human-readable label for this setting, suitable for display in a UI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of what this setting controls and how it affects the extension's behavior.
- Parameters:
description- A description of what this setting controls and how it affects the extension's behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
required
Whether the deployer must provide a value for this setting. Defaults to false.
- Parameters:
required- Whether the deployer must provide a value for this setting. Defaults to false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
activeWhen
A conditional expression referencing another setting's id. When specified, this setting is only active (visible and applicable) when the referenced condition is met.
- Parameters:
activeWhen- A conditional expression referencing another setting's id. When specified, this setting is only active (visible and applicable) when the referenced condition is met.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The type and constraints for this setting's value.
- Parameters:
definition- The type and constraints for this setting's value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The type and constraints for this setting's value.
This is a convenience method that creates an instance of theSettingDefinition.Builderavoiding the need to create one manually viaSettingDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefinition(SettingDefinition).- Parameters:
definition- a consumer that will call methods onSettingDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-