AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
SubscriptionDescription.h
1
6#pragma once
7#include <aws/connecthealth/ConnectHealth_EXPORTS.h>
8#include <aws/connecthealth/model/SubscriptionStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ConnectHealth {
22namespace Model {
23
30 public:
31 AWS_CONNECTHEALTH_API SubscriptionDescription() = default;
32 AWS_CONNECTHEALTH_API SubscriptionDescription(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTHEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetDomainId() const { return m_domainId; }
41 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
42 template <typename DomainIdT = Aws::String>
43 void SetDomainId(DomainIdT&& value) {
44 m_domainIdHasBeenSet = true;
45 m_domainId = std::forward<DomainIdT>(value);
46 }
47 template <typename DomainIdT = Aws::String>
49 SetDomainId(std::forward<DomainIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetSubscriptionId() const { return m_subscriptionId; }
59 inline bool SubscriptionIdHasBeenSet() const { return m_subscriptionIdHasBeenSet; }
60 template <typename SubscriptionIdT = Aws::String>
61 void SetSubscriptionId(SubscriptionIdT&& value) {
62 m_subscriptionIdHasBeenSet = true;
63 m_subscriptionId = std::forward<SubscriptionIdT>(value);
64 }
65 template <typename SubscriptionIdT = Aws::String>
66 SubscriptionDescription& WithSubscriptionId(SubscriptionIdT&& value) {
67 SetSubscriptionId(std::forward<SubscriptionIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetArn() const { return m_arn; }
77 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
78 template <typename ArnT = Aws::String>
79 void SetArn(ArnT&& value) {
80 m_arnHasBeenSet = true;
81 m_arn = std::forward<ArnT>(value);
82 }
83 template <typename ArnT = Aws::String>
85 SetArn(std::forward<ArnT>(value));
86 return *this;
87 }
89
91
94 inline SubscriptionStatus GetStatus() const { return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
96 inline void SetStatus(SubscriptionStatus value) {
97 m_statusHasBeenSet = true;
98 m_status = value;
99 }
101 SetStatus(value);
102 return *this;
103 }
105
107
110 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
111 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
112 template <typename CreatedAtT = Aws::Utils::DateTime>
113 void SetCreatedAt(CreatedAtT&& value) {
114 m_createdAtHasBeenSet = true;
115 m_createdAt = std::forward<CreatedAtT>(value);
116 }
117 template <typename CreatedAtT = Aws::Utils::DateTime>
119 SetCreatedAt(std::forward<CreatedAtT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
129 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
130 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
131 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
132 m_lastUpdatedAtHasBeenSet = true;
133 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
134 }
135 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
137 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Utils::DateTime& GetActivatedAt() const { return m_activatedAt; }
147 inline bool ActivatedAtHasBeenSet() const { return m_activatedAtHasBeenSet; }
148 template <typename ActivatedAtT = Aws::Utils::DateTime>
149 void SetActivatedAt(ActivatedAtT&& value) {
150 m_activatedAtHasBeenSet = true;
151 m_activatedAt = std::forward<ActivatedAtT>(value);
152 }
153 template <typename ActivatedAtT = Aws::Utils::DateTime>
155 SetActivatedAt(std::forward<ActivatedAtT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Utils::DateTime& GetDeactivatedAt() const { return m_deactivatedAt; }
165 inline bool DeactivatedAtHasBeenSet() const { return m_deactivatedAtHasBeenSet; }
166 template <typename DeactivatedAtT = Aws::Utils::DateTime>
167 void SetDeactivatedAt(DeactivatedAtT&& value) {
168 m_deactivatedAtHasBeenSet = true;
169 m_deactivatedAt = std::forward<DeactivatedAtT>(value);
170 }
171 template <typename DeactivatedAtT = Aws::Utils::DateTime>
173 SetDeactivatedAt(std::forward<DeactivatedAtT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_domainId;
179
180 Aws::String m_subscriptionId;
181
182 Aws::String m_arn;
183
185
186 Aws::Utils::DateTime m_createdAt{};
187
188 Aws::Utils::DateTime m_lastUpdatedAt{};
189
190 Aws::Utils::DateTime m_activatedAt{};
191
192 Aws::Utils::DateTime m_deactivatedAt{};
193 bool m_domainIdHasBeenSet = false;
194 bool m_subscriptionIdHasBeenSet = false;
195 bool m_arnHasBeenSet = false;
196 bool m_statusHasBeenSet = false;
197 bool m_createdAtHasBeenSet = false;
198 bool m_lastUpdatedAtHasBeenSet = false;
199 bool m_activatedAtHasBeenSet = false;
200 bool m_deactivatedAtHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace ConnectHealth
205} // namespace Aws
AWS_CONNECTHEALTH_API SubscriptionDescription(Aws::Utils::Json::JsonView jsonValue)
SubscriptionDescription & WithStatus(SubscriptionStatus value)
SubscriptionDescription & WithArn(ArnT &&value)
AWS_CONNECTHEALTH_API SubscriptionDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
SubscriptionDescription & WithActivatedAt(ActivatedAtT &&value)
SubscriptionDescription & WithDeactivatedAt(DeactivatedAtT &&value)
SubscriptionDescription & WithDomainId(DomainIdT &&value)
SubscriptionDescription & WithCreatedAt(CreatedAtT &&value)
SubscriptionDescription & WithSubscriptionId(SubscriptionIdT &&value)
SubscriptionDescription & WithLastUpdatedAt(LastUpdatedAtT &&value)
AWS_CONNECTHEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTHEALTH_API SubscriptionDescription()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue