AWS SDK for C++  1.9.104
AWS SDK for C++
RegisterStreamConsumerRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Kinesis
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "RegisterStreamConsumer"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
43  inline const Aws::String& GetStreamARN() const{ return m_streamARN; }
44 
51  inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; }
52 
59  inline void SetStreamARN(const Aws::String& value) { m_streamARNHasBeenSet = true; m_streamARN = value; }
60 
67  inline void SetStreamARN(Aws::String&& value) { m_streamARNHasBeenSet = true; m_streamARN = std::move(value); }
68 
75  inline void SetStreamARN(const char* value) { m_streamARNHasBeenSet = true; m_streamARN.assign(value); }
76 
83  inline RegisterStreamConsumerRequest& WithStreamARN(const Aws::String& value) { SetStreamARN(value); return *this;}
84 
91  inline RegisterStreamConsumerRequest& WithStreamARN(Aws::String&& value) { SetStreamARN(std::move(value)); return *this;}
92 
99  inline RegisterStreamConsumerRequest& WithStreamARN(const char* value) { SetStreamARN(value); return *this;}
100 
101 
106  inline const Aws::String& GetConsumerName() const{ return m_consumerName; }
107 
112  inline bool ConsumerNameHasBeenSet() const { return m_consumerNameHasBeenSet; }
113 
118  inline void SetConsumerName(const Aws::String& value) { m_consumerNameHasBeenSet = true; m_consumerName = value; }
119 
124  inline void SetConsumerName(Aws::String&& value) { m_consumerNameHasBeenSet = true; m_consumerName = std::move(value); }
125 
130  inline void SetConsumerName(const char* value) { m_consumerNameHasBeenSet = true; m_consumerName.assign(value); }
131 
136  inline RegisterStreamConsumerRequest& WithConsumerName(const Aws::String& value) { SetConsumerName(value); return *this;}
137 
142  inline RegisterStreamConsumerRequest& WithConsumerName(Aws::String&& value) { SetConsumerName(std::move(value)); return *this;}
143 
148  inline RegisterStreamConsumerRequest& WithConsumerName(const char* value) { SetConsumerName(value); return *this;}
149 
150  private:
151 
152  Aws::String m_streamARN;
153  bool m_streamARNHasBeenSet;
154 
155  Aws::String m_consumerName;
156  bool m_consumerNameHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace Kinesis
161 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Kinesis::Model::RegisterStreamConsumerRequest
Definition: RegisterStreamConsumerRequest.h:22
Aws::Kinesis::Model::RegisterStreamConsumerRequest::RegisterStreamConsumerRequest
RegisterStreamConsumerRequest()
Aws::Kinesis::Model::RegisterStreamConsumerRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Kinesis::Model::RegisterStreamConsumerRequest::GetConsumerName
const Aws::String & GetConsumerName() const
Definition: RegisterStreamConsumerRequest.h:106
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::RegisterStreamConsumerRequest::WithStreamARN
RegisterStreamConsumerRequest & WithStreamARN(const char *value)
Definition: RegisterStreamConsumerRequest.h:99
KinesisRequest.h
Aws::Kinesis::Model::RegisterStreamConsumerRequest::SetConsumerName
void SetConsumerName(const char *value)
Definition: RegisterStreamConsumerRequest.h:130
Aws::Kinesis::Model::RegisterStreamConsumerRequest::SetStreamARN
void SetStreamARN(const Aws::String &value)
Definition: RegisterStreamConsumerRequest.h:59
Aws::Kinesis::Model::RegisterStreamConsumerRequest::WithConsumerName
RegisterStreamConsumerRequest & WithConsumerName(const Aws::String &value)
Definition: RegisterStreamConsumerRequest.h:136
Aws::Kinesis::Model::RegisterStreamConsumerRequest::SetStreamARN
void SetStreamARN(Aws::String &&value)
Definition: RegisterStreamConsumerRequest.h:67
Aws::Kinesis::Model::RegisterStreamConsumerRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::Kinesis::KinesisRequest
Definition: KinesisRequest.h:17
Aws::Kinesis::Model::RegisterStreamConsumerRequest::StreamARNHasBeenSet
bool StreamARNHasBeenSet() const
Definition: RegisterStreamConsumerRequest.h:51
Kinesis_EXPORTS.h
Aws::Kinesis::Model::RegisterStreamConsumerRequest::WithConsumerName
RegisterStreamConsumerRequest & WithConsumerName(Aws::String &&value)
Definition: RegisterStreamConsumerRequest.h:142
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::RegisterStreamConsumerRequest::WithConsumerName
RegisterStreamConsumerRequest & WithConsumerName(const char *value)
Definition: RegisterStreamConsumerRequest.h:148
Aws::Kinesis::Model::RegisterStreamConsumerRequest::ConsumerNameHasBeenSet
bool ConsumerNameHasBeenSet() const
Definition: RegisterStreamConsumerRequest.h:112
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::RegisterStreamConsumerRequest::SetConsumerName
void SetConsumerName(Aws::String &&value)
Definition: RegisterStreamConsumerRequest.h:124
Aws::Kinesis::Model::RegisterStreamConsumerRequest::WithStreamARN
RegisterStreamConsumerRequest & WithStreamARN(Aws::String &&value)
Definition: RegisterStreamConsumerRequest.h:91
Aws::Kinesis::Model::RegisterStreamConsumerRequest::SetConsumerName
void SetConsumerName(const Aws::String &value)
Definition: RegisterStreamConsumerRequest.h:118
Aws::Kinesis::Model::RegisterStreamConsumerRequest::GetStreamARN
const Aws::String & GetStreamARN() const
Definition: RegisterStreamConsumerRequest.h:43
Aws::Kinesis::Model::RegisterStreamConsumerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RegisterStreamConsumerRequest.h:30
Aws::Kinesis::Model::RegisterStreamConsumerRequest::SetStreamARN
void SetStreamARN(const char *value)
Definition: RegisterStreamConsumerRequest.h:75
Aws::Kinesis::Model::RegisterStreamConsumerRequest::WithStreamARN
RegisterStreamConsumerRequest & WithStreamARN(const Aws::String &value)
Definition: RegisterStreamConsumerRequest.h:83