AWS SDK for C++

AWS SDK for C++ Version 1.11.910

Loading...
Searching...
No Matches
RetrieveSdkResult.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/qconnect/QConnect_EXPORTS.h>
11#include <aws/qconnect/model/RetrieveError.h>
12#include <aws/qconnect/model/RetrieveResult.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 QConnect {
26namespace Model {
28 public:
29 AWS_QCONNECT_API RetrieveSdkResult() = default;
32
34
37 inline const Aws::Vector<RetrieveResult>& GetResults() const { return m_results; }
38 template <typename ResultsT = Aws::Vector<RetrieveResult>>
39 void SetResults(ResultsT&& value) {
40 m_resultsHasBeenSet = true;
41 m_results = std::forward<ResultsT>(value);
42 }
43 template <typename ResultsT = Aws::Vector<RetrieveResult>>
45 SetResults(std::forward<ResultsT>(value));
46 return *this;
47 }
48 template <typename ResultsT = RetrieveResult>
50 m_resultsHasBeenSet = true;
51 m_results.emplace_back(std::forward<ResultsT>(value));
52 return *this;
53 }
55
57
64 inline const Aws::Vector<RetrieveError>& GetErrors() const { return m_errors; }
65 template <typename ErrorsT = Aws::Vector<RetrieveError>>
66 void SetErrors(ErrorsT&& value) {
67 m_errorsHasBeenSet = true;
68 m_errors = std::forward<ErrorsT>(value);
69 }
70 template <typename ErrorsT = Aws::Vector<RetrieveError>>
72 SetErrors(std::forward<ErrorsT>(value));
73 return *this;
74 }
75 template <typename ErrorsT = RetrieveError>
77 m_errorsHasBeenSet = true;
78 m_errors.emplace_back(std::forward<ErrorsT>(value));
79 return *this;
80 }
82
84
85 inline const Aws::String& GetRequestId() const { return m_requestId; }
86 template <typename RequestIdT = Aws::String>
87 void SetRequestId(RequestIdT&& value) {
88 m_requestIdHasBeenSet = true;
89 m_requestId = std::forward<RequestIdT>(value);
90 }
91 template <typename RequestIdT = Aws::String>
93 SetRequestId(std::forward<RequestIdT>(value));
94 return *this;
95 }
97 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
98
99 private:
101
103
104 Aws::String m_requestId;
105 Aws::Http::HttpResponseCode m_HttpResponseCode;
106 bool m_resultsHasBeenSet = false;
107 bool m_errorsHasBeenSet = false;
108 bool m_requestIdHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace QConnect
113} // namespace Aws
const Aws::String & GetRequestId() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
RetrieveSdkResult & WithRequestId(RequestIdT &&value)
RetrieveSdkResult & WithResults(ResultsT &&value)
AWS_QCONNECT_API RetrieveSdkResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< RetrieveError > & GetErrors() const
AWS_QCONNECT_API RetrieveSdkResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RetrieveSdkResult & AddErrors(ErrorsT &&value)
const Aws::Vector< RetrieveResult > & GetResults() const
RetrieveSdkResult & WithErrors(ErrorsT &&value)
RetrieveSdkResult & AddResults(ResultsT &&value)
AWS_QCONNECT_API RetrieveSdkResult()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue