Interface ConsumerDescription.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ConsumerDescription.Builder,ConsumerDescription>
,SdkBuilder<ConsumerDescription.Builder,ConsumerDescription>
,SdkPojo
- Enclosing class:
- ConsumerDescription
public static interface ConsumerDescription.Builder extends SdkPojo, CopyableBuilder<ConsumerDescription.Builder,ConsumerDescription>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConsumerDescription.Builder
consumerARN(String consumerARN)
When you register a consumer, Kinesis Data Streams generates an ARN for it.ConsumerDescription.Builder
consumerCreationTimestamp(Instant consumerCreationTimestamp)
ConsumerDescription.Builder
consumerName(String consumerName)
The name of the consumer is something you choose when you register the consumer.ConsumerDescription.Builder
consumerStatus(String consumerStatus)
A consumer can't read data while in theCREATING
orDELETING
states.ConsumerDescription.Builder
consumerStatus(ConsumerStatus consumerStatus)
A consumer can't read data while in theCREATING
orDELETING
states.ConsumerDescription.Builder
streamARN(String streamARN)
The ARN of the stream with which you registered the consumer.-
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
-
consumerName
ConsumerDescription.Builder consumerName(String consumerName)
The name of the consumer is something you choose when you register the consumer.
- Parameters:
consumerName
- The name of the consumer is something you choose when you register the consumer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
consumerARN
ConsumerDescription.Builder consumerARN(String consumerARN)
When you register a consumer, Kinesis Data Streams generates an ARN for it. You need this ARN to be able to call SubscribeToShard.
If you delete a consumer and then create a new one with the same name, it won't have the same ARN. That's because consumer ARNs contain the creation timestamp. This is important to keep in mind if you have IAM policies that reference consumer ARNs.
- Parameters:
consumerARN
- When you register a consumer, Kinesis Data Streams generates an ARN for it. You need this ARN to be able to call SubscribeToShard.If you delete a consumer and then create a new one with the same name, it won't have the same ARN. That's because consumer ARNs contain the creation timestamp. This is important to keep in mind if you have IAM policies that reference consumer ARNs.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
consumerStatus
ConsumerDescription.Builder consumerStatus(String consumerStatus)
A consumer can't read data while in the
CREATING
orDELETING
states.- Parameters:
consumerStatus
- A consumer can't read data while in theCREATING
orDELETING
states.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ConsumerStatus
,ConsumerStatus
-
consumerStatus
ConsumerDescription.Builder consumerStatus(ConsumerStatus consumerStatus)
A consumer can't read data while in the
CREATING
orDELETING
states.- Parameters:
consumerStatus
- A consumer can't read data while in theCREATING
orDELETING
states.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ConsumerStatus
,ConsumerStatus
-
consumerCreationTimestamp
ConsumerDescription.Builder consumerCreationTimestamp(Instant consumerCreationTimestamp)
- Parameters:
consumerCreationTimestamp
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
streamARN
ConsumerDescription.Builder streamARN(String streamARN)
The ARN of the stream with which you registered the consumer.
- Parameters:
streamARN
- The ARN of the stream with which you registered the consumer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-