AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
UpdateDiscovererResult.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/schemas/Schemas_EXPORTS.h>
11#include <aws/schemas/model/DiscovererState.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 Schemas {
25namespace Model {
27 public:
28 AWS_SCHEMAS_API UpdateDiscovererResult() = default;
31
33
36 inline const Aws::String& GetDescription() const { return m_description; }
37 template <typename DescriptionT = Aws::String>
38 void SetDescription(DescriptionT&& value) {
39 m_descriptionHasBeenSet = true;
40 m_description = std::forward<DescriptionT>(value);
41 }
42 template <typename DescriptionT = Aws::String>
43 UpdateDiscovererResult& WithDescription(DescriptionT&& value) {
44 SetDescription(std::forward<DescriptionT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetDiscovererArn() const { return m_discovererArn; }
54 template <typename DiscovererArnT = Aws::String>
55 void SetDiscovererArn(DiscovererArnT&& value) {
56 m_discovererArnHasBeenSet = true;
57 m_discovererArn = std::forward<DiscovererArnT>(value);
58 }
59 template <typename DiscovererArnT = Aws::String>
60 UpdateDiscovererResult& WithDiscovererArn(DiscovererArnT&& value) {
61 SetDiscovererArn(std::forward<DiscovererArnT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetDiscovererId() const { return m_discovererId; }
71 template <typename DiscovererIdT = Aws::String>
72 void SetDiscovererId(DiscovererIdT&& value) {
73 m_discovererIdHasBeenSet = true;
74 m_discovererId = std::forward<DiscovererIdT>(value);
75 }
76 template <typename DiscovererIdT = Aws::String>
77 UpdateDiscovererResult& WithDiscovererId(DiscovererIdT&& value) {
78 SetDiscovererId(std::forward<DiscovererIdT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
88 template <typename SourceArnT = Aws::String>
89 void SetSourceArn(SourceArnT&& value) {
90 m_sourceArnHasBeenSet = true;
91 m_sourceArn = std::forward<SourceArnT>(value);
92 }
93 template <typename SourceArnT = Aws::String>
95 SetSourceArn(std::forward<SourceArnT>(value));
96 return *this;
97 }
99
101
104 inline DiscovererState GetState() const { return m_state; }
105 inline void SetState(DiscovererState value) {
106 m_stateHasBeenSet = true;
107 m_state = value;
108 }
110 SetState(value);
111 return *this;
112 }
114
116
120 inline bool GetCrossAccount() const { return m_crossAccount; }
121 inline void SetCrossAccount(bool value) {
122 m_crossAccountHasBeenSet = true;
123 m_crossAccount = value;
124 }
126 SetCrossAccount(value);
127 return *this;
128 }
130
132
135 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
136 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
137 void SetTags(TagsT&& value) {
138 m_tagsHasBeenSet = true;
139 m_tags = std::forward<TagsT>(value);
140 }
141 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 SetTags(std::forward<TagsT>(value));
144 return *this;
145 }
146 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
147 UpdateDiscovererResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
150 return *this;
151 }
153
155
156 inline const Aws::String& GetRequestId() const { return m_requestId; }
157 template <typename RequestIdT = Aws::String>
158 void SetRequestId(RequestIdT&& value) {
159 m_requestIdHasBeenSet = true;
160 m_requestId = std::forward<RequestIdT>(value);
161 }
162 template <typename RequestIdT = Aws::String>
164 SetRequestId(std::forward<RequestIdT>(value));
165 return *this;
166 }
168 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
169
170 private:
171 Aws::String m_description;
172
173 Aws::String m_discovererArn;
174
175 Aws::String m_discovererId;
176
177 Aws::String m_sourceArn;
178
180
181 bool m_crossAccount{false};
182
184
185 Aws::String m_requestId;
186 Aws::Http::HttpResponseCode m_HttpResponseCode;
187 bool m_descriptionHasBeenSet = false;
188 bool m_discovererArnHasBeenSet = false;
189 bool m_discovererIdHasBeenSet = false;
190 bool m_sourceArnHasBeenSet = false;
191 bool m_stateHasBeenSet = false;
192 bool m_crossAccountHasBeenSet = false;
193 bool m_tagsHasBeenSet = false;
194 bool m_requestIdHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace Schemas
199} // namespace Aws
UpdateDiscovererResult & WithTags(TagsT &&value)
UpdateDiscovererResult & WithRequestId(RequestIdT &&value)
UpdateDiscovererResult & WithDescription(DescriptionT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_SCHEMAS_API UpdateDiscovererResult()=default
UpdateDiscovererResult & WithDiscovererId(DiscovererIdT &&value)
AWS_SCHEMAS_API UpdateDiscovererResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateDiscovererResult & WithCrossAccount(bool value)
UpdateDiscovererResult & WithSourceArn(SourceArnT &&value)
UpdateDiscovererResult & WithState(DiscovererState value)
AWS_SCHEMAS_API UpdateDiscovererResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
UpdateDiscovererResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
UpdateDiscovererResult & WithDiscovererArn(DiscovererArnT &&value)
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
Aws::Utils::Json::JsonValue JsonValue