public class CreateStreamRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Represents the input for CreateStream
.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
shardCount
The number of shards that the stream will use.
|
private java.lang.String |
streamName
A name to identify the stream.
|
NOOP
Constructor and Description |
---|
CreateStreamRequest() |
Modifier and Type | Method and Description |
---|---|
CreateStreamRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getShardCount()
The number of shards that the stream will use.
|
java.lang.String |
getStreamName()
A name to identify the stream.
|
int |
hashCode() |
void |
setShardCount(java.lang.Integer shardCount)
The number of shards that the stream will use.
|
void |
setStreamName(java.lang.String streamName)
A name to identify the stream.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateStreamRequest |
withShardCount(java.lang.Integer shardCount)
The number of shards that the stream will use.
|
CreateStreamRequest |
withStreamName(java.lang.String streamName)
A name to identify the stream.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String streamName
A name to identify the stream. The stream name is scoped to the AWS account used by the application that creates the stream. It is also scoped by region. That is, two streams in two different AWS accounts can have the same name, and two streams in the same AWS account but in two different regions can have the same name.
private java.lang.Integer shardCount
The number of shards that the stream will use. The throughput of the stream is a function of the number of shards; more shards are required for greater provisioned throughput.
DefaultShardLimit;
public void setStreamName(java.lang.String streamName)
A name to identify the stream. The stream name is scoped to the AWS account used by the application that creates the stream. It is also scoped by region. That is, two streams in two different AWS accounts can have the same name, and two streams in the same AWS account but in two different regions can have the same name.
streamName
- A name to identify the stream. The stream name is scoped to the
AWS account used by the application that creates the stream. It is
also scoped by region. That is, two streams in two different AWS
accounts can have the same name, and two streams in the same AWS
account but in two different regions can have the same name.public java.lang.String getStreamName()
A name to identify the stream. The stream name is scoped to the AWS account used by the application that creates the stream. It is also scoped by region. That is, two streams in two different AWS accounts can have the same name, and two streams in the same AWS account but in two different regions can have the same name.
public CreateStreamRequest withStreamName(java.lang.String streamName)
A name to identify the stream. The stream name is scoped to the AWS account used by the application that creates the stream. It is also scoped by region. That is, two streams in two different AWS accounts can have the same name, and two streams in the same AWS account but in two different regions can have the same name.
streamName
- A name to identify the stream. The stream name is scoped to the
AWS account used by the application that creates the stream. It is
also scoped by region. That is, two streams in two different AWS
accounts can have the same name, and two streams in the same AWS
account but in two different regions can have the same name.public void setShardCount(java.lang.Integer shardCount)
The number of shards that the stream will use. The throughput of the stream is a function of the number of shards; more shards are required for greater provisioned throughput.
DefaultShardLimit;
shardCount
- The number of shards that the stream will use. The throughput of
the stream is a function of the number of shards; more shards are
required for greater provisioned throughput.
DefaultShardLimit;
public java.lang.Integer getShardCount()
The number of shards that the stream will use. The throughput of the stream is a function of the number of shards; more shards are required for greater provisioned throughput.
DefaultShardLimit;
DefaultShardLimit;
public CreateStreamRequest withShardCount(java.lang.Integer shardCount)
The number of shards that the stream will use. The throughput of the stream is a function of the number of shards; more shards are required for greater provisioned throughput.
DefaultShardLimit;
shardCount
- The number of shards that the stream will use. The throughput of
the stream is a function of the number of shards; more shards are
required for greater provisioned throughput.
DefaultShardLimit;
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateStreamRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()