AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetConnectionId(const Aws::String& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; }
46 inline void SetConnectionId(Aws::String&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::move(value); }
47 inline void SetConnectionId(const char* value) { m_connectionIdHasBeenSet = true; m_connectionId.assign(value); }
48 inline AllocateHostedConnectionRequest& WithConnectionId(const Aws::String& value) { SetConnectionId(value); return *this;}
49 inline AllocateHostedConnectionRequest& WithConnectionId(Aws::String&& value) { SetConnectionId(std::move(value)); return *this;}
50 inline AllocateHostedConnectionRequest& WithConnectionId(const char* value) { SetConnectionId(value); return *this;}
52
54
58 inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; }
59 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
60 inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
61 inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::move(value); }
62 inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); }
63 inline AllocateHostedConnectionRequest& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;}
64 inline AllocateHostedConnectionRequest& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;}
65 inline AllocateHostedConnectionRequest& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;}
67
69
76 inline const Aws::String& GetBandwidth() const{ return m_bandwidth; }
77 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
78 inline void SetBandwidth(const Aws::String& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; }
79 inline void SetBandwidth(Aws::String&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = std::move(value); }
80 inline void SetBandwidth(const char* value) { m_bandwidthHasBeenSet = true; m_bandwidth.assign(value); }
81 inline AllocateHostedConnectionRequest& WithBandwidth(const Aws::String& value) { SetBandwidth(value); return *this;}
82 inline AllocateHostedConnectionRequest& WithBandwidth(Aws::String&& value) { SetBandwidth(std::move(value)); return *this;}
83 inline AllocateHostedConnectionRequest& WithBandwidth(const char* value) { SetBandwidth(value); return *this;}
85
87
90 inline const Aws::String& GetConnectionName() const{ return m_connectionName; }
91 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
92 inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; }
93 inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); }
94 inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); }
96 inline AllocateHostedConnectionRequest& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;}
97 inline AllocateHostedConnectionRequest& WithConnectionName(const char* value) { SetConnectionName(value); return *this;}
99
101
104 inline int GetVlan() const{ return m_vlan; }
105 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
106 inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
107 inline AllocateHostedConnectionRequest& WithVlan(int value) { SetVlan(value); return *this;}
109
111
114 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
117 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
118 inline AllocateHostedConnectionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
119 inline AllocateHostedConnectionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
120 inline AllocateHostedConnectionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
121 inline AllocateHostedConnectionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
123 private:
124
125 Aws::String m_connectionId;
126 bool m_connectionIdHasBeenSet = false;
127
128 Aws::String m_ownerAccount;
129 bool m_ownerAccountHasBeenSet = false;
130
131 Aws::String m_bandwidth;
132 bool m_bandwidthHasBeenSet = false;
133
134 Aws::String m_connectionName;
135 bool m_connectionNameHasBeenSet = false;
136
137 int m_vlan;
138 bool m_vlanHasBeenSet = false;
139
140 Aws::Vector<Tag> m_tags;
141 bool m_tagsHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace DirectConnect
146} // namespace Aws
AllocateHostedConnectionRequest & WithOwnerAccount(const char *value)
AllocateHostedConnectionRequest & WithOwnerAccount(Aws::String &&value)
AllocateHostedConnectionRequest & WithBandwidth(Aws::String &&value)
AllocateHostedConnectionRequest & AddTags(const Tag &value)
AllocateHostedConnectionRequest & WithBandwidth(const char *value)
AllocateHostedConnectionRequest & WithConnectionName(const char *value)
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AllocateHostedConnectionRequest & WithTags(Aws::Vector< Tag > &&value)
AllocateHostedConnectionRequest & WithBandwidth(const Aws::String &value)
AllocateHostedConnectionRequest & WithOwnerAccount(const Aws::String &value)
AllocateHostedConnectionRequest & WithConnectionName(Aws::String &&value)
AllocateHostedConnectionRequest & WithConnectionId(const Aws::String &value)
AllocateHostedConnectionRequest & WithConnectionId(Aws::String &&value)
AllocateHostedConnectionRequest & WithTags(const Aws::Vector< Tag > &value)
AllocateHostedConnectionRequest & WithConnectionName(const Aws::String &value)
AllocateHostedConnectionRequest & WithConnectionId(const char *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