public class CreateStreamRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates a stream for delivering one or more large files in chunks over MQTT. A stream transports data bytes in chunks or blocks packaged as MQTT messages from a source like S3. You can have one or more files associated with a stream.
Constructor and Description |
---|
CreateStreamRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
A description of the stream.
|
java.util.List<StreamFile> |
getFiles()
The files to stream.
|
java.lang.String |
getRoleArn()
An IAM role that allows the IoT service principal assumes to access your
S3 files.
|
java.lang.String |
getStreamId()
The stream ID.
|
java.util.List<Tag> |
getTags()
Metadata which can be used to manage streams.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
A description of the stream.
|
void |
setFiles(java.util.Collection<StreamFile> files)
The files to stream.
|
void |
setRoleArn(java.lang.String roleArn)
An IAM role that allows the IoT service principal assumes to access your
S3 files.
|
void |
setStreamId(java.lang.String streamId)
The stream ID.
|
void |
setTags(java.util.Collection<Tag> tags)
Metadata which can be used to manage streams.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateStreamRequest |
withDescription(java.lang.String description)
A description of the stream.
|
CreateStreamRequest |
withFiles(java.util.Collection<StreamFile> files)
The files to stream.
|
CreateStreamRequest |
withFiles(StreamFile... files)
The files to stream.
|
CreateStreamRequest |
withRoleArn(java.lang.String roleArn)
An IAM role that allows the IoT service principal assumes to access your
S3 files.
|
CreateStreamRequest |
withStreamId(java.lang.String streamId)
The stream ID.
|
CreateStreamRequest |
withTags(java.util.Collection<Tag> tags)
Metadata which can be used to manage streams.
|
CreateStreamRequest |
withTags(Tag... tags)
Metadata which can be used to manage streams.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getStreamId()
The stream ID.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
The stream ID.
public void setStreamId(java.lang.String streamId)
The stream ID.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
streamId
- The stream ID.
public CreateStreamRequest withStreamId(java.lang.String streamId)
The stream ID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_-]+
streamId
- The stream ID.
public java.lang.String getDescription()
A description of the stream.
Constraints:
Length: - 2028
Pattern: [^\p{C}]+
A description of the stream.
public void setDescription(java.lang.String description)
A description of the stream.
Constraints:
Length: - 2028
Pattern: [^\p{C}]+
description
- A description of the stream.
public CreateStreamRequest withDescription(java.lang.String description)
A description of the stream.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 2028
Pattern: [^\p{C}]+
description
- A description of the stream.
public java.util.List<StreamFile> getFiles()
The files to stream.
The files to stream.
public void setFiles(java.util.Collection<StreamFile> files)
The files to stream.
files
- The files to stream.
public CreateStreamRequest withFiles(StreamFile... files)
The files to stream.
Returns a reference to this object so that method calls can be chained together.
files
- The files to stream.
public CreateStreamRequest withFiles(java.util.Collection<StreamFile> files)
The files to stream.
Returns a reference to this object so that method calls can be chained together.
files
- The files to stream.
public java.lang.String getRoleArn()
An IAM role that allows the IoT service principal assumes to access your S3 files.
Constraints:
Length: 20 - 2048
An IAM role that allows the IoT service principal assumes to access your S3 files.
public void setRoleArn(java.lang.String roleArn)
An IAM role that allows the IoT service principal assumes to access your S3 files.
Constraints:
Length: 20 - 2048
roleArn
- An IAM role that allows the IoT service principal assumes to access your S3 files.
public CreateStreamRequest withRoleArn(java.lang.String roleArn)
An IAM role that allows the IoT service principal assumes to access your S3 files.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
roleArn
- An IAM role that allows the IoT service principal assumes to access your S3 files.
public java.util.List<Tag> getTags()
Metadata which can be used to manage streams.
Metadata which can be used to manage streams.
public void setTags(java.util.Collection<Tag> tags)
Metadata which can be used to manage streams.
tags
- Metadata which can be used to manage streams.
public CreateStreamRequest withTags(Tag... tags)
Metadata which can be used to manage streams.
Returns a reference to this object so that method calls can be chained together.
tags
- Metadata which can be used to manage streams.
public CreateStreamRequest withTags(java.util.Collection<Tag> tags)
Metadata which can be used to manage streams.
Returns a reference to this object so that method calls can be chained together.
tags
- Metadata which can be used to manage streams.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.