AWS SDK for C++  1.9.104
AWS SDK for C++
Consumer.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Kinesis
24 {
25 namespace Model
26 {
27 
36  {
37  public:
42 
43 
48  inline const Aws::String& GetConsumerName() const{ return m_consumerName; }
49 
54  inline bool ConsumerNameHasBeenSet() const { return m_consumerNameHasBeenSet; }
55 
60  inline void SetConsumerName(const Aws::String& value) { m_consumerNameHasBeenSet = true; m_consumerName = value; }
61 
66  inline void SetConsumerName(Aws::String&& value) { m_consumerNameHasBeenSet = true; m_consumerName = std::move(value); }
67 
72  inline void SetConsumerName(const char* value) { m_consumerNameHasBeenSet = true; m_consumerName.assign(value); }
73 
78  inline Consumer& WithConsumerName(const Aws::String& value) { SetConsumerName(value); return *this;}
79 
84  inline Consumer& WithConsumerName(Aws::String&& value) { SetConsumerName(std::move(value)); return *this;}
85 
90  inline Consumer& WithConsumerName(const char* value) { SetConsumerName(value); return *this;}
91 
92 
101  inline const Aws::String& GetConsumerARN() const{ return m_consumerARN; }
102 
111  inline bool ConsumerARNHasBeenSet() const { return m_consumerARNHasBeenSet; }
112 
121  inline void SetConsumerARN(const Aws::String& value) { m_consumerARNHasBeenSet = true; m_consumerARN = value; }
122 
131  inline void SetConsumerARN(Aws::String&& value) { m_consumerARNHasBeenSet = true; m_consumerARN = std::move(value); }
132 
141  inline void SetConsumerARN(const char* value) { m_consumerARNHasBeenSet = true; m_consumerARN.assign(value); }
142 
151  inline Consumer& WithConsumerARN(const Aws::String& value) { SetConsumerARN(value); return *this;}
152 
161  inline Consumer& WithConsumerARN(Aws::String&& value) { SetConsumerARN(std::move(value)); return *this;}
162 
171  inline Consumer& WithConsumerARN(const char* value) { SetConsumerARN(value); return *this;}
172 
173 
178  inline const ConsumerStatus& GetConsumerStatus() const{ return m_consumerStatus; }
179 
184  inline bool ConsumerStatusHasBeenSet() const { return m_consumerStatusHasBeenSet; }
185 
190  inline void SetConsumerStatus(const ConsumerStatus& value) { m_consumerStatusHasBeenSet = true; m_consumerStatus = value; }
191 
196  inline void SetConsumerStatus(ConsumerStatus&& value) { m_consumerStatusHasBeenSet = true; m_consumerStatus = std::move(value); }
197 
202  inline Consumer& WithConsumerStatus(const ConsumerStatus& value) { SetConsumerStatus(value); return *this;}
203 
208  inline Consumer& WithConsumerStatus(ConsumerStatus&& value) { SetConsumerStatus(std::move(value)); return *this;}
209 
210 
214  inline const Aws::Utils::DateTime& GetConsumerCreationTimestamp() const{ return m_consumerCreationTimestamp; }
215 
219  inline bool ConsumerCreationTimestampHasBeenSet() const { return m_consumerCreationTimestampHasBeenSet; }
220 
224  inline void SetConsumerCreationTimestamp(const Aws::Utils::DateTime& value) { m_consumerCreationTimestampHasBeenSet = true; m_consumerCreationTimestamp = value; }
225 
229  inline void SetConsumerCreationTimestamp(Aws::Utils::DateTime&& value) { m_consumerCreationTimestampHasBeenSet = true; m_consumerCreationTimestamp = std::move(value); }
230 
234  inline Consumer& WithConsumerCreationTimestamp(const Aws::Utils::DateTime& value) { SetConsumerCreationTimestamp(value); return *this;}
235 
239  inline Consumer& WithConsumerCreationTimestamp(Aws::Utils::DateTime&& value) { SetConsumerCreationTimestamp(std::move(value)); return *this;}
240 
241  private:
242 
243  Aws::String m_consumerName;
244  bool m_consumerNameHasBeenSet;
245 
246  Aws::String m_consumerARN;
247  bool m_consumerARNHasBeenSet;
248 
249  ConsumerStatus m_consumerStatus;
250  bool m_consumerStatusHasBeenSet;
251 
252  Aws::Utils::DateTime m_consumerCreationTimestamp;
253  bool m_consumerCreationTimestampHasBeenSet;
254  };
255 
256 } // namespace Model
257 } // namespace Kinesis
258 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Kinesis::Model::Consumer::SetConsumerStatus
void SetConsumerStatus(const ConsumerStatus &value)
Definition: Consumer.h:190
ConsumerStatus.h
Aws::Kinesis::Model::Consumer::GetConsumerStatus
const ConsumerStatus & GetConsumerStatus() const
Definition: Consumer.h:178
Aws::Kinesis::Model::Consumer::WithConsumerName
Consumer & WithConsumerName(const char *value)
Definition: Consumer.h:90
Aws::Kinesis::Model::Consumer::SetConsumerARN
void SetConsumerARN(const char *value)
Definition: Consumer.h:141
Aws::Kinesis::Model::Consumer::SetConsumerARN
void SetConsumerARN(Aws::String &&value)
Definition: Consumer.h:131
Aws::Kinesis::Model::Consumer::GetConsumerARN
const Aws::String & GetConsumerARN() const
Definition: Consumer.h:101
Aws::Kinesis::Model::Consumer::WithConsumerStatus
Consumer & WithConsumerStatus(const ConsumerStatus &value)
Definition: Consumer.h:202
Aws::Kinesis::Model::Consumer::WithConsumerARN
Consumer & WithConsumerARN(Aws::String &&value)
Definition: Consumer.h:161
DateTime.h
Aws::Kinesis::Model::ConsumerStatus
ConsumerStatus
Definition: ConsumerStatus.h:17
Aws::Kinesis::Model::Consumer::WithConsumerName
Consumer & WithConsumerName(Aws::String &&value)
Definition: Consumer.h:84
Aws::Kinesis::Model::Consumer::Consumer
Consumer()
Aws::Kinesis::Model::Consumer::SetConsumerName
void SetConsumerName(Aws::String &&value)
Definition: Consumer.h:66
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::Consumer::SetConsumerName
void SetConsumerName(const char *value)
Definition: Consumer.h:72
Aws::Kinesis::Model::Consumer::SetConsumerARN
void SetConsumerARN(const Aws::String &value)
Definition: Consumer.h:121
Aws::Kinesis::Model::Consumer::ConsumerNameHasBeenSet
bool ConsumerNameHasBeenSet() const
Definition: Consumer.h:54
Aws::Kinesis::Model::Consumer::SetConsumerStatus
void SetConsumerStatus(ConsumerStatus &&value)
Definition: Consumer.h:196
Aws::Kinesis::Model::Consumer::ConsumerCreationTimestampHasBeenSet
bool ConsumerCreationTimestampHasBeenSet() const
Definition: Consumer.h:219
Aws::Kinesis::Model::Consumer
Definition: Consumer.h:36
Aws::Kinesis::Model::Consumer::GetConsumerName
const Aws::String & GetConsumerName() const
Definition: Consumer.h:48
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Kinesis::Model::Consumer::operator=
Consumer & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Kinesis::Model::Consumer::SetConsumerName
void SetConsumerName(const Aws::String &value)
Definition: Consumer.h:60
Aws::Kinesis::Model::Consumer::ConsumerStatusHasBeenSet
bool ConsumerStatusHasBeenSet() const
Definition: Consumer.h:184
Kinesis_EXPORTS.h
Aws::Kinesis::Model::Consumer::WithConsumerName
Consumer & WithConsumerName(const Aws::String &value)
Definition: Consumer.h:78
Aws::Kinesis::Model::Consumer::WithConsumerCreationTimestamp
Consumer & WithConsumerCreationTimestamp(const Aws::Utils::DateTime &value)
Definition: Consumer.h:234
Aws::Kinesis::Model::Consumer::GetConsumerCreationTimestamp
const Aws::Utils::DateTime & GetConsumerCreationTimestamp() const
Definition: Consumer.h:214
Aws::Kinesis::Model::Consumer::ConsumerARNHasBeenSet
bool ConsumerARNHasBeenSet() const
Definition: Consumer.h:111
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::Consumer::SetConsumerCreationTimestamp
void SetConsumerCreationTimestamp(const Aws::Utils::DateTime &value)
Definition: Consumer.h:224
Aws::Kinesis::Model::Consumer::Consumer
Consumer(Aws::Utils::Json::JsonView jsonValue)
Aws::Kinesis::Model::Consumer::WithConsumerStatus
Consumer & WithConsumerStatus(ConsumerStatus &&value)
Definition: Consumer.h:208
Aws::Kinesis::Model::Consumer::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Kinesis::Model::Consumer::SetConsumerCreationTimestamp
void SetConsumerCreationTimestamp(Aws::Utils::DateTime &&value)
Definition: Consumer.h:229
Aws::Kinesis::Model::Consumer::WithConsumerARN
Consumer & WithConsumerARN(const Aws::String &value)
Definition: Consumer.h:151
Aws::Kinesis::Model::Consumer::WithConsumerARN
Consumer & WithConsumerARN(const char *value)
Definition: Consumer.h:171
Aws::Kinesis::Model::Consumer::WithConsumerCreationTimestamp
Consumer & WithConsumerCreationTimestamp(Aws::Utils::DateTime &&value)
Definition: Consumer.h:239