AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateHostedZoneRequest.h
1
6#pragma once
7#include <aws/route53/Route53_EXPORTS.h>
8#include <aws/route53/Route53Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/route53/model/VPC.h>
11#include <aws/route53/model/HostedZoneConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Route53
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_ROUTE53_API CreateHostedZoneRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateHostedZone"; }
37
38 AWS_ROUTE53_API Aws::String SerializePayload() const override;
39
40
42
53 inline const Aws::String& GetName() const { return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 CreateHostedZoneRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
60
62
72 inline const VPC& GetVPC() const { return m_vPC; }
73 inline bool VPCHasBeenSet() const { return m_vPCHasBeenSet; }
74 template<typename VPCT = VPC>
75 void SetVPC(VPCT&& value) { m_vPCHasBeenSet = true; m_vPC = std::forward<VPCT>(value); }
76 template<typename VPCT = VPC>
77 CreateHostedZoneRequest& WithVPC(VPCT&& value) { SetVPC(std::forward<VPCT>(value)); return *this;}
79
81
89 inline const Aws::String& GetCallerReference() const { return m_callerReference; }
90 inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; }
91 template<typename CallerReferenceT = Aws::String>
92 void SetCallerReference(CallerReferenceT&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = std::forward<CallerReferenceT>(value); }
93 template<typename CallerReferenceT = Aws::String>
94 CreateHostedZoneRequest& WithCallerReference(CallerReferenceT&& value) { SetCallerReference(std::forward<CallerReferenceT>(value)); return *this;}
96
98
106 inline const HostedZoneConfig& GetHostedZoneConfig() const { return m_hostedZoneConfig; }
107 inline bool HostedZoneConfigHasBeenSet() const { return m_hostedZoneConfigHasBeenSet; }
108 template<typename HostedZoneConfigT = HostedZoneConfig>
109 void SetHostedZoneConfig(HostedZoneConfigT&& value) { m_hostedZoneConfigHasBeenSet = true; m_hostedZoneConfig = std::forward<HostedZoneConfigT>(value); }
110 template<typename HostedZoneConfigT = HostedZoneConfig>
111 CreateHostedZoneRequest& WithHostedZoneConfig(HostedZoneConfigT&& value) { SetHostedZoneConfig(std::forward<HostedZoneConfigT>(value)); return *this;}
113
115
125 inline const Aws::String& GetDelegationSetId() const { return m_delegationSetId; }
126 inline bool DelegationSetIdHasBeenSet() const { return m_delegationSetIdHasBeenSet; }
127 template<typename DelegationSetIdT = Aws::String>
128 void SetDelegationSetId(DelegationSetIdT&& value) { m_delegationSetIdHasBeenSet = true; m_delegationSetId = std::forward<DelegationSetIdT>(value); }
129 template<typename DelegationSetIdT = Aws::String>
130 CreateHostedZoneRequest& WithDelegationSetId(DelegationSetIdT&& value) { SetDelegationSetId(std::forward<DelegationSetIdT>(value)); return *this;}
132 private:
133
134 Aws::String m_name;
135 bool m_nameHasBeenSet = false;
136
137 VPC m_vPC;
138 bool m_vPCHasBeenSet = false;
139
140 Aws::String m_callerReference;
141 bool m_callerReferenceHasBeenSet = false;
142
143 HostedZoneConfig m_hostedZoneConfig;
144 bool m_hostedZoneConfigHasBeenSet = false;
145
146 Aws::String m_delegationSetId;
147 bool m_delegationSetIdHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace Route53
152} // 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