Interface PutSegmentSubscriptionResponse.Builder

  • Method Details

    • status

      The current lifecycle status of the subscription. The following are valid values:

      • STARTING: Initial snapshot is in progress.

      • RUNNING: Notifications are active and running.

      • STOPPED: Notifications have been stopped.

      • FAILED: Notifications failed (for example, the Amazon Kinesis data stream became inaccessible).

      Parameters:
      status - The current lifecycle status of the subscription. The following are valid values:

      • STARTING: Initial snapshot is in progress.

      • RUNNING: Notifications are active and running.

      • STOPPED: Notifications have been stopped.

      • FAILED: Notifications failed (for example, the Amazon Kinesis data stream became inaccessible).

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current lifecycle status of the subscription. The following are valid values:

      • STARTING: Initial snapshot is in progress.

      • RUNNING: Notifications are active and running.

      • STOPPED: Notifications have been stopped.

      • FAILED: Notifications failed (for example, the Amazon Kinesis data stream became inaccessible).

      Parameters:
      status - The current lifecycle status of the subscription. The following are valid values:

      • STARTING: Initial snapshot is in progress.

      • RUNNING: Notifications are active and running.

      • STOPPED: Notifications have been stopped.

      • FAILED: Notifications failed (for example, the Amazon Kinesis data stream became inaccessible).

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scheduleConfiguration

      PutSegmentSubscriptionResponse.Builder scheduleConfiguration(ScheduleConfiguration scheduleConfiguration)

      The schedule configuration for the subscription, if configured.

      Parameters:
      scheduleConfiguration - The schedule configuration for the subscription, if configured.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scheduleConfiguration

      default PutSegmentSubscriptionResponse.Builder scheduleConfiguration(Consumer<ScheduleConfiguration.Builder> scheduleConfiguration)

      The schedule configuration for the subscription, if configured.

      This is a convenience method that creates an instance of the ScheduleConfiguration.Builder avoiding the need to create one manually via ScheduleConfiguration.builder().

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

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

      The timestamp of when the subscription was started.

      Parameters:
      startedAt - The timestamp of when the subscription was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.