AWS SDK for C++  1.9.71
AWS SDK for C++
CreateTransitGatewayRouteTableRequest.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 "CreateTransitGatewayRouteTable"; }
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& GetTransitGatewayId() const{ return m_transitGatewayId; }
45 
49  inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
50 
54  inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
55 
59  inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
60 
64  inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
65 
69  inline CreateTransitGatewayRouteTableRequest& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;}
70 
74  inline CreateTransitGatewayRouteTableRequest& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
75 
79  inline CreateTransitGatewayRouteTableRequest& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
80 
81 
85  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
86 
90  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
91 
95  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
96 
100  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
101 
105  inline CreateTransitGatewayRouteTableRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
106 
110  inline CreateTransitGatewayRouteTableRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
111 
115  inline CreateTransitGatewayRouteTableRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
116 
120  inline CreateTransitGatewayRouteTableRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
121 
122 
129  inline bool GetDryRun() const{ return m_dryRun; }
130 
137  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
138 
145  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
146 
153  inline CreateTransitGatewayRouteTableRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
154 
155  private:
156 
157  Aws::String m_transitGatewayId;
158  bool m_transitGatewayIdHasBeenSet;
159 
160  Aws::Vector<TagSpecification> m_tagSpecifications;
161  bool m_tagSpecificationsHasBeenSet;
162 
163  bool m_dryRun;
164  bool m_dryRunHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace EC2
169 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest
Definition: CreateTransitGatewayRouteTableRequest.h:24
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::SetTransitGatewayId
void SetTransitGatewayId(Aws::String &&value)
Definition: CreateTransitGatewayRouteTableRequest.h:59
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::GetTransitGatewayId
const Aws::String & GetTransitGatewayId() const
Definition: CreateTransitGatewayRouteTableRequest.h:44
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::WithTagSpecifications
CreateTransitGatewayRouteTableRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateTransitGatewayRouteTableRequest.h:105
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateTransitGatewayRouteTableRequest.h:95
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTransitGatewayRouteTableRequest.h:32
AWSVector.h
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateTransitGatewayRouteTableRequest.h:145
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::TransitGatewayIdHasBeenSet
bool TransitGatewayIdHasBeenSet() const
Definition: CreateTransitGatewayRouteTableRequest.h:49
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::WithTransitGatewayId
CreateTransitGatewayRouteTableRequest & WithTransitGatewayId(const char *value)
Definition: CreateTransitGatewayRouteTableRequest.h:79
EC2Request.h
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateTransitGatewayRouteTableRequest.h:137
AWSString.h
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::CreateTransitGatewayRouteTableRequest
CreateTransitGatewayRouteTableRequest()
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::WithTagSpecifications
CreateTransitGatewayRouteTableRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateTransitGatewayRouteTableRequest.h:110
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::AddTagSpecifications
CreateTransitGatewayRouteTableRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateTransitGatewayRouteTableRequest.h:120
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateTransitGatewayRouteTableRequest.h:90
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::WithTransitGatewayId
CreateTransitGatewayRouteTableRequest & WithTransitGatewayId(const Aws::String &value)
Definition: CreateTransitGatewayRouteTableRequest.h:69
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::SetTransitGatewayId
void SetTransitGatewayId(const char *value)
Definition: CreateTransitGatewayRouteTableRequest.h:64
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::WithDryRun
CreateTransitGatewayRouteTableRequest & WithDryRun(bool value)
Definition: CreateTransitGatewayRouteTableRequest.h:153
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateTransitGatewayRouteTableRequest.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::SetTransitGatewayId
void SetTransitGatewayId(const Aws::String &value)
Definition: CreateTransitGatewayRouteTableRequest.h:54
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::GetDryRun
bool GetDryRun() const
Definition: CreateTransitGatewayRouteTableRequest.h:129
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateTransitGatewayRouteTableRequest.h:100
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::WithTransitGatewayId
CreateTransitGatewayRouteTableRequest & WithTransitGatewayId(Aws::String &&value)
Definition: CreateTransitGatewayRouteTableRequest.h:74
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
EC2_EXPORTS.h
Aws::EC2::Model::CreateTransitGatewayRouteTableRequest::AddTagSpecifications
CreateTransitGatewayRouteTableRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateTransitGatewayRouteTableRequest.h:115