AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetConsumerName(const Aws::String& value) { m_consumerNameHasBeenSet = true; m_consumerName = value; }
52 inline void SetConsumerName(Aws::String&& value) { m_consumerNameHasBeenSet = true; m_consumerName = std::move(value); }
53 inline void SetConsumerName(const char* value) { m_consumerNameHasBeenSet = true; m_consumerName.assign(value); }
54 inline Consumer& WithConsumerName(const Aws::String& value) { SetConsumerName(value); return *this;}
55 inline Consumer& WithConsumerName(Aws::String&& value) { SetConsumerName(std::move(value)); return *this;}
56 inline Consumer& WithConsumerName(const char* value) { SetConsumerName(value); return *this;}
58
60
68 inline const Aws::String& GetConsumerARN() const{ return m_consumerARN; }
69 inline bool ConsumerARNHasBeenSet() const { return m_consumerARNHasBeenSet; }
70 inline void SetConsumerARN(const Aws::String& value) { m_consumerARNHasBeenSet = true; m_consumerARN = value; }
71 inline void SetConsumerARN(Aws::String&& value) { m_consumerARNHasBeenSet = true; m_consumerARN = std::move(value); }
72 inline void SetConsumerARN(const char* value) { m_consumerARNHasBeenSet = true; m_consumerARN.assign(value); }
73 inline Consumer& WithConsumerARN(const Aws::String& value) { SetConsumerARN(value); return *this;}
74 inline Consumer& WithConsumerARN(Aws::String&& value) { SetConsumerARN(std::move(value)); return *this;}
75 inline Consumer& WithConsumerARN(const char* value) { SetConsumerARN(value); return *this;}
77
79
83 inline const ConsumerStatus& GetConsumerStatus() const{ return m_consumerStatus; }
84 inline bool ConsumerStatusHasBeenSet() const { return m_consumerStatusHasBeenSet; }
85 inline void SetConsumerStatus(const ConsumerStatus& value) { m_consumerStatusHasBeenSet = true; m_consumerStatus = value; }
86 inline void SetConsumerStatus(ConsumerStatus&& value) { m_consumerStatusHasBeenSet = true; m_consumerStatus = std::move(value); }
87 inline Consumer& WithConsumerStatus(const ConsumerStatus& value) { SetConsumerStatus(value); return *this;}
88 inline Consumer& WithConsumerStatus(ConsumerStatus&& value) { SetConsumerStatus(std::move(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetConsumerCreationTimestamp() const{ return m_consumerCreationTimestamp; }
96 inline bool ConsumerCreationTimestampHasBeenSet() const { return m_consumerCreationTimestampHasBeenSet; }
97 inline void SetConsumerCreationTimestamp(const Aws::Utils::DateTime& value) { m_consumerCreationTimestampHasBeenSet = true; m_consumerCreationTimestamp = value; }
98 inline void SetConsumerCreationTimestamp(Aws::Utils::DateTime&& value) { m_consumerCreationTimestampHasBeenSet = true; m_consumerCreationTimestamp = std::move(value); }
102 private:
103
104 Aws::String m_consumerName;
105 bool m_consumerNameHasBeenSet = false;
106
107 Aws::String m_consumerARN;
108 bool m_consumerARNHasBeenSet = false;
109
110 ConsumerStatus m_consumerStatus;
111 bool m_consumerStatusHasBeenSet = false;
112
113 Aws::Utils::DateTime m_consumerCreationTimestamp;
114 bool m_consumerCreationTimestampHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Kinesis
119} // namespace Aws
AWS_KINESIS_API Consumer & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ConsumerCreationTimestampHasBeenSet() const
Definition Consumer.h:96
const Aws::String & GetConsumerName() const
Definition Consumer.h:49
void SetConsumerCreationTimestamp(Aws::Utils::DateTime &&value)
Definition Consumer.h:98
void SetConsumerStatus(ConsumerStatus &&value)
Definition Consumer.h:86
AWS_KINESIS_API Consumer(Aws::Utils::Json::JsonView jsonValue)
bool ConsumerARNHasBeenSet() const
Definition Consumer.h:69
bool ConsumerStatusHasBeenSet() const
Definition Consumer.h:84
void SetConsumerName(Aws::String &&value)
Definition Consumer.h:52
const ConsumerStatus & GetConsumerStatus() const
Definition Consumer.h:83
void SetConsumerARN(const char *value)
Definition Consumer.h:72
Consumer & WithConsumerName(const char *value)
Definition Consumer.h:56
Consumer & WithConsumerStatus(ConsumerStatus &&value)
Definition Consumer.h:88
Consumer & WithConsumerARN(const char *value)
Definition Consumer.h:75
AWS_KINESIS_API Consumer()
void SetConsumerARN(const Aws::String &value)
Definition Consumer.h:70
Consumer & WithConsumerName(const Aws::String &value)
Definition Consumer.h:54
void SetConsumerName(const char *value)
Definition Consumer.h:53
const Aws::Utils::DateTime & GetConsumerCreationTimestamp() const
Definition Consumer.h:95
const Aws::String & GetConsumerARN() const
Definition Consumer.h:68
bool ConsumerNameHasBeenSet() const
Definition Consumer.h:50
Consumer & WithConsumerARN(const Aws::String &value)
Definition Consumer.h:73
Consumer & WithConsumerARN(Aws::String &&value)
Definition Consumer.h:74
Consumer & WithConsumerCreationTimestamp(Aws::Utils::DateTime &&value)
Definition Consumer.h:100
Consumer & WithConsumerName(Aws::String &&value)
Definition Consumer.h:55
void SetConsumerStatus(const ConsumerStatus &value)
Definition Consumer.h:85
Consumer & WithConsumerStatus(const ConsumerStatus &value)
Definition Consumer.h:87
void SetConsumerName(const Aws::String &value)
Definition Consumer.h:51
Consumer & WithConsumerCreationTimestamp(const Aws::Utils::DateTime &value)
Definition Consumer.h:99
void SetConsumerCreationTimestamp(const Aws::Utils::DateTime &value)
Definition Consumer.h:97
AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetConsumerARN(Aws::String &&value)
Definition Consumer.h:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue