AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
CreateLinkRequest.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/networkmanager/NetworkManagerRequest.h>
10#include <aws/networkmanager/NetworkManager_EXPORTS.h>
11#include <aws/networkmanager/model/Bandwidth.h>
12#include <aws/networkmanager/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace NetworkManager {
18namespace Model {
19
23 public:
24 AWS_NETWORKMANAGER_API CreateLinkRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateLink"; }
31
32 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
39 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
40 template <typename GlobalNetworkIdT = Aws::String>
41 void SetGlobalNetworkId(GlobalNetworkIdT&& value) {
42 m_globalNetworkIdHasBeenSet = true;
43 m_globalNetworkId = std::forward<GlobalNetworkIdT>(value);
44 }
45 template <typename GlobalNetworkIdT = Aws::String>
46 CreateLinkRequest& WithGlobalNetworkId(GlobalNetworkIdT&& value) {
47 SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 CreateLinkRequest& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetType() const { return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 template <typename TypeT = Aws::String>
79 void SetType(TypeT&& value) {
80 m_typeHasBeenSet = true;
81 m_type = std::forward<TypeT>(value);
82 }
83 template <typename TypeT = Aws::String>
84 CreateLinkRequest& WithType(TypeT&& value) {
85 SetType(std::forward<TypeT>(value));
86 return *this;
87 }
89
91
94 inline const Bandwidth& GetBandwidth() const { return m_bandwidth; }
95 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
96 template <typename BandwidthT = Bandwidth>
97 void SetBandwidth(BandwidthT&& value) {
98 m_bandwidthHasBeenSet = true;
99 m_bandwidth = std::forward<BandwidthT>(value);
100 }
101 template <typename BandwidthT = Bandwidth>
102 CreateLinkRequest& WithBandwidth(BandwidthT&& value) {
103 SetBandwidth(std::forward<BandwidthT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetProvider() const { return m_provider; }
114 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
115 template <typename ProviderT = Aws::String>
116 void SetProvider(ProviderT&& value) {
117 m_providerHasBeenSet = true;
118 m_provider = std::forward<ProviderT>(value);
119 }
120 template <typename ProviderT = Aws::String>
121 CreateLinkRequest& WithProvider(ProviderT&& value) {
122 SetProvider(std::forward<ProviderT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetSiteId() const { return m_siteId; }
132 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
133 template <typename SiteIdT = Aws::String>
134 void SetSiteId(SiteIdT&& value) {
135 m_siteIdHasBeenSet = true;
136 m_siteId = std::forward<SiteIdT>(value);
137 }
138 template <typename SiteIdT = Aws::String>
139 CreateLinkRequest& WithSiteId(SiteIdT&& value) {
140 SetSiteId(std::forward<SiteIdT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 template <typename TagsT = Aws::Vector<Tag>>
152 void SetTags(TagsT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags = std::forward<TagsT>(value);
155 }
156 template <typename TagsT = Aws::Vector<Tag>>
157 CreateLinkRequest& WithTags(TagsT&& value) {
158 SetTags(std::forward<TagsT>(value));
159 return *this;
160 }
161 template <typename TagsT = Tag>
162 CreateLinkRequest& AddTags(TagsT&& value) {
163 m_tagsHasBeenSet = true;
164 m_tags.emplace_back(std::forward<TagsT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_globalNetworkId;
170
171 Aws::String m_description;
172
173 Aws::String m_type;
174
175 Bandwidth m_bandwidth;
176
177 Aws::String m_provider;
178
179 Aws::String m_siteId;
180
181 Aws::Vector<Tag> m_tags;
182 bool m_globalNetworkIdHasBeenSet = false;
183 bool m_descriptionHasBeenSet = false;
184 bool m_typeHasBeenSet = false;
185 bool m_bandwidthHasBeenSet = false;
186 bool m_providerHasBeenSet = false;
187 bool m_siteIdHasBeenSet = false;
188 bool m_tagsHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace NetworkManager
193} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector