AWS SDK for C++  0.14.3
AWS SDK for C++
AssociateVPCWithHostedZoneRequest.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>
20 
21 namespace Aws
22 {
23 namespace Route53
24 {
25 namespace Model
26 {
27 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
43  inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; }
44 
50  inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
51 
57  inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
58 
64  inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); }
65 
71  inline AssociateVPCWithHostedZoneRequest& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;}
72 
78  inline AssociateVPCWithHostedZoneRequest& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(value); return *this;}
79 
85  inline AssociateVPCWithHostedZoneRequest& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;}
86 
90  inline const VPC& GetVPC() const{ return m_vPC; }
91 
95  inline void SetVPC(const VPC& value) { m_vPCHasBeenSet = true; m_vPC = value; }
96 
100  inline void SetVPC(VPC&& value) { m_vPCHasBeenSet = true; m_vPC = value; }
101 
105  inline AssociateVPCWithHostedZoneRequest& WithVPC(const VPC& value) { SetVPC(value); return *this;}
106 
110  inline AssociateVPCWithHostedZoneRequest& WithVPC(VPC&& value) { SetVPC(value); return *this;}
111 
116  inline const Aws::String& GetComment() const{ return m_comment; }
117 
122  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
123 
128  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
129 
134  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
135 
140  inline AssociateVPCWithHostedZoneRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
141 
146  inline AssociateVPCWithHostedZoneRequest& WithComment(Aws::String&& value) { SetComment(value); return *this;}
147 
152  inline AssociateVPCWithHostedZoneRequest& WithComment(const char* value) { SetComment(value); return *this;}
153 
154  private:
155  Aws::String m_hostedZoneId;
156  bool m_hostedZoneIdHasBeenSet;
157  VPC m_vPC;
158  bool m_vPCHasBeenSet;
159  Aws::String m_comment;
160  bool m_commentHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace Route53
165 } // namespace Aws
AssociateVPCWithHostedZoneRequest & WithHostedZoneId(const char *value)
AssociateVPCWithHostedZoneRequest & WithComment(const Aws::String &value)
AssociateVPCWithHostedZoneRequest & WithComment(Aws::String &&value)
AssociateVPCWithHostedZoneRequest & WithComment(const char *value)
AssociateVPCWithHostedZoneRequest & WithHostedZoneId(const Aws::String &value)
#define AWS_ROUTE53_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AssociateVPCWithHostedZoneRequest & WithVPC(VPC &&value)
AssociateVPCWithHostedZoneRequest & WithVPC(const VPC &value)
JSON (JavaScript Object Notation).
AssociateVPCWithHostedZoneRequest & WithHostedZoneId(Aws::String &&value)