AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLagRequest.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 CreateLagRequest();
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 "CreateLag"; }
33
34 AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override;
35
36 AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
45 inline int GetNumberOfConnections() const{ return m_numberOfConnections; }
46 inline bool NumberOfConnectionsHasBeenSet() const { return m_numberOfConnectionsHasBeenSet; }
47 inline void SetNumberOfConnections(int value) { m_numberOfConnectionsHasBeenSet = true; m_numberOfConnections = value; }
48 inline CreateLagRequest& WithNumberOfConnections(int value) { SetNumberOfConnections(value); return *this;}
50
52
55 inline const Aws::String& GetLocation() const{ return m_location; }
56 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
57 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
58 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
59 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
60 inline CreateLagRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
61 inline CreateLagRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
62 inline CreateLagRequest& WithLocation(const char* value) { SetLocation(value); return *this;}
64
66
70 inline const Aws::String& GetConnectionsBandwidth() const{ return m_connectionsBandwidth; }
71 inline bool ConnectionsBandwidthHasBeenSet() const { return m_connectionsBandwidthHasBeenSet; }
72 inline void SetConnectionsBandwidth(const Aws::String& value) { m_connectionsBandwidthHasBeenSet = true; m_connectionsBandwidth = value; }
73 inline void SetConnectionsBandwidth(Aws::String&& value) { m_connectionsBandwidthHasBeenSet = true; m_connectionsBandwidth = std::move(value); }
74 inline void SetConnectionsBandwidth(const char* value) { m_connectionsBandwidthHasBeenSet = true; m_connectionsBandwidth.assign(value); }
76 inline CreateLagRequest& WithConnectionsBandwidth(Aws::String&& value) { SetConnectionsBandwidth(std::move(value)); return *this;}
77 inline CreateLagRequest& WithConnectionsBandwidth(const char* value) { SetConnectionsBandwidth(value); return *this;}
79
81
84 inline const Aws::String& GetLagName() const{ return m_lagName; }
85 inline bool LagNameHasBeenSet() const { return m_lagNameHasBeenSet; }
86 inline void SetLagName(const Aws::String& value) { m_lagNameHasBeenSet = true; m_lagName = value; }
87 inline void SetLagName(Aws::String&& value) { m_lagNameHasBeenSet = true; m_lagName = std::move(value); }
88 inline void SetLagName(const char* value) { m_lagNameHasBeenSet = true; m_lagName.assign(value); }
89 inline CreateLagRequest& WithLagName(const Aws::String& value) { SetLagName(value); return *this;}
90 inline CreateLagRequest& WithLagName(Aws::String&& value) { SetLagName(std::move(value)); return *this;}
91 inline CreateLagRequest& WithLagName(const char* value) { SetLagName(value); return *this;}
93
95
98 inline const Aws::String& GetConnectionId() const{ return m_connectionId; }
99 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
100 inline void SetConnectionId(const Aws::String& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; }
101 inline void SetConnectionId(Aws::String&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::move(value); }
102 inline void SetConnectionId(const char* value) { m_connectionIdHasBeenSet = true; m_connectionId.assign(value); }
103 inline CreateLagRequest& WithConnectionId(const Aws::String& value) { SetConnectionId(value); return *this;}
104 inline CreateLagRequest& WithConnectionId(Aws::String&& value) { SetConnectionId(std::move(value)); return *this;}
105 inline CreateLagRequest& WithConnectionId(const char* value) { SetConnectionId(value); return *this;}
107
109
112 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
115 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
116 inline CreateLagRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
117 inline CreateLagRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
118 inline CreateLagRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
119 inline CreateLagRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
121
123
126 inline const Aws::Vector<Tag>& GetChildConnectionTags() const{ return m_childConnectionTags; }
127 inline bool ChildConnectionTagsHasBeenSet() const { return m_childConnectionTagsHasBeenSet; }
128 inline void SetChildConnectionTags(const Aws::Vector<Tag>& value) { m_childConnectionTagsHasBeenSet = true; m_childConnectionTags = value; }
129 inline void SetChildConnectionTags(Aws::Vector<Tag>&& value) { m_childConnectionTagsHasBeenSet = true; m_childConnectionTags = std::move(value); }
131 inline CreateLagRequest& WithChildConnectionTags(Aws::Vector<Tag>&& value) { SetChildConnectionTags(std::move(value)); return *this;}
132 inline CreateLagRequest& AddChildConnectionTags(const Tag& value) { m_childConnectionTagsHasBeenSet = true; m_childConnectionTags.push_back(value); return *this; }
133 inline CreateLagRequest& AddChildConnectionTags(Tag&& value) { m_childConnectionTagsHasBeenSet = true; m_childConnectionTags.push_back(std::move(value)); return *this; }
135
137
140 inline const Aws::String& GetProviderName() const{ return m_providerName; }
141 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
142 inline void SetProviderName(const Aws::String& value) { m_providerNameHasBeenSet = true; m_providerName = value; }
143 inline void SetProviderName(Aws::String&& value) { m_providerNameHasBeenSet = true; m_providerName = std::move(value); }
144 inline void SetProviderName(const char* value) { m_providerNameHasBeenSet = true; m_providerName.assign(value); }
145 inline CreateLagRequest& WithProviderName(const Aws::String& value) { SetProviderName(value); return *this;}
146 inline CreateLagRequest& WithProviderName(Aws::String&& value) { SetProviderName(std::move(value)); return *this;}
147 inline CreateLagRequest& WithProviderName(const char* value) { SetProviderName(value); return *this;}
149
151
158 inline bool GetRequestMACSec() const{ return m_requestMACSec; }
159 inline bool RequestMACSecHasBeenSet() const { return m_requestMACSecHasBeenSet; }
160 inline void SetRequestMACSec(bool value) { m_requestMACSecHasBeenSet = true; m_requestMACSec = value; }
161 inline CreateLagRequest& WithRequestMACSec(bool value) { SetRequestMACSec(value); return *this;}
163 private:
164
165 int m_numberOfConnections;
166 bool m_numberOfConnectionsHasBeenSet = false;
167
168 Aws::String m_location;
169 bool m_locationHasBeenSet = false;
170
171 Aws::String m_connectionsBandwidth;
172 bool m_connectionsBandwidthHasBeenSet = false;
173
174 Aws::String m_lagName;
175 bool m_lagNameHasBeenSet = false;
176
177 Aws::String m_connectionId;
178 bool m_connectionIdHasBeenSet = false;
179
180 Aws::Vector<Tag> m_tags;
181 bool m_tagsHasBeenSet = false;
182
183 Aws::Vector<Tag> m_childConnectionTags;
184 bool m_childConnectionTagsHasBeenSet = false;
185
186 Aws::String m_providerName;
187 bool m_providerNameHasBeenSet = false;
188
189 bool m_requestMACSec;
190 bool m_requestMACSecHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace DirectConnect
195} // namespace Aws
const Aws::Vector< Tag > & GetChildConnectionTags() const
void SetLagName(const Aws::String &value)
CreateLagRequest & WithLocation(const Aws::String &value)
CreateLagRequest & WithTags(Aws::Vector< Tag > &&value)
CreateLagRequest & WithProviderName(Aws::String &&value)
CreateLagRequest & WithNumberOfConnections(int value)
void SetTags(Aws::Vector< Tag > &&value)
void SetProviderName(const Aws::String &value)
CreateLagRequest & WithChildConnectionTags(const Aws::Vector< Tag > &value)
CreateLagRequest & AddTags(const Tag &value)
CreateLagRequest & WithConnectionsBandwidth(const Aws::String &value)
const Aws::String & GetConnectionsBandwidth() const
const Aws::String & GetConnectionId() const
CreateLagRequest & WithLagName(const char *value)
CreateLagRequest & WithRequestMACSec(bool value)
CreateLagRequest & WithLocation(const char *value)
void SetConnectionsBandwidth(Aws::String &&value)
CreateLagRequest & WithConnectionId(const char *value)
void SetConnectionsBandwidth(const Aws::String &value)
CreateLagRequest & AddChildConnectionTags(const Tag &value)
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLagRequest & WithTags(const Aws::Vector< Tag > &value)
CreateLagRequest & WithLagName(const Aws::String &value)
CreateLagRequest & WithLagName(Aws::String &&value)
CreateLagRequest & WithConnectionId(const Aws::String &value)
CreateLagRequest & WithChildConnectionTags(Aws::Vector< Tag > &&value)
virtual const char * GetServiceRequestName() const override
CreateLagRequest & AddChildConnectionTags(Tag &&value)
CreateLagRequest & WithProviderName(const Aws::String &value)
CreateLagRequest & WithConnectionsBandwidth(Aws::String &&value)
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
void SetConnectionId(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
void SetTags(const Aws::Vector< Tag > &value)
void SetLocation(const Aws::String &value)
CreateLagRequest & WithConnectionId(Aws::String &&value)
CreateLagRequest & AddTags(Tag &&value)
void SetChildConnectionTags(Aws::Vector< Tag > &&value)
CreateLagRequest & WithProviderName(const char *value)
CreateLagRequest & WithLocation(Aws::String &&value)
void SetChildConnectionTags(const Aws::Vector< Tag > &value)
CreateLagRequest & WithConnectionsBandwidth(const char *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