AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
AllocateHostedConnectionRequest.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 AllocateHostedConnectionRequest() = 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 "AllocateHostedConnection"; }
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& GetConnectionId() const { return m_connectionId; }
40 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
41 template <typename ConnectionIdT = Aws::String>
42 void SetConnectionId(ConnectionIdT&& value) {
43 m_connectionIdHasBeenSet = true;
44 m_connectionId = std::forward<ConnectionIdT>(value);
45 }
46 template <typename ConnectionIdT = Aws::String>
48 SetConnectionId(std::forward<ConnectionIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
59 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
60 template <typename OwnerAccountT = Aws::String>
61 void SetOwnerAccount(OwnerAccountT&& value) {
62 m_ownerAccountHasBeenSet = true;
63 m_ownerAccount = std::forward<OwnerAccountT>(value);
64 }
65 template <typename OwnerAccountT = Aws::String>
67 SetOwnerAccount(std::forward<OwnerAccountT>(value));
68 return *this;
69 }
71
73
80 inline const Aws::String& GetBandwidth() const { return m_bandwidth; }
81 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
82 template <typename BandwidthT = Aws::String>
83 void SetBandwidth(BandwidthT&& value) {
84 m_bandwidthHasBeenSet = true;
85 m_bandwidth = std::forward<BandwidthT>(value);
86 }
87 template <typename BandwidthT = Aws::String>
89 SetBandwidth(std::forward<BandwidthT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
99 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
100 template <typename ConnectionNameT = Aws::String>
101 void SetConnectionName(ConnectionNameT&& value) {
102 m_connectionNameHasBeenSet = true;
103 m_connectionName = std::forward<ConnectionNameT>(value);
104 }
105 template <typename ConnectionNameT = Aws::String>
107 SetConnectionName(std::forward<ConnectionNameT>(value));
108 return *this;
109 }
111
113
116 inline int GetVlan() const { return m_vlan; }
117 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
118 inline void SetVlan(int value) {
119 m_vlanHasBeenSet = true;
120 m_vlan = value;
121 }
123 SetVlan(value);
124 return *this;
125 }
127
129
132 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template <typename TagsT = Aws::Vector<Tag>>
135 void SetTags(TagsT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags = std::forward<TagsT>(value);
138 }
139 template <typename TagsT = Aws::Vector<Tag>>
141 SetTags(std::forward<TagsT>(value));
142 return *this;
143 }
144 template <typename TagsT = Tag>
146 m_tagsHasBeenSet = true;
147 m_tags.emplace_back(std::forward<TagsT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_connectionId;
153
154 Aws::String m_ownerAccount;
155
156 Aws::String m_bandwidth;
157
158 Aws::String m_connectionName;
159
160 int m_vlan{0};
161
162 Aws::Vector<Tag> m_tags;
163 bool m_connectionIdHasBeenSet = false;
164 bool m_ownerAccountHasBeenSet = false;
165 bool m_bandwidthHasBeenSet = false;
166 bool m_connectionNameHasBeenSet = false;
167 bool m_vlanHasBeenSet = false;
168 bool m_tagsHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace DirectConnect
173} // namespace Aws
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DIRECTCONNECT_API AllocateHostedConnectionRequest()=default
AllocateHostedConnectionRequest & WithConnectionId(ConnectionIdT &&value)
AllocateHostedConnectionRequest & WithConnectionName(ConnectionNameT &&value)
AllocateHostedConnectionRequest & WithBandwidth(BandwidthT &&value)
AllocateHostedConnectionRequest & WithOwnerAccount(OwnerAccountT &&value)
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
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