AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ContactMethod.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/ContactMethodStatus.h>
11#include <aws/lightsail/model/ContactProtocol.h>
12#include <aws/lightsail/model/ResourceLocation.h>
13#include <aws/lightsail/model/ResourceType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail {
25namespace Model {
26
36 public:
37 AWS_LIGHTSAIL_API ContactMethod() = default;
38 AWS_LIGHTSAIL_API ContactMethod(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LIGHTSAIL_API ContactMethod& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const Aws::String& GetContactEndpoint() const { return m_contactEndpoint; }
48 inline bool ContactEndpointHasBeenSet() const { return m_contactEndpointHasBeenSet; }
49 template <typename ContactEndpointT = Aws::String>
50 void SetContactEndpoint(ContactEndpointT&& value) {
51 m_contactEndpointHasBeenSet = true;
52 m_contactEndpoint = std::forward<ContactEndpointT>(value);
53 }
54 template <typename ContactEndpointT = Aws::String>
55 ContactMethod& WithContactEndpoint(ContactEndpointT&& value) {
56 SetContactEndpoint(std::forward<ContactEndpointT>(value));
57 return *this;
58 }
60
62
70 inline ContactMethodStatus GetStatus() const { return m_status; }
71 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
72 inline void SetStatus(ContactMethodStatus value) {
73 m_statusHasBeenSet = true;
74 m_status = value;
75 }
77 SetStatus(value);
78 return *this;
79 }
81
83
87 inline ContactProtocol GetProtocol() const { return m_protocol; }
88 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
89 inline void SetProtocol(ContactProtocol value) {
90 m_protocolHasBeenSet = true;
91 m_protocol = value;
92 }
94 SetProtocol(value);
95 return *this;
96 }
98
100
103 inline const Aws::String& GetName() const { return m_name; }
104 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
105 template <typename NameT = Aws::String>
106 void SetName(NameT&& value) {
107 m_nameHasBeenSet = true;
108 m_name = std::forward<NameT>(value);
109 }
110 template <typename NameT = Aws::String>
111 ContactMethod& WithName(NameT&& value) {
112 SetName(std::forward<NameT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetArn() const { return m_arn; }
122 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
123 template <typename ArnT = Aws::String>
124 void SetArn(ArnT&& value) {
125 m_arnHasBeenSet = true;
126 m_arn = std::forward<ArnT>(value);
127 }
128 template <typename ArnT = Aws::String>
129 ContactMethod& WithArn(ArnT&& value) {
130 SetArn(std::forward<ArnT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
140 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
141 template <typename CreatedAtT = Aws::Utils::DateTime>
142 void SetCreatedAt(CreatedAtT&& value) {
143 m_createdAtHasBeenSet = true;
144 m_createdAt = std::forward<CreatedAtT>(value);
145 }
146 template <typename CreatedAtT = Aws::Utils::DateTime>
147 ContactMethod& WithCreatedAt(CreatedAtT&& value) {
148 SetCreatedAt(std::forward<CreatedAtT>(value));
149 return *this;
150 }
152
154
158 inline const ResourceLocation& GetLocation() const { return m_location; }
159 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
160 template <typename LocationT = ResourceLocation>
161 void SetLocation(LocationT&& value) {
162 m_locationHasBeenSet = true;
163 m_location = std::forward<LocationT>(value);
164 }
165 template <typename LocationT = ResourceLocation>
166 ContactMethod& WithLocation(LocationT&& value) {
167 SetLocation(std::forward<LocationT>(value));
168 return *this;
169 }
171
173
176 inline ResourceType GetResourceType() const { return m_resourceType; }
177 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
178 inline void SetResourceType(ResourceType value) {
179 m_resourceTypeHasBeenSet = true;
180 m_resourceType = value;
181 }
183 SetResourceType(value);
184 return *this;
185 }
187
189
194 inline const Aws::String& GetSupportCode() const { return m_supportCode; }
195 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
196 template <typename SupportCodeT = Aws::String>
197 void SetSupportCode(SupportCodeT&& value) {
198 m_supportCodeHasBeenSet = true;
199 m_supportCode = std::forward<SupportCodeT>(value);
200 }
201 template <typename SupportCodeT = Aws::String>
202 ContactMethod& WithSupportCode(SupportCodeT&& value) {
203 SetSupportCode(std::forward<SupportCodeT>(value));
204 return *this;
205 }
207 private:
208 Aws::String m_contactEndpoint;
209
211
213
214 Aws::String m_name;
215
216 Aws::String m_arn;
217
218 Aws::Utils::DateTime m_createdAt{};
219
220 ResourceLocation m_location;
221
222 ResourceType m_resourceType{ResourceType::NOT_SET};
223
224 Aws::String m_supportCode;
225 bool m_contactEndpointHasBeenSet = false;
226 bool m_statusHasBeenSet = false;
227 bool m_protocolHasBeenSet = false;
228 bool m_nameHasBeenSet = false;
229 bool m_arnHasBeenSet = false;
230 bool m_createdAtHasBeenSet = false;
231 bool m_locationHasBeenSet = false;
232 bool m_resourceTypeHasBeenSet = false;
233 bool m_supportCodeHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace Lightsail
238} // namespace Aws
ContactProtocol GetProtocol() const
const Aws::String & GetName() const
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API ContactMethod(Aws::Utils::Json::JsonView jsonValue)
void SetContactEndpoint(ContactEndpointT &&value)
ContactMethod & WithName(NameT &&value)
void SetCreatedAt(CreatedAtT &&value)
ContactMethod & WithResourceType(ResourceType value)
AWS_LIGHTSAIL_API ContactMethod()=default
AWS_LIGHTSAIL_API ContactMethod & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSupportCode() const
ContactMethod & WithCreatedAt(CreatedAtT &&value)
ContactMethod & WithLocation(LocationT &&value)
ContactMethod & WithContactEndpoint(ContactEndpointT &&value)
ContactMethodStatus GetStatus() const
ContactMethod & WithArn(ArnT &&value)
void SetStatus(ContactMethodStatus value)
void SetProtocol(ContactProtocol value)
ContactMethod & WithProtocol(ContactProtocol value)
ContactMethod & WithStatus(ContactMethodStatus value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetContactEndpoint() const
void SetResourceType(ResourceType value)
void SetLocation(LocationT &&value)
const ResourceLocation & GetLocation() const
ContactMethod & WithSupportCode(SupportCodeT &&value)
void SetSupportCode(SupportCodeT &&value)
const Aws::String & GetArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue