AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Domain.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lightsail/model/ResourceLocation.h>
11#include <aws/lightsail/model/ResourceType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lightsail/model/RegisteredDomainDelegationInfo.h>
14#include <aws/lightsail/model/Tag.h>
15#include <aws/lightsail/model/DomainEntry.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Lightsail
29{
30namespace Model
31{
32
38 class Domain
39 {
40 public:
41 AWS_LIGHTSAIL_API Domain() = default;
42 AWS_LIGHTSAIL_API Domain(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LIGHTSAIL_API Domain& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template<typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
55 template<typename NameT = Aws::String>
56 Domain& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
58
60
64 inline const Aws::String& GetArn() const { return m_arn; }
65 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
66 template<typename ArnT = Aws::String>
67 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
68 template<typename ArnT = Aws::String>
69 Domain& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
71
73
78 inline const Aws::String& GetSupportCode() const { return m_supportCode; }
79 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
80 template<typename SupportCodeT = Aws::String>
81 void SetSupportCode(SupportCodeT&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::forward<SupportCodeT>(value); }
82 template<typename SupportCodeT = Aws::String>
83 Domain& WithSupportCode(SupportCodeT&& value) { SetSupportCode(std::forward<SupportCodeT>(value)); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
91 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
92 template<typename CreatedAtT = Aws::Utils::DateTime>
93 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
94 template<typename CreatedAtT = Aws::Utils::DateTime>
95 Domain& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
97
99
103 inline const ResourceLocation& GetLocation() const { return m_location; }
104 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
105 template<typename LocationT = ResourceLocation>
106 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
107 template<typename LocationT = ResourceLocation>
108 Domain& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
110
112
115 inline ResourceType GetResourceType() const { return m_resourceType; }
116 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
117 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
118 inline Domain& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
120
122
128 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 template<typename TagsT = Aws::Vector<Tag>>
131 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
132 template<typename TagsT = Aws::Vector<Tag>>
133 Domain& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
134 template<typename TagsT = Tag>
135 Domain& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
137
139
143 inline const Aws::Vector<DomainEntry>& GetDomainEntries() const { return m_domainEntries; }
144 inline bool DomainEntriesHasBeenSet() const { return m_domainEntriesHasBeenSet; }
145 template<typename DomainEntriesT = Aws::Vector<DomainEntry>>
146 void SetDomainEntries(DomainEntriesT&& value) { m_domainEntriesHasBeenSet = true; m_domainEntries = std::forward<DomainEntriesT>(value); }
147 template<typename DomainEntriesT = Aws::Vector<DomainEntry>>
148 Domain& WithDomainEntries(DomainEntriesT&& value) { SetDomainEntries(std::forward<DomainEntriesT>(value)); return *this;}
149 template<typename DomainEntriesT = DomainEntry>
150 Domain& AddDomainEntries(DomainEntriesT&& value) { m_domainEntriesHasBeenSet = true; m_domainEntries.emplace_back(std::forward<DomainEntriesT>(value)); return *this; }
152
154
158 inline const RegisteredDomainDelegationInfo& GetRegisteredDomainDelegationInfo() const { return m_registeredDomainDelegationInfo; }
159 inline bool RegisteredDomainDelegationInfoHasBeenSet() const { return m_registeredDomainDelegationInfoHasBeenSet; }
160 template<typename RegisteredDomainDelegationInfoT = RegisteredDomainDelegationInfo>
161 void SetRegisteredDomainDelegationInfo(RegisteredDomainDelegationInfoT&& value) { m_registeredDomainDelegationInfoHasBeenSet = true; m_registeredDomainDelegationInfo = std::forward<RegisteredDomainDelegationInfoT>(value); }
162 template<typename RegisteredDomainDelegationInfoT = RegisteredDomainDelegationInfo>
163 Domain& WithRegisteredDomainDelegationInfo(RegisteredDomainDelegationInfoT&& value) { SetRegisteredDomainDelegationInfo(std::forward<RegisteredDomainDelegationInfoT>(value)); return *this;}
165 private:
166
167 Aws::String m_name;
168 bool m_nameHasBeenSet = false;
169
170 Aws::String m_arn;
171 bool m_arnHasBeenSet = false;
172
173 Aws::String m_supportCode;
174 bool m_supportCodeHasBeenSet = 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::Vector<Tag> m_tags;
186 bool m_tagsHasBeenSet = false;
187
188 Aws::Vector<DomainEntry> m_domainEntries;
189 bool m_domainEntriesHasBeenSet = false;
190
191 RegisteredDomainDelegationInfo m_registeredDomainDelegationInfo;
192 bool m_registeredDomainDelegationInfoHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace Lightsail
197} // namespace Aws
Domain & WithSupportCode(SupportCodeT &&value)
Definition Domain.h:83
bool LocationHasBeenSet() const
Definition Domain.h:104
Domain & WithCreatedAt(CreatedAtT &&value)
Definition Domain.h:95
Domain & AddTags(TagsT &&value)
Definition Domain.h:135
void SetTags(TagsT &&value)
Definition Domain.h:131
Domain & AddDomainEntries(DomainEntriesT &&value)
Definition Domain.h:150
bool ArnHasBeenSet() const
Definition Domain.h:65
bool DomainEntriesHasBeenSet() const
Definition Domain.h:144
const Aws::String & GetArn() const
Definition Domain.h:64
bool TagsHasBeenSet() const
Definition Domain.h:129
void SetResourceType(ResourceType value)
Definition Domain.h:117
void SetDomainEntries(DomainEntriesT &&value)
Definition Domain.h:146
const RegisteredDomainDelegationInfo & GetRegisteredDomainDelegationInfo() const
Definition Domain.h:158
AWS_LIGHTSAIL_API Domain(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition Domain.h:54
bool ResourceTypeHasBeenSet() const
Definition Domain.h:116
Domain & WithArn(ArnT &&value)
Definition Domain.h:69
AWS_LIGHTSAIL_API Domain()=default
const Aws::String & GetName() const
Definition Domain.h:51
void SetLocation(LocationT &&value)
Definition Domain.h:106
ResourceType GetResourceType() const
Definition Domain.h:115
Domain & WithName(NameT &&value)
Definition Domain.h:56
const ResourceLocation & GetLocation() const
Definition Domain.h:103
Domain & WithDomainEntries(DomainEntriesT &&value)
Definition Domain.h:148
Domain & WithTags(TagsT &&value)
Definition Domain.h:133
void SetSupportCode(SupportCodeT &&value)
Definition Domain.h:81
bool SupportCodeHasBeenSet() const
Definition Domain.h:79
void SetCreatedAt(CreatedAtT &&value)
Definition Domain.h:93
Domain & WithLocation(LocationT &&value)
Definition Domain.h:108
bool NameHasBeenSet() const
Definition Domain.h:52
const Aws::Vector< Tag > & GetTags() const
Definition Domain.h:128
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Domain.h:90
AWS_LIGHTSAIL_API Domain & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< DomainEntry > & GetDomainEntries() const
Definition Domain.h:143
bool CreatedAtHasBeenSet() const
Definition Domain.h:91
void SetArn(ArnT &&value)
Definition Domain.h:67
Domain & WithRegisteredDomainDelegationInfo(RegisteredDomainDelegationInfoT &&value)
Definition Domain.h:163
const Aws::String & GetSupportCode() const
Definition Domain.h:78
bool RegisteredDomainDelegationInfoHasBeenSet() const
Definition Domain.h:159
Domain & WithResourceType(ResourceType value)
Definition Domain.h:118
void SetRegisteredDomainDelegationInfo(RegisteredDomainDelegationInfoT &&value)
Definition Domain.h:161
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue