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 Details

    • 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 the Schedule.Builder avoiding the need to create one manually via Schedule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to schedule(Schedule).

      Parameters:
      schedule - a consumer that will call methods on Schedule.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: