Interface DetectorStateDefinition.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DetectorStateDefinition.Builder,DetectorStateDefinition>,SdkBuilder<DetectorStateDefinition.Builder,DetectorStateDefinition>,SdkPojo
- Enclosing class:
- DetectorStateDefinition
public static interface DetectorStateDefinition.Builder extends SdkPojo, CopyableBuilder<DetectorStateDefinition.Builder,DetectorStateDefinition>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DetectorStateDefinition.BuilderstateName(String stateName)The name of the new state of the detector (instance).DetectorStateDefinition.Buildertimers(Collection<TimerDefinition> timers)The new values of the detector's timers.DetectorStateDefinition.Buildertimers(Consumer<TimerDefinition.Builder>... timers)The new values of the detector's timers.DetectorStateDefinition.Buildertimers(TimerDefinition... timers)The new values of the detector's timers.DetectorStateDefinition.Buildervariables(Collection<VariableDefinition> variables)The new values of the detector's variables.DetectorStateDefinition.Buildervariables(Consumer<VariableDefinition.Builder>... variables)The new values of the detector's variables.DetectorStateDefinition.Buildervariables(VariableDefinition... variables)The new 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
DetectorStateDefinition.Builder stateName(String stateName)
The name of the new state of the detector (instance).
- Parameters:
stateName- The name of the new state of the detector (instance).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variables
DetectorStateDefinition.Builder variables(Collection<VariableDefinition> variables)
The new values of the detector's variables. Any variable whose value isn't specified is cleared.
- Parameters:
variables- The new values of the detector's variables. Any variable whose value isn't specified is cleared.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variables
DetectorStateDefinition.Builder variables(VariableDefinition... variables)
The new values of the detector's variables. Any variable whose value isn't specified is cleared.
- Parameters:
variables- The new values of the detector's variables. Any variable whose value isn't specified is cleared.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variables
DetectorStateDefinition.Builder variables(Consumer<VariableDefinition.Builder>... variables)
The new values of the detector's variables. Any variable whose value isn't specified is cleared.
This is a convenience method that creates an instance of theVariableDefinition.Builderavoiding the need to create one manually viaVariableDefinition.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 onVariableDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#variables(java.util.Collection)
-
timers
DetectorStateDefinition.Builder timers(Collection<TimerDefinition> timers)
The new values of the detector's timers. Any timer whose value isn't specified is cleared, and its timeout event won't occur.
- Parameters:
timers- The new values of the detector's timers. Any timer whose value isn't specified is cleared, and its timeout event won't occur.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timers
DetectorStateDefinition.Builder timers(TimerDefinition... timers)
The new values of the detector's timers. Any timer whose value isn't specified is cleared, and its timeout event won't occur.
- Parameters:
timers- The new values of the detector's timers. Any timer whose value isn't specified is cleared, and its timeout event won't occur.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timers
DetectorStateDefinition.Builder timers(Consumer<TimerDefinition.Builder>... timers)
The new values of the detector's timers. Any timer whose value isn't specified is cleared, and its timeout event won't occur.
This is a convenience method that creates an instance of theTimerDefinition.Builderavoiding the need to create one manually viaTimerDefinition.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 onTimerDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#timers(java.util.Collection)
-
-