Interface DetectorState.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DetectorState.Builder,
,DetectorState> SdkBuilder<DetectorState.Builder,
,DetectorState> SdkPojo
- Enclosing class:
DetectorState
public static interface DetectorState.Builder
extends SdkPojo, CopyableBuilder<DetectorState.Builder,DetectorState>
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the state.timers
(Collection<Timer> timers) The current state of the detector's timers.timers
(Consumer<Timer.Builder>... timers) The current state of the detector's timers.The current state of the detector's timers.variables
(Collection<Variable> variables) The current values of the detector's variables.variables
(Consumer<Variable.Builder>... variables) The current values of the detector's variables.The current values of the detector's variables.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
-
stateName
The name of the state.
- Parameters:
stateName
- The name of the state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variables
The current values of the detector's variables.
- Parameters:
variables
- The current values of the detector's variables.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variables
The current values of the detector's variables.
- Parameters:
variables
- The current values of the detector's variables.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variables
The current values of the detector's variables.
This is a convenience method that creates an instance of theVariable.Builder
avoiding the need to create one manually viaVariable.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovariables(List<Variable>)
.- Parameters:
variables
- a consumer that will call methods onVariable.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timers
The current state of the detector's timers.
- Parameters:
timers
- The current state of the detector's timers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timers
The current state of the detector's timers.
- Parameters:
timers
- The current state of the detector's timers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timers
The current state of the detector's timers.
This is a convenience method that creates an instance of theTimer.Builder
avoiding the need to create one manually viaTimer.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimers(List<Timer>)
.- Parameters:
timers
- a consumer that will call methods onTimer.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-