Interface GetStreamForSegmentsResponse.Builder

  • Method Details

    • associatedAt

      GetStreamForSegmentsResponse.Builder associatedAt(Instant associatedAt)

      The timestamp of when the stream was associated.

      Parameters:
      associatedAt - The timestamp of when the stream was associated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • associatedSegments

      GetStreamForSegmentsResponse.Builder associatedSegments(Collection<AssociatedSegment> associatedSegments)

      A list of segments currently associated with the stream and their subscription status.

      Parameters:
      associatedSegments - A list of segments currently associated with the stream and their subscription status.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • associatedSegments

      GetStreamForSegmentsResponse.Builder associatedSegments(AssociatedSegment... associatedSegments)

      A list of segments currently associated with the stream and their subscription status.

      Parameters:
      associatedSegments - A list of segments currently associated with the stream and their subscription status.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • associatedSegments

      GetStreamForSegmentsResponse.Builder associatedSegments(Consumer<AssociatedSegment.Builder>... associatedSegments)

      A list of segments currently associated with the stream and their subscription status.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to associatedSegments(List<AssociatedSegment>).

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

      The unique name of the domain.

      Parameters:
      domainName - The unique name of the domain.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationArn

      GetStreamForSegmentsResponse.Builder destinationArn(String destinationArn)

      The Amazon Resource Name (ARN) of the Amazon Kinesis data stream receiving segment membership events.

      Parameters:
      destinationArn - The Amazon Resource Name (ARN) of the Amazon Kinesis data stream receiving segment membership events.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationRoleArn

      GetStreamForSegmentsResponse.Builder destinationRoleArn(String destinationRoleArn)

      The Amazon Resource Name (ARN) of the IAM role used for Amazon Kinesis and AWS Key Management Service (KMS) operations.

      Parameters:
      destinationRoleArn - The Amazon Resource Name (ARN) of the IAM role used for Amazon Kinesis and AWS Key Management Service (KMS) operations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      The operational state of the destination stream. The following are valid values:

      • RUNNING: The stream is associated and healthy. Segment membership events are being published.

      • UNHEALTHY: The stream is associated but events cannot currently be published. See FailureReason for details.

      • STOPPED: The stream is no longer publishing segment membership events.

      Parameters:
      state - The operational state of the destination stream. The following are valid values:

      • RUNNING: The stream is associated and healthy. Segment membership events are being published.

      • UNHEALTHY: The stream is associated but events cannot currently be published. See FailureReason for details.

      • STOPPED: The stream is no longer publishing segment membership events.

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

      The operational state of the destination stream. The following are valid values:

      • RUNNING: The stream is associated and healthy. Segment membership events are being published.

      • UNHEALTHY: The stream is associated but events cannot currently be published. See FailureReason for details.

      • STOPPED: The stream is no longer publishing segment membership events.

      Parameters:
      state - The operational state of the destination stream. The following are valid values:

      • RUNNING: The stream is associated and healthy. Segment membership events are being published.

      • UNHEALTHY: The stream is associated but events cannot currently be published. See FailureReason for details.

      • STOPPED: The stream is no longer publishing segment membership events.

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

      GetStreamForSegmentsResponse.Builder disassociatedAt(Instant disassociatedAt)

      The timestamp of when the stream was disassociated.

      Parameters:
      disassociatedAt - The timestamp of when the stream was disassociated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failureReason

      GetStreamForSegmentsResponse.Builder failureReason(String failureReason)

      The reason why the stream is in an unhealthy state, if applicable.

      Parameters:
      failureReason - The reason why the stream is in an unhealthy state, if applicable.
      Returns:
      Returns a reference to this object so that method calls can be chained together.