AWS SDK for C++  1.9.67
AWS SDK for C++
CreateTransitGatewayPrefixListReferenceRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CreateTransitGatewayPrefixListReference"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetTransitGatewayRouteTableId() const{ return m_transitGatewayRouteTableId; }
43 
47  inline bool TransitGatewayRouteTableIdHasBeenSet() const { return m_transitGatewayRouteTableIdHasBeenSet; }
48 
52  inline void SetTransitGatewayRouteTableId(const Aws::String& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = value; }
53 
57  inline void SetTransitGatewayRouteTableId(Aws::String&& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = std::move(value); }
58 
62  inline void SetTransitGatewayRouteTableId(const char* value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId.assign(value); }
63 
67  inline CreateTransitGatewayPrefixListReferenceRequest& WithTransitGatewayRouteTableId(const Aws::String& value) { SetTransitGatewayRouteTableId(value); return *this;}
68 
72  inline CreateTransitGatewayPrefixListReferenceRequest& WithTransitGatewayRouteTableId(Aws::String&& value) { SetTransitGatewayRouteTableId(std::move(value)); return *this;}
73 
77  inline CreateTransitGatewayPrefixListReferenceRequest& WithTransitGatewayRouteTableId(const char* value) { SetTransitGatewayRouteTableId(value); return *this;}
78 
79 
83  inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
84 
88  inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
89 
93  inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
94 
98  inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
99 
103  inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
104 
108  inline CreateTransitGatewayPrefixListReferenceRequest& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
109 
113  inline CreateTransitGatewayPrefixListReferenceRequest& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
114 
118  inline CreateTransitGatewayPrefixListReferenceRequest& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
119 
120 
124  inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
125 
129  inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
130 
134  inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
135 
139  inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
140 
144  inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
145 
149  inline CreateTransitGatewayPrefixListReferenceRequest& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;}
150 
154  inline CreateTransitGatewayPrefixListReferenceRequest& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;}
155 
159  inline CreateTransitGatewayPrefixListReferenceRequest& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;}
160 
161 
165  inline bool GetBlackhole() const{ return m_blackhole; }
166 
170  inline bool BlackholeHasBeenSet() const { return m_blackholeHasBeenSet; }
171 
175  inline void SetBlackhole(bool value) { m_blackholeHasBeenSet = true; m_blackhole = value; }
176 
180  inline CreateTransitGatewayPrefixListReferenceRequest& WithBlackhole(bool value) { SetBlackhole(value); return *this;}
181 
182 
189  inline bool GetDryRun() const{ return m_dryRun; }
190 
197  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
198 
205  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
206 
213  inline CreateTransitGatewayPrefixListReferenceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
214 
215  private:
216 
217  Aws::String m_transitGatewayRouteTableId;
218  bool m_transitGatewayRouteTableIdHasBeenSet;
219 
220  Aws::String m_prefixListId;
221  bool m_prefixListIdHasBeenSet;
222 
223  Aws::String m_transitGatewayAttachmentId;
224  bool m_transitGatewayAttachmentIdHasBeenSet;
225 
226  bool m_blackhole;
227  bool m_blackholeHasBeenSet;
228 
229  bool m_dryRun;
230  bool m_dryRunHasBeenSet;
231  };
232 
233 } // namespace Model
234 } // namespace EC2
235 } // namespace Aws
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(Aws::String &&value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:57
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::CreateTransitGatewayPrefixListReferenceRequest
CreateTransitGatewayPrefixListReferenceRequest()
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::WithDryRun
CreateTransitGatewayPrefixListReferenceRequest & WithDryRun(bool value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:213
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::GetDryRun
bool GetDryRun() const
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:189
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::WithTransitGatewayAttachmentId
CreateTransitGatewayPrefixListReferenceRequest & WithTransitGatewayAttachmentId(Aws::String &&value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:154
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:197
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::WithPrefixListId
CreateTransitGatewayPrefixListReferenceRequest & WithPrefixListId(const Aws::String &value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:108
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::WithPrefixListId
CreateTransitGatewayPrefixListReferenceRequest & WithPrefixListId(Aws::String &&value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:113
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::TransitGatewayRouteTableIdHasBeenSet
bool TransitGatewayRouteTableIdHasBeenSet() const
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:47
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::SetPrefixListId
void SetPrefixListId(const char *value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:103
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::WithTransitGatewayAttachmentId
CreateTransitGatewayPrefixListReferenceRequest & WithTransitGatewayAttachmentId(const Aws::String &value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:149
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::WithTransitGatewayRouteTableId
CreateTransitGatewayPrefixListReferenceRequest & WithTransitGatewayRouteTableId(const Aws::String &value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:67
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::WithPrefixListId
CreateTransitGatewayPrefixListReferenceRequest & WithPrefixListId(const char *value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:118
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:22
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::SetPrefixListId
void SetPrefixListId(const Aws::String &value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:93
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::PrefixListIdHasBeenSet
bool PrefixListIdHasBeenSet() const
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:88
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const Aws::String &value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:134
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const char *value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:144
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::WithTransitGatewayAttachmentId
CreateTransitGatewayPrefixListReferenceRequest & WithTransitGatewayAttachmentId(const char *value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:159
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::WithTransitGatewayRouteTableId
CreateTransitGatewayPrefixListReferenceRequest & WithTransitGatewayRouteTableId(Aws::String &&value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:72
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:205
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const Aws::String &value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:52
EC2Request.h
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::GetBlackhole
bool GetBlackhole() const
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:165
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::SetBlackhole
void SetBlackhole(bool value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:175
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::SetPrefixListId
void SetPrefixListId(Aws::String &&value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:98
AWSString.h
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::TransitGatewayAttachmentIdHasBeenSet
bool TransitGatewayAttachmentIdHasBeenSet() const
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:129
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(Aws::String &&value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:139
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::GetPrefixListId
const Aws::String & GetPrefixListId() const
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:83
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::SetTransitGatewayRouteTableId
void SetTransitGatewayRouteTableId(const char *value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:62
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::WithBlackhole
CreateTransitGatewayPrefixListReferenceRequest & WithBlackhole(bool value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:180
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::GetTransitGatewayAttachmentId
const Aws::String & GetTransitGatewayAttachmentId() const
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:124
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:30
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::GetTransitGatewayRouteTableId
const Aws::String & GetTransitGatewayRouteTableId() const
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:42
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::BlackholeHasBeenSet
bool BlackholeHasBeenSet() const
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:170
Aws::EC2::EC2Request
Definition: EC2Request.h:17
EC2_EXPORTS.h
Aws::EC2::Model::CreateTransitGatewayPrefixListReferenceRequest::WithTransitGatewayRouteTableId
CreateTransitGatewayPrefixListReferenceRequest & WithTransitGatewayRouteTableId(const char *value)
Definition: CreateTransitGatewayPrefixListReferenceRequest.h:77