Interface Variation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Variation.Builder,
,Variation> SdkBuilder<Variation.Builder,
,Variation> SdkPojo
- Enclosing class:
Variation
@Mutable
@NotThreadSafe
public static interface Variation.Builder
extends SdkPojo, CopyableBuilder<Variation.Builder,Variation>
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the variation.default Variation.Builder
value
(Consumer<VariableValue.Builder> value) The value assigned to this variation.value
(VariableValue value) The value assigned to this variation.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, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the variation.
- Parameters:
name
- The name of the variation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
The value assigned to this variation.
- Parameters:
value
- The value assigned to this variation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
The value assigned to this variation.
This is a convenience method that creates an instance of theVariableValue.Builder
avoiding the need to create one manually viaVariableValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovalue(VariableValue)
.- Parameters:
value
- a consumer that will call methods onVariableValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-