AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
58 inline CreateHostedZoneRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
59 inline CreateHostedZoneRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 inline CreateHostedZoneRequest& WithName(const char* value) { SetName(value); return *this;}
62
64
74 inline const VPC& GetVPC() const{ return m_vPC; }
75 inline bool VPCHasBeenSet() const { return m_vPCHasBeenSet; }
76 inline void SetVPC(const VPC& value) { m_vPCHasBeenSet = true; m_vPC = value; }
77 inline void SetVPC(VPC&& value) { m_vPCHasBeenSet = true; m_vPC = std::move(value); }
78 inline CreateHostedZoneRequest& WithVPC(const VPC& value) { SetVPC(value); return *this;}
79 inline CreateHostedZoneRequest& WithVPC(VPC&& value) { SetVPC(std::move(value)); return *this;}
81
83
91 inline const Aws::String& GetCallerReference() const{ return m_callerReference; }
92 inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; }
93 inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
94 inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = std::move(value); }
95 inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); }
96 inline CreateHostedZoneRequest& WithCallerReference(const Aws::String& value) { SetCallerReference(value); return *this;}
97 inline CreateHostedZoneRequest& WithCallerReference(Aws::String&& value) { SetCallerReference(std::move(value)); return *this;}
98 inline CreateHostedZoneRequest& WithCallerReference(const char* value) { SetCallerReference(value); return *this;}
100
102
110 inline const HostedZoneConfig& GetHostedZoneConfig() const{ return m_hostedZoneConfig; }
111 inline bool HostedZoneConfigHasBeenSet() const { return m_hostedZoneConfigHasBeenSet; }
112 inline void SetHostedZoneConfig(const HostedZoneConfig& value) { m_hostedZoneConfigHasBeenSet = true; m_hostedZoneConfig = value; }
113 inline void SetHostedZoneConfig(HostedZoneConfig&& value) { m_hostedZoneConfigHasBeenSet = true; m_hostedZoneConfig = std::move(value); }
115 inline CreateHostedZoneRequest& WithHostedZoneConfig(HostedZoneConfig&& value) { SetHostedZoneConfig(std::move(value)); return *this;}
117
119
129 inline const Aws::String& GetDelegationSetId() const{ return m_delegationSetId; }
130 inline bool DelegationSetIdHasBeenSet() const { return m_delegationSetIdHasBeenSet; }
131 inline void SetDelegationSetId(const Aws::String& value) { m_delegationSetIdHasBeenSet = true; m_delegationSetId = value; }
132 inline void SetDelegationSetId(Aws::String&& value) { m_delegationSetIdHasBeenSet = true; m_delegationSetId = std::move(value); }
133 inline void SetDelegationSetId(const char* value) { m_delegationSetIdHasBeenSet = true; m_delegationSetId.assign(value); }
134 inline CreateHostedZoneRequest& WithDelegationSetId(const Aws::String& value) { SetDelegationSetId(value); return *this;}
135 inline CreateHostedZoneRequest& WithDelegationSetId(Aws::String&& value) { SetDelegationSetId(std::move(value)); return *this;}
136 inline CreateHostedZoneRequest& WithDelegationSetId(const char* value) { SetDelegationSetId(value); return *this;}
138 private:
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 VPC m_vPC;
144 bool m_vPCHasBeenSet = false;
145
146 Aws::String m_callerReference;
147 bool m_callerReferenceHasBeenSet = false;
148
149 HostedZoneConfig m_hostedZoneConfig;
150 bool m_hostedZoneConfigHasBeenSet = false;
151
152 Aws::String m_delegationSetId;
153 bool m_delegationSetIdHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace Route53
158} // namespace Aws
CreateHostedZoneRequest & WithDelegationSetId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateHostedZoneRequest & WithCallerReference(const Aws::String &value)
CreateHostedZoneRequest & WithName(const Aws::String &value)
CreateHostedZoneRequest & WithDelegationSetId(const Aws::String &value)
CreateHostedZoneRequest & WithCallerReference(const char *value)
CreateHostedZoneRequest & WithVPC(const VPC &value)
CreateHostedZoneRequest & WithHostedZoneConfig(const HostedZoneConfig &value)
CreateHostedZoneRequest & WithName(const char *value)
CreateHostedZoneRequest & WithHostedZoneConfig(HostedZoneConfig &&value)
CreateHostedZoneRequest & WithName(Aws::String &&value)
CreateHostedZoneRequest & WithDelegationSetId(const char *value)
CreateHostedZoneRequest & WithVPC(VPC &&value)
const HostedZoneConfig & GetHostedZoneConfig() const
void SetHostedZoneConfig(const HostedZoneConfig &value)
AWS_ROUTE53_API Aws::String SerializePayload() const override
CreateHostedZoneRequest & WithCallerReference(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String