AWS SDK for C++  0.12.9
AWS SDK for C++
CreateHostedZoneRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 #include <aws/route53/model/VPC.h>
21 
22 namespace Aws
23 {
24 namespace Route53
25 {
26 namespace Model
27 {
28 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
61  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 
73  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
74 
85  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
86 
97  inline CreateHostedZoneRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
98 
109  inline CreateHostedZoneRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
110 
121  inline CreateHostedZoneRequest& WithName(const char* value) { SetName(value); return *this;}
122 
128  inline const VPC& GetVPC() const{ return m_vPC; }
129 
135  inline void SetVPC(const VPC& value) { m_vPCHasBeenSet = true; m_vPC = value; }
136 
142  inline void SetVPC(VPC&& value) { m_vPCHasBeenSet = true; m_vPC = value; }
143 
149  inline CreateHostedZoneRequest& WithVPC(const VPC& value) { SetVPC(value); return *this;}
150 
156  inline CreateHostedZoneRequest& WithVPC(VPC&& value) { SetVPC(value); return *this;}
157 
168  inline const Aws::String& GetCallerReference() const{ return m_callerReference; }
169 
180  inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
181 
192  inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
193 
204  inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); }
205 
216  inline CreateHostedZoneRequest& WithCallerReference(const Aws::String& value) { SetCallerReference(value); return *this;}
217 
228  inline CreateHostedZoneRequest& WithCallerReference(Aws::String&& value) { SetCallerReference(value); return *this;}
229 
240  inline CreateHostedZoneRequest& WithCallerReference(const char* value) { SetCallerReference(value); return *this;}
241 
245  inline const HostedZoneConfig& GetHostedZoneConfig() const{ return m_hostedZoneConfig; }
246 
250  inline void SetHostedZoneConfig(const HostedZoneConfig& value) { m_hostedZoneConfigHasBeenSet = true; m_hostedZoneConfig = value; }
251 
255  inline void SetHostedZoneConfig(HostedZoneConfig&& value) { m_hostedZoneConfigHasBeenSet = true; m_hostedZoneConfig = value; }
256 
260  inline CreateHostedZoneRequest& WithHostedZoneConfig(const HostedZoneConfig& value) { SetHostedZoneConfig(value); return *this;}
261 
265  inline CreateHostedZoneRequest& WithHostedZoneConfig(HostedZoneConfig&& value) { SetHostedZoneConfig(value); return *this;}
266 
271  inline const Aws::String& GetDelegationSetId() const{ return m_delegationSetId; }
272 
277  inline void SetDelegationSetId(const Aws::String& value) { m_delegationSetIdHasBeenSet = true; m_delegationSetId = value; }
278 
283  inline void SetDelegationSetId(Aws::String&& value) { m_delegationSetIdHasBeenSet = true; m_delegationSetId = value; }
284 
289  inline void SetDelegationSetId(const char* value) { m_delegationSetIdHasBeenSet = true; m_delegationSetId.assign(value); }
290 
295  inline CreateHostedZoneRequest& WithDelegationSetId(const Aws::String& value) { SetDelegationSetId(value); return *this;}
296 
301  inline CreateHostedZoneRequest& WithDelegationSetId(Aws::String&& value) { SetDelegationSetId(value); return *this;}
302 
307  inline CreateHostedZoneRequest& WithDelegationSetId(const char* value) { SetDelegationSetId(value); return *this;}
308 
309  private:
310  Aws::String m_name;
311  bool m_nameHasBeenSet;
312  VPC m_vPC;
313  bool m_vPCHasBeenSet;
314  Aws::String m_callerReference;
315  bool m_callerReferenceHasBeenSet;
316  HostedZoneConfig m_hostedZoneConfig;
317  bool m_hostedZoneConfigHasBeenSet;
318  Aws::String m_delegationSetId;
319  bool m_delegationSetIdHasBeenSet;
320  };
321 
322 } // namespace Model
323 } // namespace Route53
324 } // namespace Aws
CreateHostedZoneRequest & WithDelegationSetId(const Aws::String &value)
CreateHostedZoneRequest & WithHostedZoneConfig(HostedZoneConfig &&value)
const HostedZoneConfig & GetHostedZoneConfig() const
CreateHostedZoneRequest & WithCallerReference(const Aws::String &value)
CreateHostedZoneRequest & WithName(const char *value)
CreateHostedZoneRequest & WithVPC(const VPC &value)
CreateHostedZoneRequest & WithCallerReference(const char *value)
CreateHostedZoneRequest & WithVPC(VPC &&value)
CreateHostedZoneRequest & WithHostedZoneConfig(const HostedZoneConfig &value)
CreateHostedZoneRequest & WithDelegationSetId(Aws::String &&value)
CreateHostedZoneRequest & WithName(Aws::String &&value)
#define AWS_ROUTE53_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateHostedZoneRequest & WithName(const Aws::String &value)
void SetHostedZoneConfig(const HostedZoneConfig &value)
CreateHostedZoneRequest & WithCallerReference(Aws::String &&value)
CreateHostedZoneRequest & WithDelegationSetId(const char *value)
JSON (JavaScript Object Notation).