AWS SDK for C++

AWS SDK for C++ Version 1.11.790

Loading...
Searching...
No Matches
CreateLinkResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/oam/OAM_EXPORTS.h>
12#include <aws/oam/model/LinkConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace OAM {
26namespace Model {
28 public:
29 AWS_OAM_API CreateLinkResult() = default;
32
34
37 inline const Aws::String& GetArn() const { return m_arn; }
38 template <typename ArnT = Aws::String>
39 void SetArn(ArnT&& value) {
40 m_arnHasBeenSet = true;
41 m_arn = std::forward<ArnT>(value);
42 }
43 template <typename ArnT = Aws::String>
44 CreateLinkResult& WithArn(ArnT&& value) {
45 SetArn(std::forward<ArnT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetId() const { return m_id; }
56 template <typename IdT = Aws::String>
57 void SetId(IdT&& value) {
58 m_idHasBeenSet = true;
59 m_id = std::forward<IdT>(value);
60 }
61 template <typename IdT = Aws::String>
62 CreateLinkResult& WithId(IdT&& value) {
63 SetId(std::forward<IdT>(value));
64 return *this;
65 }
67
69
74 inline const Aws::String& GetLabel() const { return m_label; }
75 template <typename LabelT = Aws::String>
76 void SetLabel(LabelT&& value) {
77 m_labelHasBeenSet = true;
78 m_label = std::forward<LabelT>(value);
79 }
80 template <typename LabelT = Aws::String>
81 CreateLinkResult& WithLabel(LabelT&& value) {
82 SetLabel(std::forward<LabelT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::String& GetLabelTemplate() const { return m_labelTemplate; }
93 template <typename LabelTemplateT = Aws::String>
94 void SetLabelTemplate(LabelTemplateT&& value) {
95 m_labelTemplateHasBeenSet = true;
96 m_labelTemplate = std::forward<LabelTemplateT>(value);
97 }
98 template <typename LabelTemplateT = Aws::String>
99 CreateLinkResult& WithLabelTemplate(LabelTemplateT&& value) {
100 SetLabelTemplate(std::forward<LabelTemplateT>(value));
101 return *this;
102 }
104
106
111 inline const LinkConfiguration& GetLinkConfiguration() const { return m_linkConfiguration; }
112 template <typename LinkConfigurationT = LinkConfiguration>
113 void SetLinkConfiguration(LinkConfigurationT&& value) {
114 m_linkConfigurationHasBeenSet = true;
115 m_linkConfiguration = std::forward<LinkConfigurationT>(value);
116 }
117 template <typename LinkConfigurationT = LinkConfiguration>
118 CreateLinkResult& WithLinkConfiguration(LinkConfigurationT&& value) {
119 SetLinkConfiguration(std::forward<LinkConfigurationT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Vector<Aws::String>& GetResourceTypes() const { return m_resourceTypes; }
129 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
130 void SetResourceTypes(ResourceTypesT&& value) {
131 m_resourceTypesHasBeenSet = true;
132 m_resourceTypes = std::forward<ResourceTypesT>(value);
133 }
134 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
135 CreateLinkResult& WithResourceTypes(ResourceTypesT&& value) {
136 SetResourceTypes(std::forward<ResourceTypesT>(value));
137 return *this;
138 }
139 template <typename ResourceTypesT = Aws::String>
140 CreateLinkResult& AddResourceTypes(ResourceTypesT&& value) {
141 m_resourceTypesHasBeenSet = true;
142 m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetSinkArn() const { return m_sinkArn; }
152 template <typename SinkArnT = Aws::String>
153 void SetSinkArn(SinkArnT&& value) {
154 m_sinkArnHasBeenSet = true;
155 m_sinkArn = std::forward<SinkArnT>(value);
156 }
157 template <typename SinkArnT = Aws::String>
158 CreateLinkResult& WithSinkArn(SinkArnT&& value) {
159 SetSinkArn(std::forward<SinkArnT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
169 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
170 void SetTags(TagsT&& value) {
171 m_tagsHasBeenSet = true;
172 m_tags = std::forward<TagsT>(value);
173 }
174 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
175 CreateLinkResult& WithTags(TagsT&& value) {
176 SetTags(std::forward<TagsT>(value));
177 return *this;
178 }
179 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
180 CreateLinkResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
181 m_tagsHasBeenSet = true;
182 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
183 return *this;
184 }
186
188
189 inline const Aws::String& GetRequestId() const { return m_requestId; }
190 template <typename RequestIdT = Aws::String>
191 void SetRequestId(RequestIdT&& value) {
192 m_requestIdHasBeenSet = true;
193 m_requestId = std::forward<RequestIdT>(value);
194 }
195 template <typename RequestIdT = Aws::String>
196 CreateLinkResult& WithRequestId(RequestIdT&& value) {
197 SetRequestId(std::forward<RequestIdT>(value));
198 return *this;
199 }
201 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
202
203 private:
204 Aws::String m_arn;
205
206 Aws::String m_id;
207
208 Aws::String m_label;
209
210 Aws::String m_labelTemplate;
211
212 LinkConfiguration m_linkConfiguration;
213
214 Aws::Vector<Aws::String> m_resourceTypes;
215
216 Aws::String m_sinkArn;
217
219
220 Aws::String m_requestId;
221 Aws::Http::HttpResponseCode m_HttpResponseCode;
222 bool m_arnHasBeenSet = false;
223 bool m_idHasBeenSet = false;
224 bool m_labelHasBeenSet = false;
225 bool m_labelTemplateHasBeenSet = false;
226 bool m_linkConfigurationHasBeenSet = false;
227 bool m_resourceTypesHasBeenSet = false;
228 bool m_sinkArnHasBeenSet = false;
229 bool m_tagsHasBeenSet = false;
230 bool m_requestIdHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace OAM
235} // namespace Aws
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue