Interface SafetyLever.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SafetyLever.Builder,
,SafetyLever> SdkBuilder<SafetyLever.Builder,
,SafetyLever> SdkPojo
- Enclosing class:
SafetyLever
public static interface SafetyLever.Builder
extends SdkPojo, CopyableBuilder<SafetyLever.Builder,SafetyLever>
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the safety lever.The ID of the safety lever.default SafetyLever.Builder
state
(Consumer<SafetyLeverState.Builder> state) The state of the safety lever.state
(SafetyLeverState state) The state of the safety lever.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 Details
-
id
The ID of the safety lever.
- Parameters:
id
- The ID of the safety lever.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the safety lever.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the safety lever.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state of the safety lever.
- Parameters:
state
- The state of the safety lever.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state of the safety lever.
This is a convenience method that creates an instance of theSafetyLeverState.Builder
avoiding the need to create one manually viaSafetyLeverState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostate(SafetyLeverState)
.- Parameters:
state
- a consumer that will call methods onSafetyLeverState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-