@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateStreamRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input for CreateStream
.
NOOP
Constructor and Description |
---|
CreateStreamRequest() |
Modifier and Type | Method and Description |
---|---|
CreateStreamRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Integer |
getShardCount()
The number of shards that the stream will use.
|
StreamModeDetails |
getStreamModeDetails()
Indicates the capacity mode of the data stream.
|
String |
getStreamName()
A name to identify the stream.
|
int |
hashCode() |
void |
setShardCount(Integer shardCount)
The number of shards that the stream will use.
|
void |
setStreamModeDetails(StreamModeDetails streamModeDetails)
Indicates the capacity mode of the data stream.
|
void |
setStreamName(String streamName)
A name to identify the stream.
|
String |
toString()
Returns a string representation of this object.
|
CreateStreamRequest |
withShardCount(Integer shardCount)
The number of shards that the stream will use.
|
CreateStreamRequest |
withStreamModeDetails(StreamModeDetails streamModeDetails)
Indicates the capacity mode of the data stream.
|
CreateStreamRequest |
withStreamName(String streamName)
A name to identify the stream.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setStreamName(String streamName)
A name to identify the stream. The stream name is scoped to the Amazon Web Services account used by the application that creates the stream. It is also scoped by Amazon Web Services Region. That is, two streams in two different Amazon Web Services accounts can have the same name. Two streams in the same Amazon Web Services account but in two different Regions can also have the same name.
streamName
- A name to identify the stream. The stream name is scoped to the Amazon Web Services account used by the
application that creates the stream. It is also scoped by Amazon Web Services Region. That is, two streams
in two different Amazon Web Services accounts can have the same name. Two streams in the same Amazon Web
Services account but in two different Regions can also have the same name.public String getStreamName()
A name to identify the stream. The stream name is scoped to the Amazon Web Services account used by the application that creates the stream. It is also scoped by Amazon Web Services Region. That is, two streams in two different Amazon Web Services accounts can have the same name. Two streams in the same Amazon Web Services account but in two different Regions can also have the same name.
public CreateStreamRequest withStreamName(String streamName)
A name to identify the stream. The stream name is scoped to the Amazon Web Services account used by the application that creates the stream. It is also scoped by Amazon Web Services Region. That is, two streams in two different Amazon Web Services accounts can have the same name. Two streams in the same Amazon Web Services account but in two different Regions can also have the same name.
streamName
- A name to identify the stream. The stream name is scoped to the Amazon Web Services account used by the
application that creates the stream. It is also scoped by Amazon Web Services Region. That is, two streams
in two different Amazon Web Services accounts can have the same name. Two streams in the same Amazon Web
Services account but in two different Regions can also have the same name.public void setShardCount(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.
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.public 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.
public CreateStreamRequest withShardCount(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.
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.public void setStreamModeDetails(StreamModeDetails streamModeDetails)
Indicates the capacity mode of the data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
streamModeDetails
- Indicates the capacity mode of the data stream. Currently, in Kinesis Data Streams, you can choose between
an on-demand capacity mode and a provisioned capacity mode for your data streams.public StreamModeDetails getStreamModeDetails()
Indicates the capacity mode of the data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
public CreateStreamRequest withStreamModeDetails(StreamModeDetails streamModeDetails)
Indicates the capacity mode of the data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
streamModeDetails
- Indicates the capacity mode of the data stream. Currently, in Kinesis Data Streams, you can choose between
an on-demand capacity mode and a provisioned capacity mode for your data streams.public String toString()
toString
in class Object
Object.toString()
public CreateStreamRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()