AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociateTrunkInterfaceRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace 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_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetBranchInterfaceId() const{ return m_branchInterfaceId; }
45 inline bool BranchInterfaceIdHasBeenSet() const { return m_branchInterfaceIdHasBeenSet; }
46 inline void SetBranchInterfaceId(const Aws::String& value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId = value; }
47 inline void SetBranchInterfaceId(Aws::String&& value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId = std::move(value); }
48 inline void SetBranchInterfaceId(const char* value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId.assign(value); }
50 inline AssociateTrunkInterfaceRequest& WithBranchInterfaceId(Aws::String&& value) { SetBranchInterfaceId(std::move(value)); return *this;}
51 inline AssociateTrunkInterfaceRequest& WithBranchInterfaceId(const char* value) { SetBranchInterfaceId(value); return *this;}
53
55
58 inline const Aws::String& GetTrunkInterfaceId() const{ return m_trunkInterfaceId; }
59 inline bool TrunkInterfaceIdHasBeenSet() const { return m_trunkInterfaceIdHasBeenSet; }
60 inline void SetTrunkInterfaceId(const Aws::String& value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId = value; }
61 inline void SetTrunkInterfaceId(Aws::String&& value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId = std::move(value); }
62 inline void SetTrunkInterfaceId(const char* value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId.assign(value); }
64 inline AssociateTrunkInterfaceRequest& WithTrunkInterfaceId(Aws::String&& value) { SetTrunkInterfaceId(std::move(value)); return *this;}
65 inline AssociateTrunkInterfaceRequest& WithTrunkInterfaceId(const char* value) { SetTrunkInterfaceId(value); return *this;}
67
69
72 inline int GetVlanId() const{ return m_vlanId; }
73 inline bool VlanIdHasBeenSet() const { return m_vlanIdHasBeenSet; }
74 inline void SetVlanId(int value) { m_vlanIdHasBeenSet = true; m_vlanId = value; }
75 inline AssociateTrunkInterfaceRequest& WithVlanId(int value) { SetVlanId(value); return *this;}
77
79
82 inline int GetGreKey() const{ return m_greKey; }
83 inline bool GreKeyHasBeenSet() const { return m_greKeyHasBeenSet; }
84 inline void SetGreKey(int value) { m_greKeyHasBeenSet = true; m_greKey = value; }
85 inline AssociateTrunkInterfaceRequest& WithGreKey(int value) { SetGreKey(value); return *this;}
87
89
95 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
96 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
97 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
98 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
99 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
100 inline AssociateTrunkInterfaceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
101 inline AssociateTrunkInterfaceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
102 inline AssociateTrunkInterfaceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
104
106
112 inline bool GetDryRun() const{ return m_dryRun; }
113 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
114 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
115 inline AssociateTrunkInterfaceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
117 private:
118
119 Aws::String m_branchInterfaceId;
120 bool m_branchInterfaceIdHasBeenSet = false;
121
122 Aws::String m_trunkInterfaceId;
123 bool m_trunkInterfaceIdHasBeenSet = false;
124
125 int m_vlanId;
126 bool m_vlanIdHasBeenSet = false;
127
128 int m_greKey;
129 bool m_greKeyHasBeenSet = false;
130
131 Aws::String m_clientToken;
132 bool m_clientTokenHasBeenSet = false;
133
134 bool m_dryRun;
135 bool m_dryRunHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace EC2
140} // namespace Aws
AssociateTrunkInterfaceRequest & WithDryRun(bool value)
AssociateTrunkInterfaceRequest & WithTrunkInterfaceId(const Aws::String &value)
AssociateTrunkInterfaceRequest & WithClientToken(const Aws::String &value)
AssociateTrunkInterfaceRequest & WithTrunkInterfaceId(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AssociateTrunkInterfaceRequest & WithVlanId(int value)
AssociateTrunkInterfaceRequest & WithBranchInterfaceId(Aws::String &&value)
AssociateTrunkInterfaceRequest & WithClientToken(Aws::String &&value)
AssociateTrunkInterfaceRequest & WithClientToken(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
AssociateTrunkInterfaceRequest & WithGreKey(int value)
virtual const char * GetServiceRequestName() const override
AssociateTrunkInterfaceRequest & WithBranchInterfaceId(const char *value)
AssociateTrunkInterfaceRequest & WithTrunkInterfaceId(Aws::String &&value)
AssociateTrunkInterfaceRequest & WithBranchInterfaceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String