AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
ConsumerDescription.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
32 public:
33 AWS_KINESIS_API ConsumerDescription() = default;
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 ConsumerDescription& 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 ConsumerDescription& 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 ConsumerDescription& WithConsumerCreationTimestamp(ConsumerCreationTimestampT&& value) {
110 SetConsumerCreationTimestamp(std::forward<ConsumerCreationTimestampT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetStreamARN() const { return m_streamARN; }
120 inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; }
121 template <typename StreamARNT = Aws::String>
122 void SetStreamARN(StreamARNT&& value) {
123 m_streamARNHasBeenSet = true;
124 m_streamARN = std::forward<StreamARNT>(value);
125 }
126 template <typename StreamARNT = Aws::String>
127 ConsumerDescription& WithStreamARN(StreamARNT&& value) {
128 SetStreamARN(std::forward<StreamARNT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_consumerName;
134
135 Aws::String m_consumerARN;
136
137 ConsumerStatus m_consumerStatus{ConsumerStatus::NOT_SET};
138
139 Aws::Utils::DateTime m_consumerCreationTimestamp{};
140
141 Aws::String m_streamARN;
142 bool m_consumerNameHasBeenSet = false;
143 bool m_consumerARNHasBeenSet = false;
144 bool m_consumerStatusHasBeenSet = false;
145 bool m_consumerCreationTimestampHasBeenSet = false;
146 bool m_streamARNHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace Kinesis
151} // namespace Aws
void SetConsumerCreationTimestamp(ConsumerCreationTimestampT &&value)
ConsumerDescription & WithStreamARN(StreamARNT &&value)
AWS_KINESIS_API ConsumerDescription()=default
const Aws::String & GetConsumerName() const
ConsumerDescription & WithConsumerCreationTimestamp(ConsumerCreationTimestampT &&value)
AWS_KINESIS_API ConsumerDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
ConsumerDescription & WithConsumerStatus(ConsumerStatus value)
AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KINESIS_API ConsumerDescription(Aws::Utils::Json::JsonView jsonValue)
ConsumerDescription & WithConsumerARN(ConsumerARNT &&value)
const Aws::Utils::DateTime & GetConsumerCreationTimestamp() const
void SetConsumerName(ConsumerNameT &&value)
ConsumerDescription & WithConsumerName(ConsumerNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue