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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StreamInfo.BuildercreatedAt(Instant createdAt)The date when the stream was created.StreamInfo.Builderdescription(String description)The description of the stream.StreamInfo.Builderfiles(Collection<StreamFile> files)The files to stream.StreamInfo.Builderfiles(Consumer<StreamFile.Builder>... files)The files to stream.StreamInfo.Builderfiles(StreamFile... files)The files to stream.StreamInfo.BuilderlastUpdatedAt(Instant lastUpdatedAt)The date when the stream was last updated.StreamInfo.BuilderroleArn(String roleArn)An IAM role IoT assumes to access your S3 files.StreamInfo.BuilderstreamArn(String streamArn)The stream ARN.StreamInfo.BuilderstreamId(String streamId)The stream ID.StreamInfo.BuilderstreamVersion(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 Detail
-
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
StreamInfo.Builder files(Collection<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
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
StreamInfo.Builder files(Consumer<StreamFile.Builder>... files)
The files to stream.
This is a convenience method that creates an instance of theStreamFile.Builderavoiding the need to create one manually viaStreamFile.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#files(List.) - 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:
#files(java.util.Collection)
-
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.
-
-