AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
SearchResourcesResult.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/resource-groups/ResourceGroups_EXPORTS.h>
11#include <aws/resource-groups/model/QueryError.h>
12#include <aws/resource-groups/model/ResourceIdentifier.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 ResourceGroups {
26namespace Model {
28 public:
29 AWS_RESOURCEGROUPS_API SearchResourcesResult() = default;
32
34
38 inline const Aws::Vector<ResourceIdentifier>& GetResourceIdentifiers() const { return m_resourceIdentifiers; }
39 template <typename ResourceIdentifiersT = Aws::Vector<ResourceIdentifier>>
40 void SetResourceIdentifiers(ResourceIdentifiersT&& value) {
41 m_resourceIdentifiersHasBeenSet = true;
42 m_resourceIdentifiers = std::forward<ResourceIdentifiersT>(value);
43 }
44 template <typename ResourceIdentifiersT = Aws::Vector<ResourceIdentifier>>
45 SearchResourcesResult& WithResourceIdentifiers(ResourceIdentifiersT&& value) {
46 SetResourceIdentifiers(std::forward<ResourceIdentifiersT>(value));
47 return *this;
48 }
49 template <typename ResourceIdentifiersT = ResourceIdentifier>
50 SearchResourcesResult& AddResourceIdentifiers(ResourceIdentifiersT&& value) {
51 m_resourceIdentifiersHasBeenSet = true;
52 m_resourceIdentifiers.emplace_back(std::forward<ResourceIdentifiersT>(value));
53 return *this;
54 }
56
58
65 inline const Aws::String& GetNextToken() const { return m_nextToken; }
66 template <typename NextTokenT = Aws::String>
67 void SetNextToken(NextTokenT&& value) {
68 m_nextTokenHasBeenSet = true;
69 m_nextToken = std::forward<NextTokenT>(value);
70 }
71 template <typename NextTokenT = Aws::String>
72 SearchResourcesResult& WithNextToken(NextTokenT&& value) {
73 SetNextToken(std::forward<NextTokenT>(value));
74 return *this;
75 }
77
79
87 inline const Aws::Vector<QueryError>& GetQueryErrors() const { return m_queryErrors; }
88 template <typename QueryErrorsT = Aws::Vector<QueryError>>
89 void SetQueryErrors(QueryErrorsT&& value) {
90 m_queryErrorsHasBeenSet = true;
91 m_queryErrors = std::forward<QueryErrorsT>(value);
92 }
93 template <typename QueryErrorsT = Aws::Vector<QueryError>>
94 SearchResourcesResult& WithQueryErrors(QueryErrorsT&& value) {
95 SetQueryErrors(std::forward<QueryErrorsT>(value));
96 return *this;
97 }
98 template <typename QueryErrorsT = QueryError>
99 SearchResourcesResult& AddQueryErrors(QueryErrorsT&& value) {
100 m_queryErrorsHasBeenSet = true;
101 m_queryErrors.emplace_back(std::forward<QueryErrorsT>(value));
102 return *this;
103 }
105
107
108 inline const Aws::String& GetRequestId() const { return m_requestId; }
109 template <typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) {
111 m_requestIdHasBeenSet = true;
112 m_requestId = std::forward<RequestIdT>(value);
113 }
114 template <typename RequestIdT = Aws::String>
116 SetRequestId(std::forward<RequestIdT>(value));
117 return *this;
118 }
120 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
121
122 private:
123 Aws::Vector<ResourceIdentifier> m_resourceIdentifiers;
124
125 Aws::String m_nextToken;
126
127 Aws::Vector<QueryError> m_queryErrors;
128
129 Aws::String m_requestId;
130 Aws::Http::HttpResponseCode m_HttpResponseCode;
131 bool m_resourceIdentifiersHasBeenSet = false;
132 bool m_nextTokenHasBeenSet = false;
133 bool m_queryErrorsHasBeenSet = false;
134 bool m_requestIdHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace ResourceGroups
139} // namespace Aws
AWS_RESOURCEGROUPS_API SearchResourcesResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
SearchResourcesResult & WithRequestId(RequestIdT &&value)
SearchResourcesResult & AddResourceIdentifiers(ResourceIdentifiersT &&value)
SearchResourcesResult & WithResourceIdentifiers(ResourceIdentifiersT &&value)
const Aws::Vector< ResourceIdentifier > & GetResourceIdentifiers() const
SearchResourcesResult & WithQueryErrors(QueryErrorsT &&value)
const Aws::Vector< QueryError > & GetQueryErrors() const
SearchResourcesResult & WithNextToken(NextTokenT &&value)
AWS_RESOURCEGROUPS_API SearchResourcesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_RESOURCEGROUPS_API SearchResourcesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchResourcesResult & AddQueryErrors(QueryErrorsT &&value)
void SetResourceIdentifiers(ResourceIdentifiersT &&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