AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
CreateConnectionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/interconnect/InterconnectRequest.h>
11#include <aws/interconnect/Interconnect_EXPORTS.h>
12#include <aws/interconnect/model/AttachPoint.h>
13#include <aws/interconnect/model/RemoteAccountIdentifier.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Interconnect {
19namespace Model {
20
24 public:
25 AWS_INTERCONNECT_API CreateConnectionRequest() = 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 "CreateConnection"; }
32
33 AWS_INTERCONNECT_API Aws::String SerializePayload() const override;
34
35 AWS_INTERCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetDescription() const { return m_description; }
42 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
43 template <typename DescriptionT = Aws::String>
44 void SetDescription(DescriptionT&& value) {
45 m_descriptionHasBeenSet = true;
46 m_description = std::forward<DescriptionT>(value);
47 }
48 template <typename DescriptionT = Aws::String>
50 SetDescription(std::forward<DescriptionT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetBandwidth() const { return m_bandwidth; }
60 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
61 template <typename BandwidthT = Aws::String>
62 void SetBandwidth(BandwidthT&& value) {
63 m_bandwidthHasBeenSet = true;
64 m_bandwidth = std::forward<BandwidthT>(value);
65 }
66 template <typename BandwidthT = Aws::String>
68 SetBandwidth(std::forward<BandwidthT>(value));
69 return *this;
70 }
72
74
77 inline const AttachPoint& GetAttachPoint() const { return m_attachPoint; }
78 inline bool AttachPointHasBeenSet() const { return m_attachPointHasBeenSet; }
79 template <typename AttachPointT = AttachPoint>
80 void SetAttachPoint(AttachPointT&& value) {
81 m_attachPointHasBeenSet = true;
82 m_attachPoint = std::forward<AttachPointT>(value);
83 }
84 template <typename AttachPointT = AttachPoint>
86 SetAttachPoint(std::forward<AttachPointT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
98 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
99 template <typename EnvironmentIdT = Aws::String>
100 void SetEnvironmentId(EnvironmentIdT&& value) {
101 m_environmentIdHasBeenSet = true;
102 m_environmentId = std::forward<EnvironmentIdT>(value);
103 }
104 template <typename EnvironmentIdT = Aws::String>
106 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
107 return *this;
108 }
110
112
116 inline const RemoteAccountIdentifier& GetRemoteAccount() const { return m_remoteAccount; }
117 inline bool RemoteAccountHasBeenSet() const { return m_remoteAccountHasBeenSet; }
118 template <typename RemoteAccountT = RemoteAccountIdentifier>
119 void SetRemoteAccount(RemoteAccountT&& value) {
120 m_remoteAccountHasBeenSet = true;
121 m_remoteAccount = std::forward<RemoteAccountT>(value);
122 }
123 template <typename RemoteAccountT = RemoteAccountIdentifier>
125 SetRemoteAccount(std::forward<RemoteAccountT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
135 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
137 void SetTags(TagsT&& value) {
138 m_tagsHasBeenSet = true;
139 m_tags = std::forward<TagsT>(value);
140 }
141 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 SetTags(std::forward<TagsT>(value));
144 return *this;
145 }
146 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
147 CreateConnectionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetClientToken() const { return m_clientToken; }
159 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
160 template <typename ClientTokenT = Aws::String>
161 void SetClientToken(ClientTokenT&& value) {
162 m_clientTokenHasBeenSet = true;
163 m_clientToken = std::forward<ClientTokenT>(value);
164 }
165 template <typename ClientTokenT = Aws::String>
167 SetClientToken(std::forward<ClientTokenT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_description;
173
174 Aws::String m_bandwidth;
175
176 AttachPoint m_attachPoint;
177
178 Aws::String m_environmentId;
179
180 RemoteAccountIdentifier m_remoteAccount;
181
183
185 bool m_descriptionHasBeenSet = false;
186 bool m_bandwidthHasBeenSet = false;
187 bool m_attachPointHasBeenSet = false;
188 bool m_environmentIdHasBeenSet = false;
189 bool m_remoteAccountHasBeenSet = false;
190 bool m_tagsHasBeenSet = false;
191 bool m_clientTokenHasBeenSet = true;
192};
193
194} // namespace Model
195} // namespace Interconnect
196} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateConnectionRequest & WithDescription(DescriptionT &&value)
CreateConnectionRequest & WithTags(TagsT &&value)
AWS_INTERCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateConnectionRequest & WithEnvironmentId(EnvironmentIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateConnectionRequest & WithBandwidth(BandwidthT &&value)
AWS_INTERCONNECT_API CreateConnectionRequest()=default
const RemoteAccountIdentifier & GetRemoteAccount() const
CreateConnectionRequest & WithAttachPoint(AttachPointT &&value)
CreateConnectionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateConnectionRequest & WithRemoteAccount(RemoteAccountT &&value)
CreateConnectionRequest & WithClientToken(ClientTokenT &&value)
AWS_INTERCONNECT_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String