AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContactMethod.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/model/ContactMethodStatus.h>
10#include <aws/lightsail/model/ContactProtocol.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/lightsail/model/ResourceLocation.h>
13#include <aws/lightsail/model/ResourceType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Lightsail
27{
28namespace Model
29{
30
40 {
41 public:
42 AWS_LIGHTSAIL_API ContactMethod();
43 AWS_LIGHTSAIL_API ContactMethod(Aws::Utils::Json::JsonView jsonValue);
44 AWS_LIGHTSAIL_API ContactMethod& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const Aws::String& GetContactEndpoint() const{ return m_contactEndpoint; }
54 inline bool ContactEndpointHasBeenSet() const { return m_contactEndpointHasBeenSet; }
55 inline void SetContactEndpoint(const Aws::String& value) { m_contactEndpointHasBeenSet = true; m_contactEndpoint = value; }
56 inline void SetContactEndpoint(Aws::String&& value) { m_contactEndpointHasBeenSet = true; m_contactEndpoint = std::move(value); }
57 inline void SetContactEndpoint(const char* value) { m_contactEndpointHasBeenSet = true; m_contactEndpoint.assign(value); }
58 inline ContactMethod& WithContactEndpoint(const Aws::String& value) { SetContactEndpoint(value); return *this;}
59 inline ContactMethod& WithContactEndpoint(Aws::String&& value) { SetContactEndpoint(std::move(value)); return *this;}
60 inline ContactMethod& WithContactEndpoint(const char* value) { SetContactEndpoint(value); return *this;}
62
64
72 inline const ContactMethodStatus& GetStatus() const{ return m_status; }
73 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
74 inline void SetStatus(const ContactMethodStatus& value) { m_statusHasBeenSet = true; m_status = value; }
75 inline void SetStatus(ContactMethodStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
76 inline ContactMethod& WithStatus(const ContactMethodStatus& value) { SetStatus(value); return *this;}
77 inline ContactMethod& WithStatus(ContactMethodStatus&& value) { SetStatus(std::move(value)); return *this;}
79
81
85 inline const ContactProtocol& GetProtocol() const{ return m_protocol; }
86 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
87 inline void SetProtocol(const ContactProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
88 inline void SetProtocol(ContactProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
89 inline ContactMethod& WithProtocol(const ContactProtocol& value) { SetProtocol(value); return *this;}
90 inline ContactMethod& WithProtocol(ContactProtocol&& value) { SetProtocol(std::move(value)); return *this;}
92
94
97 inline const Aws::String& GetName() const{ return m_name; }
98 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
99 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
100 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
101 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
102 inline ContactMethod& WithName(const Aws::String& value) { SetName(value); return *this;}
103 inline ContactMethod& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
104 inline ContactMethod& WithName(const char* value) { SetName(value); return *this;}
106
108
111 inline const Aws::String& GetArn() const{ return m_arn; }
112 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
113 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
114 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
115 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
116 inline ContactMethod& WithArn(const Aws::String& value) { SetArn(value); return *this;}
117 inline ContactMethod& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
118 inline ContactMethod& WithArn(const char* value) { SetArn(value); return *this;}
120
122
125 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
126 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
127 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
128 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
129 inline ContactMethod& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
130 inline ContactMethod& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
132
134
138 inline const ResourceLocation& GetLocation() const{ return m_location; }
139 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
140 inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
141 inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
142 inline ContactMethod& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
143 inline ContactMethod& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
145
147
150 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
151 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
152 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
153 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
154 inline ContactMethod& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
155 inline ContactMethod& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
157
159
164 inline const Aws::String& GetSupportCode() const{ return m_supportCode; }
165 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
166 inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; }
167 inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); }
168 inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); }
169 inline ContactMethod& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;}
170 inline ContactMethod& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;}
171 inline ContactMethod& WithSupportCode(const char* value) { SetSupportCode(value); return *this;}
173 private:
174
175 Aws::String m_contactEndpoint;
176 bool m_contactEndpointHasBeenSet = false;
177
178 ContactMethodStatus m_status;
179 bool m_statusHasBeenSet = false;
180
181 ContactProtocol m_protocol;
182 bool m_protocolHasBeenSet = false;
183
184 Aws::String m_name;
185 bool m_nameHasBeenSet = false;
186
187 Aws::String m_arn;
188 bool m_arnHasBeenSet = false;
189
190 Aws::Utils::DateTime m_createdAt;
191 bool m_createdAtHasBeenSet = false;
192
193 ResourceLocation m_location;
194 bool m_locationHasBeenSet = false;
195
196 ResourceType m_resourceType;
197 bool m_resourceTypeHasBeenSet = false;
198
199 Aws::String m_supportCode;
200 bool m_supportCodeHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace Lightsail
205} // namespace Aws
void SetStatus(const ContactMethodStatus &value)
const Aws::String & GetName() const
void SetLocation(ResourceLocation &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API ContactMethod(Aws::Utils::Json::JsonView jsonValue)
ContactMethod & WithStatus(const ContactMethodStatus &value)
void SetResourceType(const ResourceType &value)
ContactMethod & WithArn(const Aws::String &value)
ContactMethod & WithProtocol(const ContactProtocol &value)
void SetContactEndpoint(Aws::String &&value)
ContactMethod & WithName(const char *value)
ContactMethod & WithSupportCode(const char *value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetSupportCode(const char *value)
ContactMethod & WithName(const Aws::String &value)
ContactMethod & WithProtocol(ContactProtocol &&value)
const ContactMethodStatus & GetStatus() const
void SetArn(const Aws::String &value)
ContactMethod & WithResourceType(const ResourceType &value)
ContactMethod & WithResourceType(ResourceType &&value)
void SetContactEndpoint(const Aws::String &value)
ContactMethod & WithLocation(const ResourceLocation &value)
ContactMethod & WithCreatedAt(const Aws::Utils::DateTime &value)
ContactMethod & WithSupportCode(const Aws::String &value)
void SetProtocol(const ContactProtocol &value)
void SetResourceType(ResourceType &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetArn(Aws::String &&value)
ContactMethod & WithArn(Aws::String &&value)
ContactMethod & WithContactEndpoint(const Aws::String &value)
void SetLocation(const ResourceLocation &value)
ContactMethod & WithSupportCode(Aws::String &&value)
void SetSupportCode(Aws::String &&value)
AWS_LIGHTSAIL_API ContactMethod & operator=(Aws::Utils::Json::JsonView jsonValue)
ContactMethod & WithStatus(ContactMethodStatus &&value)
const Aws::String & GetSupportCode() const
void SetStatus(ContactMethodStatus &&value)
void SetProtocol(ContactProtocol &&value)
ContactMethod & WithCreatedAt(Aws::Utils::DateTime &&value)
ContactMethod & WithArn(const char *value)
ContactMethod & WithContactEndpoint(const char *value)
void SetContactEndpoint(const char *value)
ContactMethod & WithName(Aws::String &&value)
ContactMethod & WithContactEndpoint(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const ResourceType & GetResourceType() const
const Aws::String & GetContactEndpoint() const
void SetSupportCode(const Aws::String &value)
void SetName(Aws::String &&value)
void SetName(const Aws::String &value)
const ContactProtocol & GetProtocol() const
const ResourceLocation & GetLocation() const
ContactMethod & WithLocation(ResourceLocation &&value)
const Aws::String & GetArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue