AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Consumer.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kinesis/model/ConsumerStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Kinesis
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_KINESIS_API Consumer() = default;
39 AWS_KINESIS_API Consumer(Aws::Utils::Json::JsonView jsonValue);
40 AWS_KINESIS_API Consumer& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetConsumerName() const { return m_consumerName; }
50 inline bool ConsumerNameHasBeenSet() const { return m_consumerNameHasBeenSet; }
51 template<typename ConsumerNameT = Aws::String>
52 void SetConsumerName(ConsumerNameT&& value) { m_consumerNameHasBeenSet = true; m_consumerName = std::forward<ConsumerNameT>(value); }
53 template<typename ConsumerNameT = Aws::String>
54 Consumer& WithConsumerName(ConsumerNameT&& value) { SetConsumerName(std::forward<ConsumerNameT>(value)); return *this;}
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) { m_consumerARNHasBeenSet = true; m_consumerARN = std::forward<ConsumerARNT>(value); }
70 template<typename ConsumerARNT = Aws::String>
71 Consumer& WithConsumerARN(ConsumerARNT&& value) { SetConsumerARN(std::forward<ConsumerARNT>(value)); return *this;}
73
75
79 inline ConsumerStatus GetConsumerStatus() const { return m_consumerStatus; }
80 inline bool ConsumerStatusHasBeenSet() const { return m_consumerStatusHasBeenSet; }
81 inline void SetConsumerStatus(ConsumerStatus value) { m_consumerStatusHasBeenSet = true; m_consumerStatus = value; }
82 inline Consumer& WithConsumerStatus(ConsumerStatus value) { SetConsumerStatus(value); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetConsumerCreationTimestamp() const { return m_consumerCreationTimestamp; }
90 inline bool ConsumerCreationTimestampHasBeenSet() const { return m_consumerCreationTimestampHasBeenSet; }
91 template<typename ConsumerCreationTimestampT = Aws::Utils::DateTime>
92 void SetConsumerCreationTimestamp(ConsumerCreationTimestampT&& value) { m_consumerCreationTimestampHasBeenSet = true; m_consumerCreationTimestamp = std::forward<ConsumerCreationTimestampT>(value); }
93 template<typename ConsumerCreationTimestampT = Aws::Utils::DateTime>
94 Consumer& WithConsumerCreationTimestamp(ConsumerCreationTimestampT&& value) { SetConsumerCreationTimestamp(std::forward<ConsumerCreationTimestampT>(value)); return *this;}
96 private:
97
98 Aws::String m_consumerName;
99 bool m_consumerNameHasBeenSet = false;
100
101 Aws::String m_consumerARN;
102 bool m_consumerARNHasBeenSet = false;
103
104 ConsumerStatus m_consumerStatus{ConsumerStatus::NOT_SET};
105 bool m_consumerStatusHasBeenSet = false;
106
107 Aws::Utils::DateTime m_consumerCreationTimestamp{};
108 bool m_consumerCreationTimestampHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Kinesis
113} // namespace Aws
AWS_KINESIS_API Consumer & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ConsumerCreationTimestampHasBeenSet() const
Definition Consumer.h:90
const Aws::String & GetConsumerName() const
Definition Consumer.h:49
void SetConsumerARN(ConsumerARNT &&value)
Definition Consumer.h:69
AWS_KINESIS_API Consumer(Aws::Utils::Json::JsonView jsonValue)
ConsumerStatus GetConsumerStatus() const
Definition Consumer.h:79
void SetConsumerCreationTimestamp(ConsumerCreationTimestampT &&value)
Definition Consumer.h:92
bool ConsumerARNHasBeenSet() const
Definition Consumer.h:67
bool ConsumerStatusHasBeenSet() const
Definition Consumer.h:80
void SetConsumerStatus(ConsumerStatus value)
Definition Consumer.h:81
void SetConsumerName(ConsumerNameT &&value)
Definition Consumer.h:52
Consumer & WithConsumerCreationTimestamp(ConsumerCreationTimestampT &&value)
Definition Consumer.h:94
Consumer & WithConsumerARN(ConsumerARNT &&value)
Definition Consumer.h:71
const Aws::Utils::DateTime & GetConsumerCreationTimestamp() const
Definition Consumer.h:89
const Aws::String & GetConsumerARN() const
Definition Consumer.h:66
bool ConsumerNameHasBeenSet() const
Definition Consumer.h:50
Consumer & WithConsumerName(ConsumerNameT &&value)
Definition Consumer.h:54
AWS_KINESIS_API Consumer()=default
AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const
Consumer & WithConsumerStatus(ConsumerStatus value)
Definition Consumer.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue