AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
25 AWS_EC2_API AssociateTrunkInterfaceRequest() = default;
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 template<typename BranchInterfaceIdT = Aws::String>
47 void SetBranchInterfaceId(BranchInterfaceIdT&& value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId = std::forward<BranchInterfaceIdT>(value); }
48 template<typename BranchInterfaceIdT = Aws::String>
49 AssociateTrunkInterfaceRequest& WithBranchInterfaceId(BranchInterfaceIdT&& value) { SetBranchInterfaceId(std::forward<BranchInterfaceIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetTrunkInterfaceId() const { return m_trunkInterfaceId; }
57 inline bool TrunkInterfaceIdHasBeenSet() const { return m_trunkInterfaceIdHasBeenSet; }
58 template<typename TrunkInterfaceIdT = Aws::String>
59 void SetTrunkInterfaceId(TrunkInterfaceIdT&& value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId = std::forward<TrunkInterfaceIdT>(value); }
60 template<typename TrunkInterfaceIdT = Aws::String>
61 AssociateTrunkInterfaceRequest& WithTrunkInterfaceId(TrunkInterfaceIdT&& value) { SetTrunkInterfaceId(std::forward<TrunkInterfaceIdT>(value)); return *this;}
63
65
68 inline int GetVlanId() const { return m_vlanId; }
69 inline bool VlanIdHasBeenSet() const { return m_vlanIdHasBeenSet; }
70 inline void SetVlanId(int value) { m_vlanIdHasBeenSet = true; m_vlanId = value; }
71 inline AssociateTrunkInterfaceRequest& WithVlanId(int value) { SetVlanId(value); return *this;}
73
75
78 inline int GetGreKey() const { return m_greKey; }
79 inline bool GreKeyHasBeenSet() const { return m_greKeyHasBeenSet; }
80 inline void SetGreKey(int value) { m_greKeyHasBeenSet = true; m_greKey = value; }
81 inline AssociateTrunkInterfaceRequest& WithGreKey(int value) { SetGreKey(value); return *this;}
83
85
91 inline const Aws::String& GetClientToken() const { return m_clientToken; }
92 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
93 template<typename ClientTokenT = Aws::String>
94 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
95 template<typename ClientTokenT = Aws::String>
96 AssociateTrunkInterfaceRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
98
100
106 inline bool GetDryRun() const { return m_dryRun; }
107 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
108 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
109 inline AssociateTrunkInterfaceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
111 private:
112
113 Aws::String m_branchInterfaceId;
114 bool m_branchInterfaceIdHasBeenSet = false;
115
116 Aws::String m_trunkInterfaceId;
117 bool m_trunkInterfaceIdHasBeenSet = false;
118
119 int m_vlanId{0};
120 bool m_vlanIdHasBeenSet = false;
121
122 int m_greKey{0};
123 bool m_greKeyHasBeenSet = false;
124
126 bool m_clientTokenHasBeenSet = true;
127
128 bool m_dryRun{false};
129 bool m_dryRunHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace EC2
134} // 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