AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
SearchResourcesResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
10#include <aws/resource-groups/model/QueryError.h>
11#include <aws/resource-groups/model/ResourceIdentifier.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 ResourceGroups {
25namespace Model {
27 public:
28 AWS_RESOURCEGROUPS_API SearchResourcesResult() = default;
31
33
37 inline const Aws::Vector<ResourceIdentifier>& GetResourceIdentifiers() const { return m_resourceIdentifiers; }
38 template <typename ResourceIdentifiersT = Aws::Vector<ResourceIdentifier>>
39 void SetResourceIdentifiers(ResourceIdentifiersT&& value) {
40 m_resourceIdentifiersHasBeenSet = true;
41 m_resourceIdentifiers = std::forward<ResourceIdentifiersT>(value);
42 }
43 template <typename ResourceIdentifiersT = Aws::Vector<ResourceIdentifier>>
44 SearchResourcesResult& WithResourceIdentifiers(ResourceIdentifiersT&& value) {
45 SetResourceIdentifiers(std::forward<ResourceIdentifiersT>(value));
46 return *this;
47 }
48 template <typename ResourceIdentifiersT = ResourceIdentifier>
49 SearchResourcesResult& AddResourceIdentifiers(ResourceIdentifiersT&& value) {
50 m_resourceIdentifiersHasBeenSet = true;
51 m_resourceIdentifiers.emplace_back(std::forward<ResourceIdentifiersT>(value));
52 return *this;
53 }
55
57
64 inline const Aws::String& GetNextToken() const { return m_nextToken; }
65 template <typename NextTokenT = Aws::String>
66 void SetNextToken(NextTokenT&& value) {
67 m_nextTokenHasBeenSet = true;
68 m_nextToken = std::forward<NextTokenT>(value);
69 }
70 template <typename NextTokenT = Aws::String>
71 SearchResourcesResult& WithNextToken(NextTokenT&& value) {
72 SetNextToken(std::forward<NextTokenT>(value));
73 return *this;
74 }
76
78
86 inline const Aws::Vector<QueryError>& GetQueryErrors() const { return m_queryErrors; }
87 template <typename QueryErrorsT = Aws::Vector<QueryError>>
88 void SetQueryErrors(QueryErrorsT&& value) {
89 m_queryErrorsHasBeenSet = true;
90 m_queryErrors = std::forward<QueryErrorsT>(value);
91 }
92 template <typename QueryErrorsT = Aws::Vector<QueryError>>
93 SearchResourcesResult& WithQueryErrors(QueryErrorsT&& value) {
94 SetQueryErrors(std::forward<QueryErrorsT>(value));
95 return *this;
96 }
97 template <typename QueryErrorsT = QueryError>
98 SearchResourcesResult& AddQueryErrors(QueryErrorsT&& value) {
99 m_queryErrorsHasBeenSet = true;
100 m_queryErrors.emplace_back(std::forward<QueryErrorsT>(value));
101 return *this;
102 }
104
106
107 inline const Aws::String& GetRequestId() const { return m_requestId; }
108 template <typename RequestIdT = Aws::String>
109 void SetRequestId(RequestIdT&& value) {
110 m_requestIdHasBeenSet = true;
111 m_requestId = std::forward<RequestIdT>(value);
112 }
113 template <typename RequestIdT = Aws::String>
115 SetRequestId(std::forward<RequestIdT>(value));
116 return *this;
117 }
119 private:
120 Aws::Vector<ResourceIdentifier> m_resourceIdentifiers;
121
122 Aws::String m_nextToken;
123
124 Aws::Vector<QueryError> m_queryErrors;
125
126 Aws::String m_requestId;
127 bool m_resourceIdentifiersHasBeenSet = false;
128 bool m_nextTokenHasBeenSet = false;
129 bool m_queryErrorsHasBeenSet = false;
130 bool m_requestIdHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace ResourceGroups
135} // namespace Aws
AWS_RESOURCEGROUPS_API SearchResourcesResult()=default
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