Interface GetSegmentSubscriptionResponse.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:
    • message

      A status message providing additional context, such as a failure reason.

      Parameters:
      message - A status message providing additional context, such as a failure reason.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scheduleConfiguration

      GetSegmentSubscriptionResponse.Builder scheduleConfiguration(ScheduleConfiguration scheduleConfiguration)

      The schedule configuration for periodic membership event notifications.

      Parameters:
      scheduleConfiguration - The schedule configuration for periodic membership event notifications.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scheduleConfiguration

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

      The schedule configuration for periodic membership event notifications.

      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:
    • scheduledExecutions

      GetSegmentSubscriptionResponse.Builder scheduledExecutions(ScheduledExecutions scheduledExecutions)

      Information about scheduled execution timestamps.

      Parameters:
      scheduledExecutions - Information about scheduled execution timestamps.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scheduledExecutions

      default GetSegmentSubscriptionResponse.Builder scheduledExecutions(Consumer<ScheduledExecutions.Builder> scheduledExecutions)

      Information about scheduled execution timestamps.

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

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

      Parameters:
      scheduledExecutions - a consumer that will call methods on ScheduledExecutions.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 first started.

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

      GetSegmentSubscriptionResponse.Builder lastUpdatedAt(Instant lastUpdatedAt)

      The timestamp of the most recent configuration change.

      Parameters:
      lastUpdatedAt - The timestamp of the most recent configuration change.
      Returns:
      Returns a reference to this object so that method calls can be chained together.