AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ContactEndpointT = Aws::String>
56 void SetContactEndpoint(ContactEndpointT&& value) { m_contactEndpointHasBeenSet = true; m_contactEndpoint = std::forward<ContactEndpointT>(value); }
57 template<typename ContactEndpointT = Aws::String>
58 ContactMethod& WithContactEndpoint(ContactEndpointT&& value) { SetContactEndpoint(std::forward<ContactEndpointT>(value)); return *this;}
60
62
70 inline ContactMethodStatus GetStatus() const { return m_status; }
71 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
72 inline void SetStatus(ContactMethodStatus value) { m_statusHasBeenSet = true; m_status = value; }
73 inline ContactMethod& WithStatus(ContactMethodStatus value) { SetStatus(value); return *this;}
75
77
81 inline ContactProtocol GetProtocol() const { return m_protocol; }
82 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
83 inline void SetProtocol(ContactProtocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
84 inline ContactMethod& WithProtocol(ContactProtocol value) { SetProtocol(value); return *this;}
86
88
91 inline const Aws::String& GetName() const { return m_name; }
92 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 template<typename NameT = Aws::String>
94 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
95 template<typename NameT = Aws::String>
96 ContactMethod& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
98
100
103 inline const Aws::String& GetArn() const { return m_arn; }
104 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
105 template<typename ArnT = Aws::String>
106 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
107 template<typename ArnT = Aws::String>
108 ContactMethod& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
116 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
117 template<typename CreatedAtT = Aws::Utils::DateTime>
118 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
119 template<typename CreatedAtT = Aws::Utils::DateTime>
120 ContactMethod& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
122
124
128 inline const ResourceLocation& GetLocation() const { return m_location; }
129 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
130 template<typename LocationT = ResourceLocation>
131 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
132 template<typename LocationT = ResourceLocation>
133 ContactMethod& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
135
137
140 inline ResourceType GetResourceType() const { return m_resourceType; }
141 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
142 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
143 inline ContactMethod& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
145
147
152 inline const Aws::String& GetSupportCode() const { return m_supportCode; }
153 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
154 template<typename SupportCodeT = Aws::String>
155 void SetSupportCode(SupportCodeT&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::forward<SupportCodeT>(value); }
156 template<typename SupportCodeT = Aws::String>
157 ContactMethod& WithSupportCode(SupportCodeT&& value) { SetSupportCode(std::forward<SupportCodeT>(value)); return *this;}
159 private:
160
161 Aws::String m_contactEndpoint;
162 bool m_contactEndpointHasBeenSet = false;
163
165 bool m_statusHasBeenSet = false;
166
168 bool m_protocolHasBeenSet = false;
169
170 Aws::String m_name;
171 bool m_nameHasBeenSet = false;
172
173 Aws::String m_arn;
174 bool m_arnHasBeenSet = false;
175
176 Aws::Utils::DateTime m_createdAt{};
177 bool m_createdAtHasBeenSet = false;
178
179 ResourceLocation m_location;
180 bool m_locationHasBeenSet = false;
181
182 ResourceType m_resourceType{ResourceType::NOT_SET};
183 bool m_resourceTypeHasBeenSet = false;
184
185 Aws::String m_supportCode;
186 bool m_supportCodeHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace Lightsail
191} // 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