AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateConnectionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/directconnect/DirectConnectRequest.h>
10#include <aws/directconnect/DirectConnect_EXPORTS.h>
11#include <aws/directconnect/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DirectConnect {
17namespace Model {
18
22 public:
23 AWS_DIRECTCONNECT_API CreateConnectionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateConnection"; }
30
31 AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override;
32
33 AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetLocation() const { return m_location; }
40 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
41 template <typename LocationT = Aws::String>
42 void SetLocation(LocationT&& value) {
43 m_locationHasBeenSet = true;
44 m_location = std::forward<LocationT>(value);
45 }
46 template <typename LocationT = Aws::String>
48 SetLocation(std::forward<LocationT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetBandwidth() const { return m_bandwidth; }
58 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
59 template <typename BandwidthT = Aws::String>
60 void SetBandwidth(BandwidthT&& value) {
61 m_bandwidthHasBeenSet = true;
62 m_bandwidth = std::forward<BandwidthT>(value);
63 }
64 template <typename BandwidthT = Aws::String>
66 SetBandwidth(std::forward<BandwidthT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
76 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
77 template <typename ConnectionNameT = Aws::String>
78 void SetConnectionName(ConnectionNameT&& value) {
79 m_connectionNameHasBeenSet = true;
80 m_connectionName = std::forward<ConnectionNameT>(value);
81 }
82 template <typename ConnectionNameT = Aws::String>
83 CreateConnectionRequest& WithConnectionName(ConnectionNameT&& value) {
84 SetConnectionName(std::forward<ConnectionNameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetLagId() const { return m_lagId; }
94 inline bool LagIdHasBeenSet() const { return m_lagIdHasBeenSet; }
95 template <typename LagIdT = Aws::String>
96 void SetLagId(LagIdT&& value) {
97 m_lagIdHasBeenSet = true;
98 m_lagId = std::forward<LagIdT>(value);
99 }
100 template <typename LagIdT = Aws::String>
102 SetLagId(std::forward<LagIdT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
112 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
113 template <typename TagsT = Aws::Vector<Tag>>
114 void SetTags(TagsT&& value) {
115 m_tagsHasBeenSet = true;
116 m_tags = std::forward<TagsT>(value);
117 }
118 template <typename TagsT = Aws::Vector<Tag>>
120 SetTags(std::forward<TagsT>(value));
121 return *this;
122 }
123 template <typename TagsT = Tag>
125 m_tagsHasBeenSet = true;
126 m_tags.emplace_back(std::forward<TagsT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::String& GetProviderName() const { return m_providerName; }
137 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
138 template <typename ProviderNameT = Aws::String>
139 void SetProviderName(ProviderNameT&& value) {
140 m_providerNameHasBeenSet = true;
141 m_providerName = std::forward<ProviderNameT>(value);
142 }
143 template <typename ProviderNameT = Aws::String>
145 SetProviderName(std::forward<ProviderNameT>(value));
146 return *this;
147 }
149
151
158 inline bool GetRequestMACSec() const { return m_requestMACSec; }
159 inline bool RequestMACSecHasBeenSet() const { return m_requestMACSecHasBeenSet; }
160 inline void SetRequestMACSec(bool value) {
161 m_requestMACSecHasBeenSet = true;
162 m_requestMACSec = value;
163 }
165 SetRequestMACSec(value);
166 return *this;
167 }
169 private:
170 Aws::String m_location;
171
172 Aws::String m_bandwidth;
173
174 Aws::String m_connectionName;
175
176 Aws::String m_lagId;
177
178 Aws::Vector<Tag> m_tags;
179
180 Aws::String m_providerName;
181
182 bool m_requestMACSec{false};
183 bool m_locationHasBeenSet = false;
184 bool m_bandwidthHasBeenSet = false;
185 bool m_connectionNameHasBeenSet = false;
186 bool m_lagIdHasBeenSet = false;
187 bool m_tagsHasBeenSet = false;
188 bool m_providerNameHasBeenSet = false;
189 bool m_requestMACSecHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace DirectConnect
194} // namespace Aws
CreateConnectionRequest & WithRequestMACSec(bool value)
AWS_DIRECTCONNECT_API CreateConnectionRequest()=default
CreateConnectionRequest & WithTags(TagsT &&value)
CreateConnectionRequest & AddTags(TagsT &&value)
CreateConnectionRequest & WithConnectionName(ConnectionNameT &&value)
CreateConnectionRequest & WithBandwidth(BandwidthT &&value)
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
CreateConnectionRequest & WithProviderName(ProviderNameT &&value)
virtual const char * GetServiceRequestName() const override
CreateConnectionRequest & WithLagId(LagIdT &&value)
CreateConnectionRequest & WithLocation(LocationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector