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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DetectorState.BuilderstateName(String stateName)The name of the state.DetectorState.Buildertimers(Collection<Timer> timers)The current state of the detector's timers.DetectorState.Buildertimers(Consumer<Timer.Builder>... timers)The current state of the detector's timers.DetectorState.Buildertimers(Timer... timers)The current state of the detector's timers.DetectorState.Buildervariables(Collection<Variable> variables)The current values of the detector's variables.DetectorState.Buildervariables(Consumer<Variable.Builder>... variables)The current values of the detector's variables.DetectorState.Buildervariables(Variable... 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 Detail
-
stateName
DetectorState.Builder stateName(String 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
DetectorState.Builder variables(Collection<Variable> 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
DetectorState.Builder variables(Variable... 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
DetectorState.Builder variables(Consumer<Variable.Builder>... variables)
The current values of the detector's variables.
This is a convenience method that creates an instance of theVariable.Builderavoiding the need to create one manually viaVariable.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#variables(List.) - 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:
#variables(java.util.Collection)
-
timers
DetectorState.Builder timers(Collection<Timer> 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
DetectorState.Builder timers(Timer... 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
DetectorState.Builder timers(Consumer<Timer.Builder>... timers)
The current state of the detector's timers.
This is a convenience method that creates an instance of theTimer.Builderavoiding the need to create one manually viaTimer.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#timers(List.) - 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:
#timers(java.util.Collection)
-
-