AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
CreateHostedZoneResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53/Route53_EXPORTS.h>
10#include <aws/route53/model/ChangeInfo.h>
11#include <aws/route53/model/DelegationSet.h>
12#include <aws/route53/model/HostedZone.h>
13#include <aws/route53/model/VPC.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Xml {
23class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace Route53 {
27namespace Model {
35 public:
36 AWS_ROUTE53_API CreateHostedZoneResult() = default;
39
41
44 inline const HostedZone& GetHostedZone() const { return m_hostedZone; }
45 template <typename HostedZoneT = HostedZone>
46 void SetHostedZone(HostedZoneT&& value) {
47 m_hostedZoneHasBeenSet = true;
48 m_hostedZone = std::forward<HostedZoneT>(value);
49 }
50 template <typename HostedZoneT = HostedZone>
51 CreateHostedZoneResult& WithHostedZone(HostedZoneT&& value) {
52 SetHostedZone(std::forward<HostedZoneT>(value));
53 return *this;
54 }
56
58
62 inline const ChangeInfo& GetChangeInfo() const { return m_changeInfo; }
63 template <typename ChangeInfoT = ChangeInfo>
64 void SetChangeInfo(ChangeInfoT&& value) {
65 m_changeInfoHasBeenSet = true;
66 m_changeInfo = std::forward<ChangeInfoT>(value);
67 }
68 template <typename ChangeInfoT = ChangeInfo>
69 CreateHostedZoneResult& WithChangeInfo(ChangeInfoT&& value) {
70 SetChangeInfo(std::forward<ChangeInfoT>(value));
71 return *this;
72 }
74
76
79 inline const DelegationSet& GetDelegationSet() const { return m_delegationSet; }
80 template <typename DelegationSetT = DelegationSet>
81 void SetDelegationSet(DelegationSetT&& value) {
82 m_delegationSetHasBeenSet = true;
83 m_delegationSet = std::forward<DelegationSetT>(value);
84 }
85 template <typename DelegationSetT = DelegationSet>
86 CreateHostedZoneResult& WithDelegationSet(DelegationSetT&& value) {
87 SetDelegationSet(std::forward<DelegationSetT>(value));
88 return *this;
89 }
91
93
97 inline const VPC& GetVPC() const { return m_vPC; }
98 template <typename VPCT = VPC>
99 void SetVPC(VPCT&& value) {
100 m_vPCHasBeenSet = true;
101 m_vPC = std::forward<VPCT>(value);
102 }
103 template <typename VPCT = VPC>
105 SetVPC(std::forward<VPCT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetLocation() const { return m_location; }
115 template <typename LocationT = Aws::String>
116 void SetLocation(LocationT&& value) {
117 m_locationHasBeenSet = true;
118 m_location = std::forward<LocationT>(value);
119 }
120 template <typename LocationT = Aws::String>
122 SetLocation(std::forward<LocationT>(value));
123 return *this;
124 }
126
128
129 inline const Aws::String& GetRequestId() const { return m_requestId; }
130 template <typename RequestIdT = Aws::String>
131 void SetRequestId(RequestIdT&& value) {
132 m_requestIdHasBeenSet = true;
133 m_requestId = std::forward<RequestIdT>(value);
134 }
135 template <typename RequestIdT = Aws::String>
137 SetRequestId(std::forward<RequestIdT>(value));
138 return *this;
139 }
141 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
142
143 private:
144 HostedZone m_hostedZone;
145
146 ChangeInfo m_changeInfo;
147
148 DelegationSet m_delegationSet;
149
150 VPC m_vPC;
151
152 Aws::String m_location;
153
154 Aws::String m_requestId;
155 Aws::Http::HttpResponseCode m_HttpResponseCode;
156 bool m_hostedZoneHasBeenSet = false;
157 bool m_changeInfoHasBeenSet = false;
158 bool m_delegationSetHasBeenSet = false;
159 bool m_vPCHasBeenSet = false;
160 bool m_locationHasBeenSet = false;
161 bool m_requestIdHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace Route53
166} // namespace Aws
CreateHostedZoneResult & WithRequestId(RequestIdT &&value)
AWS_ROUTE53_API CreateHostedZoneResult()=default
CreateHostedZoneResult & WithVPC(VPCT &&value)
CreateHostedZoneResult & WithDelegationSet(DelegationSetT &&value)
AWS_ROUTE53_API CreateHostedZoneResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateHostedZoneResult & WithLocation(LocationT &&value)
CreateHostedZoneResult & WithHostedZone(HostedZoneT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateHostedZoneResult & WithChangeInfo(ChangeInfoT &&value)
AWS_ROUTE53_API CreateHostedZoneResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument