AWS SDK for C++  1.9.129
AWS SDK for C++
AssociateTrunkInterfaceRequest.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 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "AssociateTrunkInterface"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetBranchInterfaceId() const{ return m_branchInterfaceId; }
44 
48  inline bool BranchInterfaceIdHasBeenSet() const { return m_branchInterfaceIdHasBeenSet; }
49 
53  inline void SetBranchInterfaceId(const Aws::String& value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId = value; }
54 
58  inline void SetBranchInterfaceId(Aws::String&& value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId = std::move(value); }
59 
63  inline void SetBranchInterfaceId(const char* value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId.assign(value); }
64 
68  inline AssociateTrunkInterfaceRequest& WithBranchInterfaceId(const Aws::String& value) { SetBranchInterfaceId(value); return *this;}
69 
73  inline AssociateTrunkInterfaceRequest& WithBranchInterfaceId(Aws::String&& value) { SetBranchInterfaceId(std::move(value)); return *this;}
74 
78  inline AssociateTrunkInterfaceRequest& WithBranchInterfaceId(const char* value) { SetBranchInterfaceId(value); return *this;}
79 
80 
84  inline const Aws::String& GetTrunkInterfaceId() const{ return m_trunkInterfaceId; }
85 
89  inline bool TrunkInterfaceIdHasBeenSet() const { return m_trunkInterfaceIdHasBeenSet; }
90 
94  inline void SetTrunkInterfaceId(const Aws::String& value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId = value; }
95 
99  inline void SetTrunkInterfaceId(Aws::String&& value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId = std::move(value); }
100 
104  inline void SetTrunkInterfaceId(const char* value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId.assign(value); }
105 
109  inline AssociateTrunkInterfaceRequest& WithTrunkInterfaceId(const Aws::String& value) { SetTrunkInterfaceId(value); return *this;}
110 
114  inline AssociateTrunkInterfaceRequest& WithTrunkInterfaceId(Aws::String&& value) { SetTrunkInterfaceId(std::move(value)); return *this;}
115 
119  inline AssociateTrunkInterfaceRequest& WithTrunkInterfaceId(const char* value) { SetTrunkInterfaceId(value); return *this;}
120 
121 
125  inline int GetVlanId() const{ return m_vlanId; }
126 
130  inline bool VlanIdHasBeenSet() const { return m_vlanIdHasBeenSet; }
131 
135  inline void SetVlanId(int value) { m_vlanIdHasBeenSet = true; m_vlanId = value; }
136 
140  inline AssociateTrunkInterfaceRequest& WithVlanId(int value) { SetVlanId(value); return *this;}
141 
142 
146  inline int GetGreKey() const{ return m_greKey; }
147 
151  inline bool GreKeyHasBeenSet() const { return m_greKeyHasBeenSet; }
152 
156  inline void SetGreKey(int value) { m_greKeyHasBeenSet = true; m_greKey = value; }
157 
161  inline AssociateTrunkInterfaceRequest& WithGreKey(int value) { SetGreKey(value); return *this;}
162 
163 
170  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
171 
178  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
179 
186  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
187 
194  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
195 
202  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
203 
210  inline AssociateTrunkInterfaceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
211 
218  inline AssociateTrunkInterfaceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
219 
226  inline AssociateTrunkInterfaceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
227 
228 
235  inline bool GetDryRun() const{ return m_dryRun; }
236 
243  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
244 
251  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
252 
259  inline AssociateTrunkInterfaceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
260 
261  private:
262 
263  Aws::String m_branchInterfaceId;
264  bool m_branchInterfaceIdHasBeenSet;
265 
266  Aws::String m_trunkInterfaceId;
267  bool m_trunkInterfaceIdHasBeenSet;
268 
269  int m_vlanId;
270  bool m_vlanIdHasBeenSet;
271 
272  int m_greKey;
273  bool m_greKeyHasBeenSet;
274 
275  Aws::String m_clientToken;
276  bool m_clientTokenHasBeenSet;
277 
278  bool m_dryRun;
279  bool m_dryRunHasBeenSet;
280  };
281 
282 } // namespace Model
283 } // namespace EC2
284 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::AssociateTrunkInterfaceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::AssociateTrunkInterfaceRequest::AssociateTrunkInterfaceRequest
AssociateTrunkInterfaceRequest()
Aws::EC2::Model::AssociateTrunkInterfaceRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: AssociateTrunkInterfaceRequest.h:170
Aws::EC2::Model::AssociateTrunkInterfaceRequest::VlanIdHasBeenSet
bool VlanIdHasBeenSet() const
Definition: AssociateTrunkInterfaceRequest.h:130
Aws::EC2::Model::AssociateTrunkInterfaceRequest::SetBranchInterfaceId
void SetBranchInterfaceId(Aws::String &&value)
Definition: AssociateTrunkInterfaceRequest.h:58
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AssociateTrunkInterfaceRequest::SetTrunkInterfaceId
void SetTrunkInterfaceId(const char *value)
Definition: AssociateTrunkInterfaceRequest.h:104
Aws::EC2::Model::AssociateTrunkInterfaceRequest::SetTrunkInterfaceId
void SetTrunkInterfaceId(Aws::String &&value)
Definition: AssociateTrunkInterfaceRequest.h:99
Aws::EC2::Model::AssociateTrunkInterfaceRequest::GetTrunkInterfaceId
const Aws::String & GetTrunkInterfaceId() const
Definition: AssociateTrunkInterfaceRequest.h:84
Aws::EC2::Model::AssociateTrunkInterfaceRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: AssociateTrunkInterfaceRequest.h:178
Aws::EC2::Model::AssociateTrunkInterfaceRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: AssociateTrunkInterfaceRequest.h:194
Aws::EC2::Model::AssociateTrunkInterfaceRequest::SetBranchInterfaceId
void SetBranchInterfaceId(const char *value)
Definition: AssociateTrunkInterfaceRequest.h:63
Aws::EC2::Model::AssociateTrunkInterfaceRequest::SetClientToken
void SetClientToken(const char *value)
Definition: AssociateTrunkInterfaceRequest.h:202
Aws::EC2::Model::AssociateTrunkInterfaceRequest::WithGreKey
AssociateTrunkInterfaceRequest & WithGreKey(int value)
Definition: AssociateTrunkInterfaceRequest.h:161
Aws::EC2::Model::AssociateTrunkInterfaceRequest::GetDryRun
bool GetDryRun() const
Definition: AssociateTrunkInterfaceRequest.h:235
Aws::EC2::Model::AssociateTrunkInterfaceRequest::WithTrunkInterfaceId
AssociateTrunkInterfaceRequest & WithTrunkInterfaceId(const Aws::String &value)
Definition: AssociateTrunkInterfaceRequest.h:109
Aws::EC2::Model::AssociateTrunkInterfaceRequest::SetTrunkInterfaceId
void SetTrunkInterfaceId(const Aws::String &value)
Definition: AssociateTrunkInterfaceRequest.h:94
Aws::EC2::Model::AssociateTrunkInterfaceRequest::WithTrunkInterfaceId
AssociateTrunkInterfaceRequest & WithTrunkInterfaceId(const char *value)
Definition: AssociateTrunkInterfaceRequest.h:119
EC2Request.h
Aws::EC2::Model::AssociateTrunkInterfaceRequest::SetGreKey
void SetGreKey(int value)
Definition: AssociateTrunkInterfaceRequest.h:156
Aws::EC2::Model::AssociateTrunkInterfaceRequest::SetBranchInterfaceId
void SetBranchInterfaceId(const Aws::String &value)
Definition: AssociateTrunkInterfaceRequest.h:53
AWSString.h
Aws::EC2::Model::AssociateTrunkInterfaceRequest::BranchInterfaceIdHasBeenSet
bool BranchInterfaceIdHasBeenSet() const
Definition: AssociateTrunkInterfaceRequest.h:48
Aws::EC2::Model::AssociateTrunkInterfaceRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: AssociateTrunkInterfaceRequest.h:186
Aws::EC2::Model::AssociateTrunkInterfaceRequest::WithTrunkInterfaceId
AssociateTrunkInterfaceRequest & WithTrunkInterfaceId(Aws::String &&value)
Definition: AssociateTrunkInterfaceRequest.h:114
Aws::EC2::Model::AssociateTrunkInterfaceRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: AssociateTrunkInterfaceRequest.h:243
Aws::EC2::Model::AssociateTrunkInterfaceRequest
Definition: AssociateTrunkInterfaceRequest.h:23
Aws::EC2::Model::AssociateTrunkInterfaceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateTrunkInterfaceRequest.h:31
Aws::EC2::Model::AssociateTrunkInterfaceRequest::GetGreKey
int GetGreKey() const
Definition: AssociateTrunkInterfaceRequest.h:146
Aws::EC2::Model::AssociateTrunkInterfaceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AssociateTrunkInterfaceRequest::GreKeyHasBeenSet
bool GreKeyHasBeenSet() const
Definition: AssociateTrunkInterfaceRequest.h:151
Aws::EC2::Model::AssociateTrunkInterfaceRequest::SetVlanId
void SetVlanId(int value)
Definition: AssociateTrunkInterfaceRequest.h:135
Aws::EC2::Model::AssociateTrunkInterfaceRequest::WithClientToken
AssociateTrunkInterfaceRequest & WithClientToken(Aws::String &&value)
Definition: AssociateTrunkInterfaceRequest.h:218
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::AssociateTrunkInterfaceRequest::WithClientToken
AssociateTrunkInterfaceRequest & WithClientToken(const Aws::String &value)
Definition: AssociateTrunkInterfaceRequest.h:210
Aws::EC2::Model::AssociateTrunkInterfaceRequest::GetBranchInterfaceId
const Aws::String & GetBranchInterfaceId() const
Definition: AssociateTrunkInterfaceRequest.h:43
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::AssociateTrunkInterfaceRequest::GetVlanId
int GetVlanId() const
Definition: AssociateTrunkInterfaceRequest.h:125
Aws::EC2::Model::AssociateTrunkInterfaceRequest::WithBranchInterfaceId
AssociateTrunkInterfaceRequest & WithBranchInterfaceId(Aws::String &&value)
Definition: AssociateTrunkInterfaceRequest.h:73
Aws::EC2::Model::AssociateTrunkInterfaceRequest::WithVlanId
AssociateTrunkInterfaceRequest & WithVlanId(int value)
Definition: AssociateTrunkInterfaceRequest.h:140
Aws::EC2::Model::AssociateTrunkInterfaceRequest::TrunkInterfaceIdHasBeenSet
bool TrunkInterfaceIdHasBeenSet() const
Definition: AssociateTrunkInterfaceRequest.h:89
Aws::EC2::Model::AssociateTrunkInterfaceRequest::WithClientToken
AssociateTrunkInterfaceRequest & WithClientToken(const char *value)
Definition: AssociateTrunkInterfaceRequest.h:226
Aws::EC2::Model::AssociateTrunkInterfaceRequest::WithDryRun
AssociateTrunkInterfaceRequest & WithDryRun(bool value)
Definition: AssociateTrunkInterfaceRequest.h:259
UUID.h
EC2_EXPORTS.h
Aws::EC2::Model::AssociateTrunkInterfaceRequest::WithBranchInterfaceId
AssociateTrunkInterfaceRequest & WithBranchInterfaceId(const char *value)
Definition: AssociateTrunkInterfaceRequest.h:78
Aws::EC2::Model::AssociateTrunkInterfaceRequest::WithBranchInterfaceId
AssociateTrunkInterfaceRequest & WithBranchInterfaceId(const Aws::String &value)
Definition: AssociateTrunkInterfaceRequest.h:68
Aws::EC2::Model::AssociateTrunkInterfaceRequest::SetDryRun
void SetDryRun(bool value)
Definition: AssociateTrunkInterfaceRequest.h:251