AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TopicRuleDestination.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/TopicRuleDestinationStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/iot/model/HttpUrlDestinationProperties.h>
12#include <aws/iot/model/VpcDestinationProperties.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace IoT
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_IOT_API TopicRuleDestination();
42
43
45
48 inline const Aws::String& GetArn() const{ return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
51 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
52 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
53 inline TopicRuleDestination& WithArn(const Aws::String& value) { SetArn(value); return *this;}
54 inline TopicRuleDestination& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
55 inline TopicRuleDestination& WithArn(const char* value) { SetArn(value); return *this;}
57
59
79 inline const TopicRuleDestinationStatus& GetStatus() const{ return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(const TopicRuleDestinationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
82 inline void SetStatus(TopicRuleDestinationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
83 inline TopicRuleDestination& WithStatus(const TopicRuleDestinationStatus& value) { SetStatus(value); return *this;}
84 inline TopicRuleDestination& WithStatus(TopicRuleDestinationStatus&& value) { SetStatus(std::move(value)); return *this;}
86
88
91 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
92 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
93 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
94 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
95 inline TopicRuleDestination& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
96 inline TopicRuleDestination& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
104 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
105 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
106 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
108 inline TopicRuleDestination& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
110
112
116 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
117 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
118 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
119 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
120 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
121 inline TopicRuleDestination& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
122 inline TopicRuleDestination& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
123 inline TopicRuleDestination& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
125
127
130 inline const HttpUrlDestinationProperties& GetHttpUrlProperties() const{ return m_httpUrlProperties; }
131 inline bool HttpUrlPropertiesHasBeenSet() const { return m_httpUrlPropertiesHasBeenSet; }
132 inline void SetHttpUrlProperties(const HttpUrlDestinationProperties& value) { m_httpUrlPropertiesHasBeenSet = true; m_httpUrlProperties = value; }
133 inline void SetHttpUrlProperties(HttpUrlDestinationProperties&& value) { m_httpUrlPropertiesHasBeenSet = true; m_httpUrlProperties = std::move(value); }
137
139
142 inline const VpcDestinationProperties& GetVpcProperties() const{ return m_vpcProperties; }
143 inline bool VpcPropertiesHasBeenSet() const { return m_vpcPropertiesHasBeenSet; }
144 inline void SetVpcProperties(const VpcDestinationProperties& value) { m_vpcPropertiesHasBeenSet = true; m_vpcProperties = value; }
145 inline void SetVpcProperties(VpcDestinationProperties&& value) { m_vpcPropertiesHasBeenSet = true; m_vpcProperties = std::move(value); }
147 inline TopicRuleDestination& WithVpcProperties(VpcDestinationProperties&& value) { SetVpcProperties(std::move(value)); return *this;}
149 private:
150
151 Aws::String m_arn;
152 bool m_arnHasBeenSet = false;
153
155 bool m_statusHasBeenSet = false;
156
157 Aws::Utils::DateTime m_createdAt;
158 bool m_createdAtHasBeenSet = false;
159
160 Aws::Utils::DateTime m_lastUpdatedAt;
161 bool m_lastUpdatedAtHasBeenSet = false;
162
163 Aws::String m_statusReason;
164 bool m_statusReasonHasBeenSet = false;
165
166 HttpUrlDestinationProperties m_httpUrlProperties;
167 bool m_httpUrlPropertiesHasBeenSet = false;
168
169 VpcDestinationProperties m_vpcProperties;
170 bool m_vpcPropertiesHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace IoT
175} // namespace Aws
void SetHttpUrlProperties(HttpUrlDestinationProperties &&value)
TopicRuleDestination & WithStatusReason(const Aws::String &value)
TopicRuleDestination & WithStatusReason(Aws::String &&value)
TopicRuleDestination & WithVpcProperties(const VpcDestinationProperties &value)
TopicRuleDestination & WithArn(const char *value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetArn(const Aws::String &value)
TopicRuleDestination & WithArn(const Aws::String &value)
const HttpUrlDestinationProperties & GetHttpUrlProperties() const
TopicRuleDestination & WithStatus(const TopicRuleDestinationStatus &value)
void SetVpcProperties(const VpcDestinationProperties &value)
AWS_IOT_API TopicRuleDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
TopicRuleDestination & WithCreatedAt(Aws::Utils::DateTime &&value)
const TopicRuleDestinationStatus & GetStatus() const
TopicRuleDestination & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
AWS_IOT_API TopicRuleDestination(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
TopicRuleDestination & WithArn(Aws::String &&value)
void SetStatus(TopicRuleDestinationStatus &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const VpcDestinationProperties & GetVpcProperties() const
void SetStatus(const TopicRuleDestinationStatus &value)
TopicRuleDestination & WithHttpUrlProperties(const HttpUrlDestinationProperties &value)
TopicRuleDestination & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
TopicRuleDestination & WithVpcProperties(VpcDestinationProperties &&value)
const Aws::String & GetStatusReason() const
TopicRuleDestination & WithHttpUrlProperties(HttpUrlDestinationProperties &&value)
TopicRuleDestination & WithStatus(TopicRuleDestinationStatus &&value)
TopicRuleDestination & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetStatusReason(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetVpcProperties(VpcDestinationProperties &&value)
void SetHttpUrlProperties(const HttpUrlDestinationProperties &value)
TopicRuleDestination & WithStatusReason(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue