AWS SDK for C++  1.9.72
AWS SDK for C++
CreateLocalGatewayRouteTableVpcAssociationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateLocalGatewayRouteTableVpcAssociation"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetLocalGatewayRouteTableId() const{ return m_localGatewayRouteTableId; }
45 
49  inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; }
50 
54  inline void SetLocalGatewayRouteTableId(const Aws::String& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = value; }
55 
59  inline void SetLocalGatewayRouteTableId(Aws::String&& value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId = std::move(value); }
60 
64  inline void SetLocalGatewayRouteTableId(const char* value) { m_localGatewayRouteTableIdHasBeenSet = true; m_localGatewayRouteTableId.assign(value); }
65 
69  inline CreateLocalGatewayRouteTableVpcAssociationRequest& WithLocalGatewayRouteTableId(const Aws::String& value) { SetLocalGatewayRouteTableId(value); return *this;}
70 
74  inline CreateLocalGatewayRouteTableVpcAssociationRequest& WithLocalGatewayRouteTableId(Aws::String&& value) { SetLocalGatewayRouteTableId(std::move(value)); return *this;}
75 
79  inline CreateLocalGatewayRouteTableVpcAssociationRequest& WithLocalGatewayRouteTableId(const char* value) { SetLocalGatewayRouteTableId(value); return *this;}
80 
81 
85  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
86 
90  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
91 
95  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
96 
100  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
101 
105  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
106 
110  inline CreateLocalGatewayRouteTableVpcAssociationRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
111 
115  inline CreateLocalGatewayRouteTableVpcAssociationRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
116 
120  inline CreateLocalGatewayRouteTableVpcAssociationRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
121 
122 
126  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
127 
131  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
132 
136  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
137 
141  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
142 
146  inline CreateLocalGatewayRouteTableVpcAssociationRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
147 
151  inline CreateLocalGatewayRouteTableVpcAssociationRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
152 
156  inline CreateLocalGatewayRouteTableVpcAssociationRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
157 
161  inline CreateLocalGatewayRouteTableVpcAssociationRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
162 
163 
170  inline bool GetDryRun() const{ return m_dryRun; }
171 
178  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
179 
186  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
187 
194  inline CreateLocalGatewayRouteTableVpcAssociationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
195 
196  private:
197 
198  Aws::String m_localGatewayRouteTableId;
199  bool m_localGatewayRouteTableIdHasBeenSet;
200 
201  Aws::String m_vpcId;
202  bool m_vpcIdHasBeenSet;
203 
204  Aws::Vector<TagSpecification> m_tagSpecifications;
205  bool m_tagSpecificationsHasBeenSet;
206 
207  bool m_dryRun;
208  bool m_dryRunHasBeenSet;
209  };
210 
211 } // namespace Model
212 } // namespace EC2
213 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::WithTagSpecifications
CreateLocalGatewayRouteTableVpcAssociationRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:151
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::GetDryRun
bool GetDryRun() const
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:170
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::LocalGatewayRouteTableIdHasBeenSet
bool LocalGatewayRouteTableIdHasBeenSet() const
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:49
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::WithVpcId
CreateLocalGatewayRouteTableVpcAssociationRequest & WithVpcId(Aws::String &&value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:115
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::SetLocalGatewayRouteTableId
void SetLocalGatewayRouteTableId(Aws::String &&value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:59
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::SetLocalGatewayRouteTableId
void SetLocalGatewayRouteTableId(const Aws::String &value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:54
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:95
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:141
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:178
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::WithTagSpecifications
CreateLocalGatewayRouteTableVpcAssociationRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:146
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:126
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::CreateLocalGatewayRouteTableVpcAssociationRequest
CreateLocalGatewayRouteTableVpcAssociationRequest()
AWSVector.h
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:186
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::WithDryRun
CreateLocalGatewayRouteTableVpcAssociationRequest & WithDryRun(bool value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:194
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::AddTagSpecifications
CreateLocalGatewayRouteTableVpcAssociationRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:161
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::WithLocalGatewayRouteTableId
CreateLocalGatewayRouteTableVpcAssociationRequest & WithLocalGatewayRouteTableId(const Aws::String &value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:69
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::WithVpcId
CreateLocalGatewayRouteTableVpcAssociationRequest & WithVpcId(const Aws::String &value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:110
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:131
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::GetLocalGatewayRouteTableId
const Aws::String & GetLocalGatewayRouteTableId() const
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:44
EC2Request.h
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:32
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::GetVpcId
const Aws::String & GetVpcId() const
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:85
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::WithVpcId
CreateLocalGatewayRouteTableVpcAssociationRequest & WithVpcId(const char *value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:120
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::WithLocalGatewayRouteTableId
CreateLocalGatewayRouteTableVpcAssociationRequest & WithLocalGatewayRouteTableId(Aws::String &&value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:74
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::SetLocalGatewayRouteTableId
void SetLocalGatewayRouteTableId(const char *value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:64
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:90
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::AddTagSpecifications
CreateLocalGatewayRouteTableVpcAssociationRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:156
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::WithLocalGatewayRouteTableId
CreateLocalGatewayRouteTableVpcAssociationRequest & WithLocalGatewayRouteTableId(const char *value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::SetVpcId
void SetVpcId(const char *value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:105
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:136
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:100
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
EC2_EXPORTS.h
Aws::EC2::Model::CreateLocalGatewayRouteTableVpcAssociationRequest
Definition: CreateLocalGatewayRouteTableVpcAssociationRequest.h:24