AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateLinkResult.h
1
6#pragma once
7#include <aws/oam/OAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/oam/model/LinkConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace OAM
27{
28namespace Model
29{
31 {
32 public:
33 AWS_OAM_API CreateLinkResult() = default;
36
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 template<typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
45 template<typename ArnT = Aws::String>
46 CreateLinkResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
48
50
54 inline const Aws::String& GetId() const { return m_id; }
55 template<typename IdT = Aws::String>
56 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
57 template<typename IdT = Aws::String>
58 CreateLinkResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
60
62
67 inline const Aws::String& GetLabel() const { return m_label; }
68 template<typename LabelT = Aws::String>
69 void SetLabel(LabelT&& value) { m_labelHasBeenSet = true; m_label = std::forward<LabelT>(value); }
70 template<typename LabelT = Aws::String>
71 CreateLinkResult& WithLabel(LabelT&& value) { SetLabel(std::forward<LabelT>(value)); return *this;}
73
75
79 inline const Aws::String& GetLabelTemplate() const { return m_labelTemplate; }
80 template<typename LabelTemplateT = Aws::String>
81 void SetLabelTemplate(LabelTemplateT&& value) { m_labelTemplateHasBeenSet = true; m_labelTemplate = std::forward<LabelTemplateT>(value); }
82 template<typename LabelTemplateT = Aws::String>
83 CreateLinkResult& WithLabelTemplate(LabelTemplateT&& value) { SetLabelTemplate(std::forward<LabelTemplateT>(value)); return *this;}
85
87
92 inline const LinkConfiguration& GetLinkConfiguration() const { return m_linkConfiguration; }
93 template<typename LinkConfigurationT = LinkConfiguration>
94 void SetLinkConfiguration(LinkConfigurationT&& value) { m_linkConfigurationHasBeenSet = true; m_linkConfiguration = std::forward<LinkConfigurationT>(value); }
95 template<typename LinkConfigurationT = LinkConfiguration>
96 CreateLinkResult& WithLinkConfiguration(LinkConfigurationT&& value) { SetLinkConfiguration(std::forward<LinkConfigurationT>(value)); return *this;}
98
100
103 inline const Aws::Vector<Aws::String>& GetResourceTypes() const { return m_resourceTypes; }
104 template<typename ResourceTypesT = Aws::Vector<Aws::String>>
105 void SetResourceTypes(ResourceTypesT&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::forward<ResourceTypesT>(value); }
106 template<typename ResourceTypesT = Aws::Vector<Aws::String>>
107 CreateLinkResult& WithResourceTypes(ResourceTypesT&& value) { SetResourceTypes(std::forward<ResourceTypesT>(value)); return *this;}
108 template<typename ResourceTypesT = Aws::String>
109 CreateLinkResult& AddResourceTypes(ResourceTypesT&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value)); return *this; }
111
113
116 inline const Aws::String& GetSinkArn() const { return m_sinkArn; }
117 template<typename SinkArnT = Aws::String>
118 void SetSinkArn(SinkArnT&& value) { m_sinkArnHasBeenSet = true; m_sinkArn = std::forward<SinkArnT>(value); }
119 template<typename SinkArnT = Aws::String>
120 CreateLinkResult& WithSinkArn(SinkArnT&& value) { SetSinkArn(std::forward<SinkArnT>(value)); return *this;}
122
124
127 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
128 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
130 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 CreateLinkResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
132 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
133 CreateLinkResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
134 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
135 }
137
139
140 inline const Aws::String& GetRequestId() const { return m_requestId; }
141 template<typename RequestIdT = Aws::String>
142 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
143 template<typename RequestIdT = Aws::String>
144 CreateLinkResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
146 private:
147
148 Aws::String m_arn;
149 bool m_arnHasBeenSet = false;
150
151 Aws::String m_id;
152 bool m_idHasBeenSet = false;
153
154 Aws::String m_label;
155 bool m_labelHasBeenSet = false;
156
157 Aws::String m_labelTemplate;
158 bool m_labelTemplateHasBeenSet = false;
159
160 LinkConfiguration m_linkConfiguration;
161 bool m_linkConfigurationHasBeenSet = false;
162
163 Aws::Vector<Aws::String> m_resourceTypes;
164 bool m_resourceTypesHasBeenSet = false;
165
166 Aws::String m_sinkArn;
167 bool m_sinkArnHasBeenSet = false;
168
170 bool m_tagsHasBeenSet = false;
171
172 Aws::String m_requestId;
173 bool m_requestIdHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace OAM
178} // 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