AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AssociateTrunkInterfaceRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
22 AWS_EC2_API AssociateTrunkInterfaceRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AssociateTrunkInterface"; }
29
30 AWS_EC2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetBranchInterfaceId() const { return m_branchInterfaceId; }
41 inline bool BranchInterfaceIdHasBeenSet() const { return m_branchInterfaceIdHasBeenSet; }
42 template <typename BranchInterfaceIdT = Aws::String>
43 void SetBranchInterfaceId(BranchInterfaceIdT&& value) {
44 m_branchInterfaceIdHasBeenSet = true;
45 m_branchInterfaceId = std::forward<BranchInterfaceIdT>(value);
46 }
47 template <typename BranchInterfaceIdT = Aws::String>
49 SetBranchInterfaceId(std::forward<BranchInterfaceIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetTrunkInterfaceId() const { return m_trunkInterfaceId; }
59 inline bool TrunkInterfaceIdHasBeenSet() const { return m_trunkInterfaceIdHasBeenSet; }
60 template <typename TrunkInterfaceIdT = Aws::String>
61 void SetTrunkInterfaceId(TrunkInterfaceIdT&& value) {
62 m_trunkInterfaceIdHasBeenSet = true;
63 m_trunkInterfaceId = std::forward<TrunkInterfaceIdT>(value);
64 }
65 template <typename TrunkInterfaceIdT = Aws::String>
67 SetTrunkInterfaceId(std::forward<TrunkInterfaceIdT>(value));
68 return *this;
69 }
71
73
76 inline int GetVlanId() const { return m_vlanId; }
77 inline bool VlanIdHasBeenSet() const { return m_vlanIdHasBeenSet; }
78 inline void SetVlanId(int value) {
79 m_vlanIdHasBeenSet = true;
80 m_vlanId = value;
81 }
83 SetVlanId(value);
84 return *this;
85 }
87
89
92 inline int GetGreKey() const { return m_greKey; }
93 inline bool GreKeyHasBeenSet() const { return m_greKeyHasBeenSet; }
94 inline void SetGreKey(int value) {
95 m_greKeyHasBeenSet = true;
96 m_greKey = value;
97 }
99 SetGreKey(value);
100 return *this;
101 }
103
105
111 inline const Aws::String& GetClientToken() const { return m_clientToken; }
112 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
113 template <typename ClientTokenT = Aws::String>
114 void SetClientToken(ClientTokenT&& value) {
115 m_clientTokenHasBeenSet = true;
116 m_clientToken = std::forward<ClientTokenT>(value);
117 }
118 template <typename ClientTokenT = Aws::String>
120 SetClientToken(std::forward<ClientTokenT>(value));
121 return *this;
122 }
124
126
132 inline bool GetDryRun() const { return m_dryRun; }
133 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
134 inline void SetDryRun(bool value) {
135 m_dryRunHasBeenSet = true;
136 m_dryRun = value;
137 }
139 SetDryRun(value);
140 return *this;
141 }
143 private:
144 Aws::String m_branchInterfaceId;
145
146 Aws::String m_trunkInterfaceId;
147
148 int m_vlanId{0};
149
150 int m_greKey{0};
151
153
154 bool m_dryRun{false};
155 bool m_branchInterfaceIdHasBeenSet = false;
156 bool m_trunkInterfaceIdHasBeenSet = false;
157 bool m_vlanIdHasBeenSet = false;
158 bool m_greKeyHasBeenSet = false;
159 bool m_clientTokenHasBeenSet = true;
160 bool m_dryRunHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace EC2
165} // namespace Aws
AssociateTrunkInterfaceRequest & WithClientToken(ClientTokenT &&value)
AssociateTrunkInterfaceRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AssociateTrunkInterfaceRequest & WithVlanId(int value)
AWS_EC2_API Aws::String SerializePayload() const override
AssociateTrunkInterfaceRequest & WithGreKey(int value)
virtual const char * GetServiceRequestName() const override
AssociateTrunkInterfaceRequest & WithTrunkInterfaceId(TrunkInterfaceIdT &&value)
AssociateTrunkInterfaceRequest & WithBranchInterfaceId(BranchInterfaceIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String