Interface Rule.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Rule.Builder,Rule>,SdkBuilder<Rule.Builder,Rule>,SdkPojo
- Enclosing class:
- Rule
@Mutable @NotThreadSafe public static interface Rule.Builder extends SdkPojo, CopyableBuilder<Rule.Builder,Rule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Rule.Builderschedule(Consumer<Schedule.Builder> schedule)The schedule configuration that defines when the mute rule activates and how long it remains active.Rule.Builderschedule(Schedule schedule)The schedule configuration that defines when the mute rule activates and how long it remains active.-
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 Detail
-
schedule
Rule.Builder schedule(Schedule schedule)
The schedule configuration that defines when the mute rule activates and how long it remains active.
- Parameters:
schedule- The schedule configuration that defines when the mute rule activates and how long it remains active.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
default Rule.Builder schedule(Consumer<Schedule.Builder> schedule)
The schedule configuration that defines when the mute rule activates and how long it remains active.
This is a convenience method that creates an instance of theSchedule.Builderavoiding the need to create one manually viaSchedule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toschedule(Schedule).- Parameters:
schedule- a consumer that will call methods onSchedule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
schedule(Schedule)
-
-