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 Summary
Modifier and TypeMethodDescriptionThe date when the stream was created.description
(String description) The description of the stream.files
(Collection<StreamFile> files) The files to stream.files
(Consumer<StreamFile.Builder>... files) The files to stream.files
(StreamFile... files) The files to stream.lastUpdatedAt
(Instant lastUpdatedAt) The date when the stream was last updated.An IAM role IoT assumes to access your S3 files.The stream ARN.The stream ID.streamVersion
(Integer streamVersion) The stream version.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
The stream ARN.
- Parameters:
streamArn
- The stream ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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 theStreamFile.Builder
avoiding the need to create one manually viaStreamFile.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofiles(List<StreamFile>)
.- Parameters:
files
- a consumer that will call methods onStreamFile.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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.
-