AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = 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 "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 template<typename LocationT = Aws::String>
58 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
59 template<typename LocationT = Aws::String>
60 CreateLagRequest& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
62
64
68 inline const Aws::String& GetConnectionsBandwidth() const { return m_connectionsBandwidth; }
69 inline bool ConnectionsBandwidthHasBeenSet() const { return m_connectionsBandwidthHasBeenSet; }
70 template<typename ConnectionsBandwidthT = Aws::String>
71 void SetConnectionsBandwidth(ConnectionsBandwidthT&& value) { m_connectionsBandwidthHasBeenSet = true; m_connectionsBandwidth = std::forward<ConnectionsBandwidthT>(value); }
72 template<typename ConnectionsBandwidthT = Aws::String>
73 CreateLagRequest& WithConnectionsBandwidth(ConnectionsBandwidthT&& value) { SetConnectionsBandwidth(std::forward<ConnectionsBandwidthT>(value)); return *this;}
75
77
80 inline const Aws::String& GetLagName() const { return m_lagName; }
81 inline bool LagNameHasBeenSet() const { return m_lagNameHasBeenSet; }
82 template<typename LagNameT = Aws::String>
83 void SetLagName(LagNameT&& value) { m_lagNameHasBeenSet = true; m_lagName = std::forward<LagNameT>(value); }
84 template<typename LagNameT = Aws::String>
85 CreateLagRequest& WithLagName(LagNameT&& value) { SetLagName(std::forward<LagNameT>(value)); return *this;}
87
89
92 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
93 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
94 template<typename ConnectionIdT = Aws::String>
95 void SetConnectionId(ConnectionIdT&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::forward<ConnectionIdT>(value); }
96 template<typename ConnectionIdT = Aws::String>
97 CreateLagRequest& WithConnectionId(ConnectionIdT&& value) { SetConnectionId(std::forward<ConnectionIdT>(value)); return *this;}
99
101
104 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
105 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
106 template<typename TagsT = Aws::Vector<Tag>>
107 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
108 template<typename TagsT = Aws::Vector<Tag>>
109 CreateLagRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
110 template<typename TagsT = Tag>
111 CreateLagRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
113
115
118 inline const Aws::Vector<Tag>& GetChildConnectionTags() const { return m_childConnectionTags; }
119 inline bool ChildConnectionTagsHasBeenSet() const { return m_childConnectionTagsHasBeenSet; }
120 template<typename ChildConnectionTagsT = Aws::Vector<Tag>>
121 void SetChildConnectionTags(ChildConnectionTagsT&& value) { m_childConnectionTagsHasBeenSet = true; m_childConnectionTags = std::forward<ChildConnectionTagsT>(value); }
122 template<typename ChildConnectionTagsT = Aws::Vector<Tag>>
123 CreateLagRequest& WithChildConnectionTags(ChildConnectionTagsT&& value) { SetChildConnectionTags(std::forward<ChildConnectionTagsT>(value)); return *this;}
124 template<typename ChildConnectionTagsT = Tag>
125 CreateLagRequest& AddChildConnectionTags(ChildConnectionTagsT&& value) { m_childConnectionTagsHasBeenSet = true; m_childConnectionTags.emplace_back(std::forward<ChildConnectionTagsT>(value)); return *this; }
127
129
132 inline const Aws::String& GetProviderName() const { return m_providerName; }
133 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
134 template<typename ProviderNameT = Aws::String>
135 void SetProviderName(ProviderNameT&& value) { m_providerNameHasBeenSet = true; m_providerName = std::forward<ProviderNameT>(value); }
136 template<typename ProviderNameT = Aws::String>
137 CreateLagRequest& WithProviderName(ProviderNameT&& value) { SetProviderName(std::forward<ProviderNameT>(value)); return *this;}
139
141
148 inline bool GetRequestMACSec() const { return m_requestMACSec; }
149 inline bool RequestMACSecHasBeenSet() const { return m_requestMACSecHasBeenSet; }
150 inline void SetRequestMACSec(bool value) { m_requestMACSecHasBeenSet = true; m_requestMACSec = value; }
151 inline CreateLagRequest& WithRequestMACSec(bool value) { SetRequestMACSec(value); return *this;}
153 private:
154
155 int m_numberOfConnections{0};
156 bool m_numberOfConnectionsHasBeenSet = false;
157
158 Aws::String m_location;
159 bool m_locationHasBeenSet = false;
160
161 Aws::String m_connectionsBandwidth;
162 bool m_connectionsBandwidthHasBeenSet = false;
163
164 Aws::String m_lagName;
165 bool m_lagNameHasBeenSet = false;
166
167 Aws::String m_connectionId;
168 bool m_connectionIdHasBeenSet = false;
169
170 Aws::Vector<Tag> m_tags;
171 bool m_tagsHasBeenSet = false;
172
173 Aws::Vector<Tag> m_childConnectionTags;
174 bool m_childConnectionTagsHasBeenSet = false;
175
176 Aws::String m_providerName;
177 bool m_providerNameHasBeenSet = false;
178
179 bool m_requestMACSec{false};
180 bool m_requestMACSecHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace DirectConnect
185} // namespace Aws
const Aws::Vector< Tag > & GetChildConnectionTags() const
CreateLagRequest & AddChildConnectionTags(ChildConnectionTagsT &&value)
CreateLagRequest & WithNumberOfConnections(int value)
AWS_DIRECTCONNECT_API CreateLagRequest()=default
CreateLagRequest & WithConnectionsBandwidth(ConnectionsBandwidthT &&value)
void SetConnectionId(ConnectionIdT &&value)
const Aws::String & GetConnectionsBandwidth() const
CreateLagRequest & WithTags(TagsT &&value)
const Aws::String & GetConnectionId() const
void SetConnectionsBandwidth(ConnectionsBandwidthT &&value)
CreateLagRequest & WithRequestMACSec(bool value)
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLagRequest & WithChildConnectionTags(ChildConnectionTagsT &&value)
CreateLagRequest & WithConnectionId(ConnectionIdT &&value)
CreateLagRequest & WithProviderName(ProviderNameT &&value)
void SetChildConnectionTags(ChildConnectionTagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateLagRequest & WithLagName(LagNameT &&value)
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
const Aws::Vector< Tag > & GetTags() const
CreateLagRequest & WithLocation(LocationT &&value)
CreateLagRequest & AddTags(TagsT &&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