@Generated(value="software.amazon.awssdk:codegen") public final class CreateStreamRequest extends KinesisRequest implements ToCopyableBuilder<CreateStreamRequest.Builder,CreateStreamRequest>
Represents the input for CreateStream
.
Modifier and Type | Class and Description |
---|---|
static interface |
CreateStreamRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateStreamRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
static Class<? extends CreateStreamRequest.Builder> |
serializableBuilderClass() |
Integer |
shardCount()
The number of shards that the stream will use.
|
String |
streamName()
A name to identify the stream.
|
CreateStreamRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public 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 AWS Region. That is, two streams in two different AWS accounts can have the same name. Two streams in the same AWS account but in two different Regions can also have the same name.
public 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;
DefaultShardLimit;
public CreateStreamRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateStreamRequest.Builder,CreateStreamRequest>
toBuilder
in class KinesisRequest
public static CreateStreamRequest.Builder builder()
public static Class<? extends CreateStreamRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.