AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
CreateLinkResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/oam/OAM_EXPORTS.h>
11#include <aws/oam/model/LinkConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace OAM {
25namespace Model {
27 public:
28 AWS_OAM_API CreateLinkResult() = default;
31
33
36 inline const Aws::String& GetArn() const { return m_arn; }
37 template <typename ArnT = Aws::String>
38 void SetArn(ArnT&& value) {
39 m_arnHasBeenSet = true;
40 m_arn = std::forward<ArnT>(value);
41 }
42 template <typename ArnT = Aws::String>
43 CreateLinkResult& WithArn(ArnT&& value) {
44 SetArn(std::forward<ArnT>(value));
45 return *this;
46 }
48
50
54 inline const Aws::String& GetId() const { return m_id; }
55 template <typename IdT = Aws::String>
56 void SetId(IdT&& value) {
57 m_idHasBeenSet = true;
58 m_id = std::forward<IdT>(value);
59 }
60 template <typename IdT = Aws::String>
61 CreateLinkResult& WithId(IdT&& value) {
62 SetId(std::forward<IdT>(value));
63 return *this;
64 }
66
68
73 inline const Aws::String& GetLabel() const { return m_label; }
74 template <typename LabelT = Aws::String>
75 void SetLabel(LabelT&& value) {
76 m_labelHasBeenSet = true;
77 m_label = std::forward<LabelT>(value);
78 }
79 template <typename LabelT = Aws::String>
80 CreateLinkResult& WithLabel(LabelT&& value) {
81 SetLabel(std::forward<LabelT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetLabelTemplate() const { return m_labelTemplate; }
92 template <typename LabelTemplateT = Aws::String>
93 void SetLabelTemplate(LabelTemplateT&& value) {
94 m_labelTemplateHasBeenSet = true;
95 m_labelTemplate = std::forward<LabelTemplateT>(value);
96 }
97 template <typename LabelTemplateT = Aws::String>
98 CreateLinkResult& WithLabelTemplate(LabelTemplateT&& value) {
99 SetLabelTemplate(std::forward<LabelTemplateT>(value));
100 return *this;
101 }
103
105
110 inline const LinkConfiguration& GetLinkConfiguration() const { return m_linkConfiguration; }
111 template <typename LinkConfigurationT = LinkConfiguration>
112 void SetLinkConfiguration(LinkConfigurationT&& value) {
113 m_linkConfigurationHasBeenSet = true;
114 m_linkConfiguration = std::forward<LinkConfigurationT>(value);
115 }
116 template <typename LinkConfigurationT = LinkConfiguration>
117 CreateLinkResult& WithLinkConfiguration(LinkConfigurationT&& value) {
118 SetLinkConfiguration(std::forward<LinkConfigurationT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Vector<Aws::String>& GetResourceTypes() const { return m_resourceTypes; }
128 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
129 void SetResourceTypes(ResourceTypesT&& value) {
130 m_resourceTypesHasBeenSet = true;
131 m_resourceTypes = std::forward<ResourceTypesT>(value);
132 }
133 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
134 CreateLinkResult& WithResourceTypes(ResourceTypesT&& value) {
135 SetResourceTypes(std::forward<ResourceTypesT>(value));
136 return *this;
137 }
138 template <typename ResourceTypesT = Aws::String>
139 CreateLinkResult& AddResourceTypes(ResourceTypesT&& value) {
140 m_resourceTypesHasBeenSet = true;
141 m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetSinkArn() const { return m_sinkArn; }
151 template <typename SinkArnT = Aws::String>
152 void SetSinkArn(SinkArnT&& value) {
153 m_sinkArnHasBeenSet = true;
154 m_sinkArn = std::forward<SinkArnT>(value);
155 }
156 template <typename SinkArnT = Aws::String>
157 CreateLinkResult& WithSinkArn(SinkArnT&& value) {
158 SetSinkArn(std::forward<SinkArnT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
168 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
169 void SetTags(TagsT&& value) {
170 m_tagsHasBeenSet = true;
171 m_tags = std::forward<TagsT>(value);
172 }
173 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
174 CreateLinkResult& WithTags(TagsT&& value) {
175 SetTags(std::forward<TagsT>(value));
176 return *this;
177 }
178 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
179 CreateLinkResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
180 m_tagsHasBeenSet = true;
181 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
182 return *this;
183 }
185
187
188 inline const Aws::String& GetRequestId() const { return m_requestId; }
189 template <typename RequestIdT = Aws::String>
190 void SetRequestId(RequestIdT&& value) {
191 m_requestIdHasBeenSet = true;
192 m_requestId = std::forward<RequestIdT>(value);
193 }
194 template <typename RequestIdT = Aws::String>
195 CreateLinkResult& WithRequestId(RequestIdT&& value) {
196 SetRequestId(std::forward<RequestIdT>(value));
197 return *this;
198 }
200 private:
201 Aws::String m_arn;
202
203 Aws::String m_id;
204
205 Aws::String m_label;
206
207 Aws::String m_labelTemplate;
208
209 LinkConfiguration m_linkConfiguration;
210
211 Aws::Vector<Aws::String> m_resourceTypes;
212
213 Aws::String m_sinkArn;
214
216
217 Aws::String m_requestId;
218 bool m_arnHasBeenSet = false;
219 bool m_idHasBeenSet = false;
220 bool m_labelHasBeenSet = false;
221 bool m_labelTemplateHasBeenSet = false;
222 bool m_linkConfigurationHasBeenSet = false;
223 bool m_resourceTypesHasBeenSet = false;
224 bool m_sinkArnHasBeenSet = false;
225 bool m_tagsHasBeenSet = false;
226 bool m_requestIdHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace OAM
231} // 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