AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchResourcesResult.h
1
6#pragma once
7#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resource-groups/model/ResourceIdentifier.h>
11#include <aws/resource-groups/model/QueryError.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace ResourceGroups
27{
28namespace Model
29{
31 {
32 public:
33 AWS_RESOURCEGROUPS_API SearchResourcesResult();
36
37
39
43 inline const Aws::Vector<ResourceIdentifier>& GetResourceIdentifiers() const{ return m_resourceIdentifiers; }
44 inline void SetResourceIdentifiers(const Aws::Vector<ResourceIdentifier>& value) { m_resourceIdentifiers = value; }
45 inline void SetResourceIdentifiers(Aws::Vector<ResourceIdentifier>&& value) { m_resourceIdentifiers = std::move(value); }
48 inline SearchResourcesResult& AddResourceIdentifiers(const ResourceIdentifier& value) { m_resourceIdentifiers.push_back(value); return *this; }
49 inline SearchResourcesResult& AddResourceIdentifiers(ResourceIdentifier&& value) { m_resourceIdentifiers.push_back(std::move(value)); return *this; }
51
53
60 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
61 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
62 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
63 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
64 inline SearchResourcesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
65 inline SearchResourcesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
66 inline SearchResourcesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
68
70
78 inline const Aws::Vector<QueryError>& GetQueryErrors() const{ return m_queryErrors; }
79 inline void SetQueryErrors(const Aws::Vector<QueryError>& value) { m_queryErrors = value; }
80 inline void SetQueryErrors(Aws::Vector<QueryError>&& value) { m_queryErrors = std::move(value); }
81 inline SearchResourcesResult& WithQueryErrors(const Aws::Vector<QueryError>& value) { SetQueryErrors(value); return *this;}
82 inline SearchResourcesResult& WithQueryErrors(Aws::Vector<QueryError>&& value) { SetQueryErrors(std::move(value)); return *this;}
83 inline SearchResourcesResult& AddQueryErrors(const QueryError& value) { m_queryErrors.push_back(value); return *this; }
84 inline SearchResourcesResult& AddQueryErrors(QueryError&& value) { m_queryErrors.push_back(std::move(value)); return *this; }
86
88
89 inline const Aws::String& GetRequestId() const{ return m_requestId; }
90 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
91 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
92 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
93 inline SearchResourcesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
94 inline SearchResourcesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
95 inline SearchResourcesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
97 private:
98
99 Aws::Vector<ResourceIdentifier> m_resourceIdentifiers;
100
101 Aws::String m_nextToken;
102
103 Aws::Vector<QueryError> m_queryErrors;
104
105 Aws::String m_requestId;
106 };
107
108} // namespace Model
109} // namespace ResourceGroups
110} // namespace Aws
void SetResourceIdentifiers(Aws::Vector< ResourceIdentifier > &&value)
SearchResourcesResult & WithNextToken(const char *value)
SearchResourcesResult & AddQueryErrors(const QueryError &value)
SearchResourcesResult & WithQueryErrors(Aws::Vector< QueryError > &&value)
SearchResourcesResult & WithNextToken(Aws::String &&value)
void SetQueryErrors(const Aws::Vector< QueryError > &value)
SearchResourcesResult & WithRequestId(Aws::String &&value)
void SetResourceIdentifiers(const Aws::Vector< ResourceIdentifier > &value)
SearchResourcesResult & AddQueryErrors(QueryError &&value)
void SetQueryErrors(Aws::Vector< QueryError > &&value)
SearchResourcesResult & AddResourceIdentifiers(ResourceIdentifier &&value)
const Aws::Vector< ResourceIdentifier > & GetResourceIdentifiers() const
SearchResourcesResult & WithRequestId(const char *value)
SearchResourcesResult & WithNextToken(const Aws::String &value)
SearchResourcesResult & WithQueryErrors(const Aws::Vector< QueryError > &value)
SearchResourcesResult & WithResourceIdentifiers(Aws::Vector< ResourceIdentifier > &&value)
const Aws::Vector< QueryError > & GetQueryErrors() const
AWS_RESOURCEGROUPS_API SearchResourcesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchResourcesResult & WithResourceIdentifiers(const Aws::Vector< ResourceIdentifier > &value)
AWS_RESOURCEGROUPS_API SearchResourcesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchResourcesResult & AddResourceIdentifiers(const ResourceIdentifier &value)
SearchResourcesResult & WithRequestId(const Aws::String &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