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
Modifier and TypeMethodDescriptiondefault Rule.Builderschedule(Consumer<Schedule.Builder> schedule) The schedule configuration that defines when the mute rule activates and how long it remains active.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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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:
-