AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
UpdateAgentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/AgentStatus.h>
12#include <aws/quicksight/model/FailedToUpdateAssociation.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 QuickSight {
26namespace Model {
28 public:
29 AWS_QUICKSIGHT_API UpdateAgentResult() = 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 UpdateAgentResult& WithArn(ArnT&& value) {
45 SetArn(std::forward<ArnT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetAgentId() const { return m_agentId; }
55 template <typename AgentIdT = Aws::String>
56 void SetAgentId(AgentIdT&& value) {
57 m_agentIdHasBeenSet = true;
58 m_agentId = std::forward<AgentIdT>(value);
59 }
60 template <typename AgentIdT = Aws::String>
61 UpdateAgentResult& WithAgentId(AgentIdT&& value) {
62 SetAgentId(std::forward<AgentIdT>(value));
63 return *this;
64 }
66
68
71 inline AgentStatus GetAgentStatus() const { return m_agentStatus; }
72 inline void SetAgentStatus(AgentStatus value) {
73 m_agentStatusHasBeenSet = true;
74 m_agentStatus = value;
75 }
77 SetAgentStatus(value);
78 return *this;
79 }
81
83
87 inline const Aws::Vector<FailedToUpdateAssociation>& GetFailedToAddSpaces() const { return m_failedToAddSpaces; }
88 template <typename FailedToAddSpacesT = Aws::Vector<FailedToUpdateAssociation>>
89 void SetFailedToAddSpaces(FailedToAddSpacesT&& value) {
90 m_failedToAddSpacesHasBeenSet = true;
91 m_failedToAddSpaces = std::forward<FailedToAddSpacesT>(value);
92 }
93 template <typename FailedToAddSpacesT = Aws::Vector<FailedToUpdateAssociation>>
94 UpdateAgentResult& WithFailedToAddSpaces(FailedToAddSpacesT&& value) {
95 SetFailedToAddSpaces(std::forward<FailedToAddSpacesT>(value));
96 return *this;
97 }
98 template <typename FailedToAddSpacesT = FailedToUpdateAssociation>
99 UpdateAgentResult& AddFailedToAddSpaces(FailedToAddSpacesT&& value) {
100 m_failedToAddSpacesHasBeenSet = true;
101 m_failedToAddSpaces.emplace_back(std::forward<FailedToAddSpacesT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::Vector<FailedToUpdateAssociation>& GetFailedToRemoveSpaces() const { return m_failedToRemoveSpaces; }
112 template <typename FailedToRemoveSpacesT = Aws::Vector<FailedToUpdateAssociation>>
113 void SetFailedToRemoveSpaces(FailedToRemoveSpacesT&& value) {
114 m_failedToRemoveSpacesHasBeenSet = true;
115 m_failedToRemoveSpaces = std::forward<FailedToRemoveSpacesT>(value);
116 }
117 template <typename FailedToRemoveSpacesT = Aws::Vector<FailedToUpdateAssociation>>
118 UpdateAgentResult& WithFailedToRemoveSpaces(FailedToRemoveSpacesT&& value) {
119 SetFailedToRemoveSpaces(std::forward<FailedToRemoveSpacesT>(value));
120 return *this;
121 }
122 template <typename FailedToRemoveSpacesT = FailedToUpdateAssociation>
123 UpdateAgentResult& AddFailedToRemoveSpaces(FailedToRemoveSpacesT&& value) {
124 m_failedToRemoveSpacesHasBeenSet = true;
125 m_failedToRemoveSpaces.emplace_back(std::forward<FailedToRemoveSpacesT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::Vector<FailedToUpdateAssociation>& GetFailedToAddActionConnectors() const { return m_failedToAddActionConnectors; }
136 template <typename FailedToAddActionConnectorsT = Aws::Vector<FailedToUpdateAssociation>>
137 void SetFailedToAddActionConnectors(FailedToAddActionConnectorsT&& value) {
138 m_failedToAddActionConnectorsHasBeenSet = true;
139 m_failedToAddActionConnectors = std::forward<FailedToAddActionConnectorsT>(value);
140 }
141 template <typename FailedToAddActionConnectorsT = Aws::Vector<FailedToUpdateAssociation>>
142 UpdateAgentResult& WithFailedToAddActionConnectors(FailedToAddActionConnectorsT&& value) {
143 SetFailedToAddActionConnectors(std::forward<FailedToAddActionConnectorsT>(value));
144 return *this;
145 }
146 template <typename FailedToAddActionConnectorsT = FailedToUpdateAssociation>
147 UpdateAgentResult& AddFailedToAddActionConnectors(FailedToAddActionConnectorsT&& value) {
148 m_failedToAddActionConnectorsHasBeenSet = true;
149 m_failedToAddActionConnectors.emplace_back(std::forward<FailedToAddActionConnectorsT>(value));
150 return *this;
151 }
153
155
160 return m_failedToRemoveActionConnectors;
161 }
162 template <typename FailedToRemoveActionConnectorsT = Aws::Vector<FailedToUpdateAssociation>>
163 void SetFailedToRemoveActionConnectors(FailedToRemoveActionConnectorsT&& value) {
164 m_failedToRemoveActionConnectorsHasBeenSet = true;
165 m_failedToRemoveActionConnectors = std::forward<FailedToRemoveActionConnectorsT>(value);
166 }
167 template <typename FailedToRemoveActionConnectorsT = Aws::Vector<FailedToUpdateAssociation>>
168 UpdateAgentResult& WithFailedToRemoveActionConnectors(FailedToRemoveActionConnectorsT&& value) {
169 SetFailedToRemoveActionConnectors(std::forward<FailedToRemoveActionConnectorsT>(value));
170 return *this;
171 }
172 template <typename FailedToRemoveActionConnectorsT = FailedToUpdateAssociation>
173 UpdateAgentResult& AddFailedToRemoveActionConnectors(FailedToRemoveActionConnectorsT&& value) {
174 m_failedToRemoveActionConnectorsHasBeenSet = true;
175 m_failedToRemoveActionConnectors.emplace_back(std::forward<FailedToRemoveActionConnectorsT>(value));
176 return *this;
177 }
179
181
182 inline const Aws::String& GetRequestId() const { return m_requestId; }
183 template <typename RequestIdT = Aws::String>
184 void SetRequestId(RequestIdT&& value) {
185 m_requestIdHasBeenSet = true;
186 m_requestId = std::forward<RequestIdT>(value);
187 }
188 template <typename RequestIdT = Aws::String>
189 UpdateAgentResult& WithRequestId(RequestIdT&& value) {
190 SetRequestId(std::forward<RequestIdT>(value));
191 return *this;
192 }
194 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
195
196 private:
197 Aws::String m_arn;
198
199 Aws::String m_agentId;
200
201 AgentStatus m_agentStatus{AgentStatus::NOT_SET};
202
203 Aws::Vector<FailedToUpdateAssociation> m_failedToAddSpaces;
204
205 Aws::Vector<FailedToUpdateAssociation> m_failedToRemoveSpaces;
206
207 Aws::Vector<FailedToUpdateAssociation> m_failedToAddActionConnectors;
208
209 Aws::Vector<FailedToUpdateAssociation> m_failedToRemoveActionConnectors;
210
211 Aws::String m_requestId;
212 Aws::Http::HttpResponseCode m_HttpResponseCode;
213 bool m_arnHasBeenSet = false;
214 bool m_agentIdHasBeenSet = false;
215 bool m_agentStatusHasBeenSet = false;
216 bool m_failedToAddSpacesHasBeenSet = false;
217 bool m_failedToRemoveSpacesHasBeenSet = false;
218 bool m_failedToAddActionConnectorsHasBeenSet = false;
219 bool m_failedToRemoveActionConnectorsHasBeenSet = false;
220 bool m_requestIdHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace QuickSight
225} // namespace Aws
void SetFailedToRemoveSpaces(FailedToRemoveSpacesT &&value)
AWS_QUICKSIGHT_API UpdateAgentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateAgentResult & AddFailedToAddActionConnectors(FailedToAddActionConnectorsT &&value)
UpdateAgentResult & AddFailedToRemoveActionConnectors(FailedToRemoveActionConnectorsT &&value)
UpdateAgentResult & AddFailedToAddSpaces(FailedToAddSpacesT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetFailedToRemoveActionConnectors(FailedToRemoveActionConnectorsT &&value)
AWS_QUICKSIGHT_API UpdateAgentResult()=default
UpdateAgentResult & AddFailedToRemoveSpaces(FailedToRemoveSpacesT &&value)
UpdateAgentResult & WithFailedToRemoveActionConnectors(FailedToRemoveActionConnectorsT &&value)
void SetFailedToAddActionConnectors(FailedToAddActionConnectorsT &&value)
UpdateAgentResult & WithFailedToAddSpaces(FailedToAddSpacesT &&value)
UpdateAgentResult & WithArn(ArnT &&value)
const Aws::Vector< FailedToUpdateAssociation > & GetFailedToRemoveSpaces() const
const Aws::Vector< FailedToUpdateAssociation > & GetFailedToAddActionConnectors() const
void SetFailedToAddSpaces(FailedToAddSpacesT &&value)
UpdateAgentResult & WithFailedToAddActionConnectors(FailedToAddActionConnectorsT &&value)
UpdateAgentResult & WithFailedToRemoveSpaces(FailedToRemoveSpacesT &&value)
const Aws::Vector< FailedToUpdateAssociation > & GetFailedToRemoveActionConnectors() const
UpdateAgentResult & WithRequestId(RequestIdT &&value)
AWS_QUICKSIGHT_API UpdateAgentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< FailedToUpdateAssociation > & GetFailedToAddSpaces() const
UpdateAgentResult & WithAgentId(AgentIdT &&value)
UpdateAgentResult & WithAgentStatus(AgentStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue