AWS SDK for C++  1.9.40
AWS SDK for C++
AssociateVPCWithHostedZoneRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/route53/model/VPC.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Route53
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "AssociateVPCWithHostedZone"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
45  inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; }
46 
52  inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; }
53 
59  inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
60 
66  inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::move(value); }
67 
73  inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); }
74 
80  inline AssociateVPCWithHostedZoneRequest& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;}
81 
87  inline AssociateVPCWithHostedZoneRequest& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(std::move(value)); return *this;}
88 
94  inline AssociateVPCWithHostedZoneRequest& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;}
95 
96 
101  inline const VPC& GetVPC() const{ return m_vPC; }
102 
107  inline bool VPCHasBeenSet() const { return m_vPCHasBeenSet; }
108 
113  inline void SetVPC(const VPC& value) { m_vPCHasBeenSet = true; m_vPC = value; }
114 
119  inline void SetVPC(VPC&& value) { m_vPCHasBeenSet = true; m_vPC = std::move(value); }
120 
125  inline AssociateVPCWithHostedZoneRequest& WithVPC(const VPC& value) { SetVPC(value); return *this;}
126 
131  inline AssociateVPCWithHostedZoneRequest& WithVPC(VPC&& value) { SetVPC(std::move(value)); return *this;}
132 
133 
137  inline const Aws::String& GetComment() const{ return m_comment; }
138 
142  inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
143 
147  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
148 
152  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
153 
157  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
158 
162  inline AssociateVPCWithHostedZoneRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
163 
167  inline AssociateVPCWithHostedZoneRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
168 
172  inline AssociateVPCWithHostedZoneRequest& WithComment(const char* value) { SetComment(value); return *this;}
173 
174  private:
175 
176  Aws::String m_hostedZoneId;
177  bool m_hostedZoneIdHasBeenSet;
178 
179  VPC m_vPC;
180  bool m_vPCHasBeenSet;
181 
182  Aws::String m_comment;
183  bool m_commentHasBeenSet;
184  };
185 
186 } // namespace Model
187 } // namespace Route53
188 } // namespace Aws
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::SetComment
void SetComment(const char *value)
Definition: AssociateVPCWithHostedZoneRequest.h:157
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::SetComment
void SetComment(Aws::String &&value)
Definition: AssociateVPCWithHostedZoneRequest.h:152
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::VPCHasBeenSet
bool VPCHasBeenSet() const
Definition: AssociateVPCWithHostedZoneRequest.h:107
Aws::Route53::Route53Request
Definition: Route53Request.h:17
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::SetVPC
void SetVPC(VPC &&value)
Definition: AssociateVPCWithHostedZoneRequest.h:119
Route53Request.h
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::WithVPC
AssociateVPCWithHostedZoneRequest & WithVPC(const VPC &value)
Definition: AssociateVPCWithHostedZoneRequest.h:125
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::WithComment
AssociateVPCWithHostedZoneRequest & WithComment(Aws::String &&value)
Definition: AssociateVPCWithHostedZoneRequest.h:167
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::HostedZoneIdHasBeenSet
bool HostedZoneIdHasBeenSet() const
Definition: AssociateVPCWithHostedZoneRequest.h:52
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::SetHostedZoneId
void SetHostedZoneId(const Aws::String &value)
Definition: AssociateVPCWithHostedZoneRequest.h:59
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::WithVPC
AssociateVPCWithHostedZoneRequest & WithVPC(VPC &&value)
Definition: AssociateVPCWithHostedZoneRequest.h:131
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest
Definition: AssociateVPCWithHostedZoneRequest.h:27
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::GetHostedZoneId
const Aws::String & GetHostedZoneId() const
Definition: AssociateVPCWithHostedZoneRequest.h:45
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::SetComment
void SetComment(const Aws::String &value)
Definition: AssociateVPCWithHostedZoneRequest.h:147
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::AssociateVPCWithHostedZoneRequest
AssociateVPCWithHostedZoneRequest()
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::SetHostedZoneId
void SetHostedZoneId(Aws::String &&value)
Definition: AssociateVPCWithHostedZoneRequest.h:66
AWSString.h
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::GetComment
const Aws::String & GetComment() const
Definition: AssociateVPCWithHostedZoneRequest.h:137
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::SetVPC
void SetVPC(const VPC &value)
Definition: AssociateVPCWithHostedZoneRequest.h:113
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::SetHostedZoneId
void SetHostedZoneId(const char *value)
Definition: AssociateVPCWithHostedZoneRequest.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::WithHostedZoneId
AssociateVPCWithHostedZoneRequest & WithHostedZoneId(Aws::String &&value)
Definition: AssociateVPCWithHostedZoneRequest.h:87
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::GetVPC
const VPC & GetVPC() const
Definition: AssociateVPCWithHostedZoneRequest.h:101
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateVPCWithHostedZoneRequest.h:35
Aws::Route53::Model::VPC
Definition: VPC.h:33
Route53_EXPORTS.h
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::WithHostedZoneId
AssociateVPCWithHostedZoneRequest & WithHostedZoneId(const char *value)
Definition: AssociateVPCWithHostedZoneRequest.h:94
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::WithHostedZoneId
AssociateVPCWithHostedZoneRequest & WithHostedZoneId(const Aws::String &value)
Definition: AssociateVPCWithHostedZoneRequest.h:80
VPC.h
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::WithComment
AssociateVPCWithHostedZoneRequest & WithComment(const Aws::String &value)
Definition: AssociateVPCWithHostedZoneRequest.h:162
AWS_ROUTE53_API
#define AWS_ROUTE53_API
Definition: Route53_EXPORTS.h:28
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::WithComment
AssociateVPCWithHostedZoneRequest & WithComment(const char *value)
Definition: AssociateVPCWithHostedZoneRequest.h:172
Aws::Route53::Model::AssociateVPCWithHostedZoneRequest::CommentHasBeenSet
bool CommentHasBeenSet() const
Definition: AssociateVPCWithHostedZoneRequest.h:142