AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateHostedZoneRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53/Route53Request.h>
9#include <aws/route53/Route53_EXPORTS.h>
10#include <aws/route53/model/HostedZoneConfig.h>
11#include <aws/route53/model/VPC.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Route53 {
17namespace Model {
18
26 public:
27 AWS_ROUTE53_API CreateHostedZoneRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateHostedZone"; }
34
35 AWS_ROUTE53_API Aws::String SerializePayload() const override;
36
38
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template <typename NameT = Aws::String>
52 void SetName(NameT&& value) {
53 m_nameHasBeenSet = true;
54 m_name = std::forward<NameT>(value);
55 }
56 template <typename NameT = Aws::String>
58 SetName(std::forward<NameT>(value));
59 return *this;
60 }
62
64
74 inline const VPC& GetVPC() const { return m_vPC; }
75 inline bool VPCHasBeenSet() const { return m_vPCHasBeenSet; }
76 template <typename VPCT = VPC>
77 void SetVPC(VPCT&& value) {
78 m_vPCHasBeenSet = true;
79 m_vPC = std::forward<VPCT>(value);
80 }
81 template <typename VPCT = VPC>
83 SetVPC(std::forward<VPCT>(value));
84 return *this;
85 }
87
89
97 inline const Aws::String& GetCallerReference() const { return m_callerReference; }
98 inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; }
99 template <typename CallerReferenceT = Aws::String>
100 void SetCallerReference(CallerReferenceT&& value) {
101 m_callerReferenceHasBeenSet = true;
102 m_callerReference = std::forward<CallerReferenceT>(value);
103 }
104 template <typename CallerReferenceT = Aws::String>
105 CreateHostedZoneRequest& WithCallerReference(CallerReferenceT&& value) {
106 SetCallerReference(std::forward<CallerReferenceT>(value));
107 return *this;
108 }
110
112
120 inline const HostedZoneConfig& GetHostedZoneConfig() const { return m_hostedZoneConfig; }
121 inline bool HostedZoneConfigHasBeenSet() const { return m_hostedZoneConfigHasBeenSet; }
122 template <typename HostedZoneConfigT = HostedZoneConfig>
123 void SetHostedZoneConfig(HostedZoneConfigT&& value) {
124 m_hostedZoneConfigHasBeenSet = true;
125 m_hostedZoneConfig = std::forward<HostedZoneConfigT>(value);
126 }
127 template <typename HostedZoneConfigT = HostedZoneConfig>
128 CreateHostedZoneRequest& WithHostedZoneConfig(HostedZoneConfigT&& value) {
129 SetHostedZoneConfig(std::forward<HostedZoneConfigT>(value));
130 return *this;
131 }
133
135
145 inline const Aws::String& GetDelegationSetId() const { return m_delegationSetId; }
146 inline bool DelegationSetIdHasBeenSet() const { return m_delegationSetIdHasBeenSet; }
147 template <typename DelegationSetIdT = Aws::String>
148 void SetDelegationSetId(DelegationSetIdT&& value) {
149 m_delegationSetIdHasBeenSet = true;
150 m_delegationSetId = std::forward<DelegationSetIdT>(value);
151 }
152 template <typename DelegationSetIdT = Aws::String>
153 CreateHostedZoneRequest& WithDelegationSetId(DelegationSetIdT&& value) {
154 SetDelegationSetId(std::forward<DelegationSetIdT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_name;
160
161 VPC m_vPC;
162
163 Aws::String m_callerReference;
164
165 HostedZoneConfig m_hostedZoneConfig;
166
167 Aws::String m_delegationSetId;
168 bool m_nameHasBeenSet = false;
169 bool m_vPCHasBeenSet = false;
170 bool m_callerReferenceHasBeenSet = false;
171 bool m_hostedZoneConfigHasBeenSet = false;
172 bool m_delegationSetIdHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace Route53
177} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateHostedZoneRequest & WithHostedZoneConfig(HostedZoneConfigT &&value)
AWS_ROUTE53_API CreateHostedZoneRequest()=default
CreateHostedZoneRequest & WithVPC(VPCT &&value)
CreateHostedZoneRequest & WithName(NameT &&value)
const HostedZoneConfig & GetHostedZoneConfig() const
CreateHostedZoneRequest & WithCallerReference(CallerReferenceT &&value)
AWS_ROUTE53_API Aws::String SerializePayload() const override
CreateHostedZoneRequest & WithDelegationSetId(DelegationSetIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String