AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AllocateHostedConnectionRequest.h
1
6#pragma once
7#include <aws/directconnect/DirectConnect_EXPORTS.h>
8#include <aws/directconnect/DirectConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/directconnect/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DirectConnect
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DIRECTCONNECT_API AllocateHostedConnectionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AllocateHostedConnection"; }
33
34 AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override;
35
36 AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
44 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
45 template<typename ConnectionIdT = Aws::String>
46 void SetConnectionId(ConnectionIdT&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::forward<ConnectionIdT>(value); }
47 template<typename ConnectionIdT = Aws::String>
48 AllocateHostedConnectionRequest& WithConnectionId(ConnectionIdT&& value) { SetConnectionId(std::forward<ConnectionIdT>(value)); return *this;}
50
52
56 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
57 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
58 template<typename OwnerAccountT = Aws::String>
59 void SetOwnerAccount(OwnerAccountT&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::forward<OwnerAccountT>(value); }
60 template<typename OwnerAccountT = Aws::String>
61 AllocateHostedConnectionRequest& WithOwnerAccount(OwnerAccountT&& value) { SetOwnerAccount(std::forward<OwnerAccountT>(value)); return *this;}
63
65
72 inline const Aws::String& GetBandwidth() const { return m_bandwidth; }
73 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
74 template<typename BandwidthT = Aws::String>
75 void SetBandwidth(BandwidthT&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = std::forward<BandwidthT>(value); }
76 template<typename BandwidthT = Aws::String>
77 AllocateHostedConnectionRequest& WithBandwidth(BandwidthT&& value) { SetBandwidth(std::forward<BandwidthT>(value)); return *this;}
79
81
84 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
85 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
86 template<typename ConnectionNameT = Aws::String>
87 void SetConnectionName(ConnectionNameT&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::forward<ConnectionNameT>(value); }
88 template<typename ConnectionNameT = Aws::String>
89 AllocateHostedConnectionRequest& WithConnectionName(ConnectionNameT&& value) { SetConnectionName(std::forward<ConnectionNameT>(value)); return *this;}
91
93
96 inline int GetVlan() const { return m_vlan; }
97 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
98 inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
99 inline AllocateHostedConnectionRequest& WithVlan(int value) { SetVlan(value); return *this;}
101
103
106 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 template<typename TagsT = Aws::Vector<Tag>>
109 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
110 template<typename TagsT = Aws::Vector<Tag>>
111 AllocateHostedConnectionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
112 template<typename TagsT = Tag>
113 AllocateHostedConnectionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
115 private:
116
117 Aws::String m_connectionId;
118 bool m_connectionIdHasBeenSet = false;
119
120 Aws::String m_ownerAccount;
121 bool m_ownerAccountHasBeenSet = false;
122
123 Aws::String m_bandwidth;
124 bool m_bandwidthHasBeenSet = false;
125
126 Aws::String m_connectionName;
127 bool m_connectionNameHasBeenSet = false;
128
129 int m_vlan{0};
130 bool m_vlanHasBeenSet = false;
131
132 Aws::Vector<Tag> m_tags;
133 bool m_tagsHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace DirectConnect
138} // 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