/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Kinesis { namespace Model { /** */ class AWS_KINESIS_API RegisterStreamConsumerRequest : public KinesisRequest { public: RegisterStreamConsumerRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "RegisterStreamConsumer"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN of the Kinesis data stream that you want to register the consumer * with. For more info, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline const Aws::String& GetStreamARN() const{ return m_streamARN; } /** *

The ARN of the Kinesis data stream that you want to register the consumer * with. For more info, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; } /** *

The ARN of the Kinesis data stream that you want to register the consumer * with. For more info, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline void SetStreamARN(const Aws::String& value) { m_streamARNHasBeenSet = true; m_streamARN = value; } /** *

The ARN of the Kinesis data stream that you want to register the consumer * with. For more info, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline void SetStreamARN(Aws::String&& value) { m_streamARNHasBeenSet = true; m_streamARN = std::move(value); } /** *

The ARN of the Kinesis data stream that you want to register the consumer * with. For more info, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline void SetStreamARN(const char* value) { m_streamARNHasBeenSet = true; m_streamARN.assign(value); } /** *

The ARN of the Kinesis data stream that you want to register the consumer * with. For more info, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline RegisterStreamConsumerRequest& WithStreamARN(const Aws::String& value) { SetStreamARN(value); return *this;} /** *

The ARN of the Kinesis data stream that you want to register the consumer * with. For more info, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline RegisterStreamConsumerRequest& WithStreamARN(Aws::String&& value) { SetStreamARN(std::move(value)); return *this;} /** *

The ARN of the Kinesis data stream that you want to register the consumer * with. For more info, see Amazon * Resource Names (ARNs) and AWS Service Namespaces.

*/ inline RegisterStreamConsumerRequest& WithStreamARN(const char* value) { SetStreamARN(value); return *this;} /** *

For a given Kinesis data stream, each consumer must have a unique name. * However, consumer names don't have to be unique across data streams.

*/ inline const Aws::String& GetConsumerName() const{ return m_consumerName; } /** *

For a given Kinesis data stream, each consumer must have a unique name. * However, consumer names don't have to be unique across data streams.

*/ inline bool ConsumerNameHasBeenSet() const { return m_consumerNameHasBeenSet; } /** *

For a given Kinesis data stream, each consumer must have a unique name. * However, consumer names don't have to be unique across data streams.

*/ inline void SetConsumerName(const Aws::String& value) { m_consumerNameHasBeenSet = true; m_consumerName = value; } /** *

For a given Kinesis data stream, each consumer must have a unique name. * However, consumer names don't have to be unique across data streams.

*/ inline void SetConsumerName(Aws::String&& value) { m_consumerNameHasBeenSet = true; m_consumerName = std::move(value); } /** *

For a given Kinesis data stream, each consumer must have a unique name. * However, consumer names don't have to be unique across data streams.

*/ inline void SetConsumerName(const char* value) { m_consumerNameHasBeenSet = true; m_consumerName.assign(value); } /** *

For a given Kinesis data stream, each consumer must have a unique name. * However, consumer names don't have to be unique across data streams.

*/ inline RegisterStreamConsumerRequest& WithConsumerName(const Aws::String& value) { SetConsumerName(value); return *this;} /** *

For a given Kinesis data stream, each consumer must have a unique name. * However, consumer names don't have to be unique across data streams.

*/ inline RegisterStreamConsumerRequest& WithConsumerName(Aws::String&& value) { SetConsumerName(std::move(value)); return *this;} /** *

For a given Kinesis data stream, each consumer must have a unique name. * However, consumer names don't have to be unique across data streams.

*/ inline RegisterStreamConsumerRequest& WithConsumerName(const char* value) { SetConsumerName(value); return *this;} private: Aws::String m_streamARN; bool m_streamARNHasBeenSet; Aws::String m_consumerName; bool m_consumerNameHasBeenSet; }; } // namespace Model } // namespace Kinesis } // namespace Aws