AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
Consumer.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kinesis/Kinesis_EXPORTS.h>
10#include <aws/kinesis/model/ConsumerStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Kinesis {
22namespace Model {
23
31class Consumer {
32 public:
33 AWS_KINESIS_API Consumer() = default;
34 AWS_KINESIS_API Consumer(Aws::Utils::Json::JsonView jsonValue);
35 AWS_KINESIS_API Consumer& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetConsumerName() const { return m_consumerName; }
44 inline bool ConsumerNameHasBeenSet() const { return m_consumerNameHasBeenSet; }
45 template <typename ConsumerNameT = Aws::String>
46 void SetConsumerName(ConsumerNameT&& value) {
47 m_consumerNameHasBeenSet = true;
48 m_consumerName = std::forward<ConsumerNameT>(value);
49 }
50 template <typename ConsumerNameT = Aws::String>
51 Consumer& WithConsumerName(ConsumerNameT&& value) {
52 SetConsumerName(std::forward<ConsumerNameT>(value));
53 return *this;
54 }
56
58
66 inline const Aws::String& GetConsumerARN() const { return m_consumerARN; }
67 inline bool ConsumerARNHasBeenSet() const { return m_consumerARNHasBeenSet; }
68 template <typename ConsumerARNT = Aws::String>
69 void SetConsumerARN(ConsumerARNT&& value) {
70 m_consumerARNHasBeenSet = true;
71 m_consumerARN = std::forward<ConsumerARNT>(value);
72 }
73 template <typename ConsumerARNT = Aws::String>
74 Consumer& WithConsumerARN(ConsumerARNT&& value) {
75 SetConsumerARN(std::forward<ConsumerARNT>(value));
76 return *this;
77 }
79
81
85 inline ConsumerStatus GetConsumerStatus() const { return m_consumerStatus; }
86 inline bool ConsumerStatusHasBeenSet() const { return m_consumerStatusHasBeenSet; }
87 inline void SetConsumerStatus(ConsumerStatus value) {
88 m_consumerStatusHasBeenSet = true;
89 m_consumerStatus = value;
90 }
92 SetConsumerStatus(value);
93 return *this;
94 }
96
98
101 inline const Aws::Utils::DateTime& GetConsumerCreationTimestamp() const { return m_consumerCreationTimestamp; }
102 inline bool ConsumerCreationTimestampHasBeenSet() const { return m_consumerCreationTimestampHasBeenSet; }
103 template <typename ConsumerCreationTimestampT = Aws::Utils::DateTime>
104 void SetConsumerCreationTimestamp(ConsumerCreationTimestampT&& value) {
105 m_consumerCreationTimestampHasBeenSet = true;
106 m_consumerCreationTimestamp = std::forward<ConsumerCreationTimestampT>(value);
107 }
108 template <typename ConsumerCreationTimestampT = Aws::Utils::DateTime>
109 Consumer& WithConsumerCreationTimestamp(ConsumerCreationTimestampT&& value) {
110 SetConsumerCreationTimestamp(std::forward<ConsumerCreationTimestampT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_consumerName;
116
117 Aws::String m_consumerARN;
118
119 ConsumerStatus m_consumerStatus{ConsumerStatus::NOT_SET};
120
121 Aws::Utils::DateTime m_consumerCreationTimestamp{};
122 bool m_consumerNameHasBeenSet = false;
123 bool m_consumerARNHasBeenSet = false;
124 bool m_consumerStatusHasBeenSet = false;
125 bool m_consumerCreationTimestampHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace Kinesis
130} // namespace Aws
AWS_KINESIS_API Consumer & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ConsumerCreationTimestampHasBeenSet() const
Definition Consumer.h:102
const Aws::String & GetConsumerName() const
Definition Consumer.h:43
void SetConsumerARN(ConsumerARNT &&value)
Definition Consumer.h:69
AWS_KINESIS_API Consumer(Aws::Utils::Json::JsonView jsonValue)
ConsumerStatus GetConsumerStatus() const
Definition Consumer.h:85
void SetConsumerCreationTimestamp(ConsumerCreationTimestampT &&value)
Definition Consumer.h:104
bool ConsumerARNHasBeenSet() const
Definition Consumer.h:67
bool ConsumerStatusHasBeenSet() const
Definition Consumer.h:86
void SetConsumerStatus(ConsumerStatus value)
Definition Consumer.h:87
void SetConsumerName(ConsumerNameT &&value)
Definition Consumer.h:46
Consumer & WithConsumerCreationTimestamp(ConsumerCreationTimestampT &&value)
Definition Consumer.h:109
Consumer & WithConsumerARN(ConsumerARNT &&value)
Definition Consumer.h:74
const Aws::Utils::DateTime & GetConsumerCreationTimestamp() const
Definition Consumer.h:101
const Aws::String & GetConsumerARN() const
Definition Consumer.h:66
bool ConsumerNameHasBeenSet() const
Definition Consumer.h:44
Consumer & WithConsumerName(ConsumerNameT &&value)
Definition Consumer.h:51
AWS_KINESIS_API Consumer()=default
AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const
Consumer & WithConsumerStatus(ConsumerStatus value)
Definition Consumer.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue