/** * <p> * When you register a consumer, Kinesis Data Streams generates an ARN for it. You need this ARN to be able to call * <a>SubscribeToShard</a>. * </p> * <p> * 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. * </p> * * @param consumerARN * When you register a consumer, Kinesis Data Streams generates an ARN for it. You need this ARN to be able * to call <a>SubscribeToShard</a>.</p> * <p> * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public ConsumerDescription withConsumerARN(String consumerARN) { setConsumerARN(consumerARN); return this; }
consumerDescription.setConsumerARN(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * When you register a consumer, Kinesis Data Streams generates an ARN for it. You need this ARN to be able to call * <a>SubscribeToShard</a>. * </p> * <p> * 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. * </p> * * @param consumerARN * When you register a consumer, Kinesis Data Streams generates an ARN for it. You need this ARN to be able * to call <a>SubscribeToShard</a>.</p> * <p> * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public ConsumerDescription withConsumerARN(String consumerARN) { setConsumerARN(consumerARN); return this; }
consumerDescription.setConsumerARN(context.getUnmarshaller(String.class).unmarshall(context));