Interface StreamInfo.Builder

All Superinterfaces:
Buildable, CopyableBuilder<StreamInfo.Builder,StreamInfo>, SdkBuilder<StreamInfo.Builder,StreamInfo>, SdkPojo
Enclosing class:
StreamInfo

public static interface StreamInfo.Builder extends SdkPojo, CopyableBuilder<StreamInfo.Builder,StreamInfo>
  • Method Details

    • streamId

      StreamInfo.Builder streamId(String streamId)

      The stream ID.

      Parameters:
      streamId - The stream ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • streamArn

      StreamInfo.Builder streamArn(String streamArn)

      The stream ARN.

      Parameters:
      streamArn - The stream ARN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • streamVersion

      StreamInfo.Builder streamVersion(Integer streamVersion)

      The stream version.

      Parameters:
      streamVersion - The stream version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      StreamInfo.Builder description(String description)

      The description of the stream.

      Parameters:
      description - The description of the stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • files

      The files to stream.

      Parameters:
      files - The files to stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • files

      StreamInfo.Builder files(StreamFile... files)

      The files to stream.

      Parameters:
      files - The files to stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • files

      The files to stream.

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

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

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

      StreamInfo.Builder createdAt(Instant createdAt)

      The date when the stream was created.

      Parameters:
      createdAt - The date when the stream was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdatedAt

      StreamInfo.Builder lastUpdatedAt(Instant lastUpdatedAt)

      The date when the stream was last updated.

      Parameters:
      lastUpdatedAt - The date when the stream was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • roleArn

      StreamInfo.Builder roleArn(String roleArn)

      An IAM role IoT assumes to access your S3 files.

      Parameters:
      roleArn - An IAM role IoT assumes to access your S3 files.
      Returns:
      Returns a reference to this object so that method calls can be chained together.