AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
AssociateHostedZoneResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/route53globalresolver/Route53GlobalResolver_EXPORTS.h>
11#include <aws/route53globalresolver/model/HostedZoneAssociationStatus.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Route53GlobalResolver {
25namespace Model {
27 public:
28 AWS_ROUTE53GLOBALRESOLVER_API AssociateHostedZoneResult() = default;
30 AWS_ROUTE53GLOBALRESOLVER_API AssociateHostedZoneResult& operator=(
32
34
37 inline const Aws::String& GetId() const { return m_id; }
38 template <typename IdT = Aws::String>
39 void SetId(IdT&& value) {
40 m_idHasBeenSet = true;
41 m_id = std::forward<IdT>(value);
42 }
43 template <typename IdT = Aws::String>
45 SetId(std::forward<IdT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
56 template <typename ResourceArnT = Aws::String>
57 void SetResourceArn(ResourceArnT&& value) {
58 m_resourceArnHasBeenSet = true;
59 m_resourceArn = std::forward<ResourceArnT>(value);
60 }
61 template <typename ResourceArnT = Aws::String>
63 SetResourceArn(std::forward<ResourceArnT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetHostedZoneId() const { return m_hostedZoneId; }
73 template <typename HostedZoneIdT = Aws::String>
74 void SetHostedZoneId(HostedZoneIdT&& value) {
75 m_hostedZoneIdHasBeenSet = true;
76 m_hostedZoneId = std::forward<HostedZoneIdT>(value);
77 }
78 template <typename HostedZoneIdT = Aws::String>
80 SetHostedZoneId(std::forward<HostedZoneIdT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::String& GetHostedZoneName() const { return m_hostedZoneName; }
91 template <typename HostedZoneNameT = Aws::String>
92 void SetHostedZoneName(HostedZoneNameT&& value) {
93 m_hostedZoneNameHasBeenSet = true;
94 m_hostedZoneName = std::forward<HostedZoneNameT>(value);
95 }
96 template <typename HostedZoneNameT = Aws::String>
98 SetHostedZoneName(std::forward<HostedZoneNameT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetName() const { return m_name; }
108 template <typename NameT = Aws::String>
109 void SetName(NameT&& value) {
110 m_nameHasBeenSet = true;
111 m_name = std::forward<NameT>(value);
112 }
113 template <typename NameT = Aws::String>
115 SetName(std::forward<NameT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
125 template <typename CreatedAtT = Aws::Utils::DateTime>
126 void SetCreatedAt(CreatedAtT&& value) {
127 m_createdAtHasBeenSet = true;
128 m_createdAt = std::forward<CreatedAtT>(value);
129 }
130 template <typename CreatedAtT = Aws::Utils::DateTime>
132 SetCreatedAt(std::forward<CreatedAtT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
142 template <typename UpdatedAtT = Aws::Utils::DateTime>
143 void SetUpdatedAt(UpdatedAtT&& value) {
144 m_updatedAtHasBeenSet = true;
145 m_updatedAt = std::forward<UpdatedAtT>(value);
146 }
147 template <typename UpdatedAtT = Aws::Utils::DateTime>
149 SetUpdatedAt(std::forward<UpdatedAtT>(value));
150 return *this;
151 }
153
155
159 inline HostedZoneAssociationStatus GetStatus() const { return m_status; }
161 m_statusHasBeenSet = true;
162 m_status = value;
163 }
165 SetStatus(value);
166 return *this;
167 }
169
171
172 inline const Aws::String& GetRequestId() const { return m_requestId; }
173 template <typename RequestIdT = Aws::String>
174 void SetRequestId(RequestIdT&& value) {
175 m_requestIdHasBeenSet = true;
176 m_requestId = std::forward<RequestIdT>(value);
177 }
178 template <typename RequestIdT = Aws::String>
180 SetRequestId(std::forward<RequestIdT>(value));
181 return *this;
182 }
184 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
185
186 private:
187 Aws::String m_id;
188
189 Aws::String m_resourceArn;
190
191 Aws::String m_hostedZoneId;
192
193 Aws::String m_hostedZoneName;
194
195 Aws::String m_name;
196
197 Aws::Utils::DateTime m_createdAt{};
198
199 Aws::Utils::DateTime m_updatedAt{};
200
202
203 Aws::String m_requestId;
204 Aws::Http::HttpResponseCode m_HttpResponseCode;
205 bool m_idHasBeenSet = false;
206 bool m_resourceArnHasBeenSet = false;
207 bool m_hostedZoneIdHasBeenSet = false;
208 bool m_hostedZoneNameHasBeenSet = false;
209 bool m_nameHasBeenSet = false;
210 bool m_createdAtHasBeenSet = false;
211 bool m_updatedAtHasBeenSet = false;
212 bool m_statusHasBeenSet = false;
213 bool m_requestIdHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace Route53GlobalResolver
218} // namespace Aws
AssociateHostedZoneResult & WithHostedZoneName(HostedZoneNameT &&value)
AssociateHostedZoneResult & WithRequestId(RequestIdT &&value)
AssociateHostedZoneResult & WithResourceArn(ResourceArnT &&value)
AssociateHostedZoneResult & WithHostedZoneId(HostedZoneIdT &&value)
AWS_ROUTE53GLOBALRESOLVER_API AssociateHostedZoneResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ROUTE53GLOBALRESOLVER_API AssociateHostedZoneResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AssociateHostedZoneResult & WithUpdatedAt(UpdatedAtT &&value)
AssociateHostedZoneResult & WithCreatedAt(CreatedAtT &&value)
AWS_ROUTE53GLOBALRESOLVER_API AssociateHostedZoneResult()=default
AssociateHostedZoneResult & WithStatus(HostedZoneAssociationStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue