AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
UpdateVirtualInterfaceAttributesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/directconnect/DirectConnectRequest.h>
9#include <aws/directconnect/DirectConnect_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace DirectConnect {
15namespace Model {
16
20 public:
21 AWS_DIRECTCONNECT_API UpdateVirtualInterfaceAttributesRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateVirtualInterfaceAttributes"; }
28
29 AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override;
30
31 AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
37 inline const Aws::String& GetVirtualInterfaceId() const { return m_virtualInterfaceId; }
38 inline bool VirtualInterfaceIdHasBeenSet() const { return m_virtualInterfaceIdHasBeenSet; }
39 template <typename VirtualInterfaceIdT = Aws::String>
40 void SetVirtualInterfaceId(VirtualInterfaceIdT&& value) {
41 m_virtualInterfaceIdHasBeenSet = true;
42 m_virtualInterfaceId = std::forward<VirtualInterfaceIdT>(value);
43 }
44 template <typename VirtualInterfaceIdT = Aws::String>
46 SetVirtualInterfaceId(std::forward<VirtualInterfaceIdT>(value));
47 return *this;
48 }
50
52
56 inline int GetMtu() const { return m_mtu; }
57 inline bool MtuHasBeenSet() const { return m_mtuHasBeenSet; }
58 inline void SetMtu(int value) {
59 m_mtuHasBeenSet = true;
60 m_mtu = value;
61 }
63 SetMtu(value);
64 return *this;
65 }
67
69
72 inline bool GetEnableSiteLink() const { return m_enableSiteLink; }
73 inline bool EnableSiteLinkHasBeenSet() const { return m_enableSiteLinkHasBeenSet; }
74 inline void SetEnableSiteLink(bool value) {
75 m_enableSiteLinkHasBeenSet = true;
76 m_enableSiteLink = value;
77 }
79 SetEnableSiteLink(value);
80 return *this;
81 }
83
85
88 inline const Aws::String& GetVirtualInterfaceName() const { return m_virtualInterfaceName; }
89 inline bool VirtualInterfaceNameHasBeenSet() const { return m_virtualInterfaceNameHasBeenSet; }
90 template <typename VirtualInterfaceNameT = Aws::String>
91 void SetVirtualInterfaceName(VirtualInterfaceNameT&& value) {
92 m_virtualInterfaceNameHasBeenSet = true;
93 m_virtualInterfaceName = std::forward<VirtualInterfaceNameT>(value);
94 }
95 template <typename VirtualInterfaceNameT = Aws::String>
97 SetVirtualInterfaceName(std::forward<VirtualInterfaceNameT>(value));
98 return *this;
99 }
101
103
107 inline int GetPrefixPoolAllocatedCountIpv4() const { return m_prefixPoolAllocatedCountIpv4; }
108 inline bool PrefixPoolAllocatedCountIpv4HasBeenSet() const { return m_prefixPoolAllocatedCountIpv4HasBeenSet; }
109 inline void SetPrefixPoolAllocatedCountIpv4(int value) {
110 m_prefixPoolAllocatedCountIpv4HasBeenSet = true;
111 m_prefixPoolAllocatedCountIpv4 = value;
112 }
115 return *this;
116 }
118
120
124 inline int GetPrefixPoolAllocatedCountIpv6() const { return m_prefixPoolAllocatedCountIpv6; }
125 inline bool PrefixPoolAllocatedCountIpv6HasBeenSet() const { return m_prefixPoolAllocatedCountIpv6HasBeenSet; }
126 inline void SetPrefixPoolAllocatedCountIpv6(int value) {
127 m_prefixPoolAllocatedCountIpv6HasBeenSet = true;
128 m_prefixPoolAllocatedCountIpv6 = value;
129 }
132 return *this;
133 }
135
137
141 inline const Aws::String& GetRateLimit() const { return m_rateLimit; }
142 inline bool RateLimitHasBeenSet() const { return m_rateLimitHasBeenSet; }
143 template <typename RateLimitT = Aws::String>
144 void SetRateLimit(RateLimitT&& value) {
145 m_rateLimitHasBeenSet = true;
146 m_rateLimit = std::forward<RateLimitT>(value);
147 }
148 template <typename RateLimitT = Aws::String>
150 SetRateLimit(std::forward<RateLimitT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_virtualInterfaceId;
156
157 int m_mtu{0};
158
159 bool m_enableSiteLink{false};
160
161 Aws::String m_virtualInterfaceName;
162
163 int m_prefixPoolAllocatedCountIpv4{0};
164
165 int m_prefixPoolAllocatedCountIpv6{0};
166
167 Aws::String m_rateLimit;
168 bool m_virtualInterfaceIdHasBeenSet = false;
169 bool m_mtuHasBeenSet = false;
170 bool m_enableSiteLinkHasBeenSet = false;
171 bool m_virtualInterfaceNameHasBeenSet = false;
172 bool m_prefixPoolAllocatedCountIpv4HasBeenSet = false;
173 bool m_prefixPoolAllocatedCountIpv6HasBeenSet = false;
174 bool m_rateLimitHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace DirectConnect
179} // namespace Aws
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
UpdateVirtualInterfaceAttributesRequest & WithVirtualInterfaceId(VirtualInterfaceIdT &&value)
UpdateVirtualInterfaceAttributesRequest & WithVirtualInterfaceName(VirtualInterfaceNameT &&value)
UpdateVirtualInterfaceAttributesRequest & WithRateLimit(RateLimitT &&value)
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String