AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListGroupResourcesResult.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/ListGroupResourcesItem.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 ListGroupResourcesResult();
36
37
39
43 inline const Aws::Vector<ListGroupResourcesItem>& GetResources() const{ return m_resources; }
44 inline void SetResources(const Aws::Vector<ListGroupResourcesItem>& value) { m_resources = value; }
45 inline void SetResources(Aws::Vector<ListGroupResourcesItem>&& value) { m_resources = std::move(value); }
48 inline ListGroupResourcesResult& AddResources(const ListGroupResourcesItem& value) { m_resources.push_back(value); return *this; }
49 inline ListGroupResourcesResult& AddResources(ListGroupResourcesItem&& value) { m_resources.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 ListGroupResourcesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
65 inline ListGroupResourcesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
66 inline ListGroupResourcesResult& 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); }
82 inline ListGroupResourcesResult& WithQueryErrors(Aws::Vector<QueryError>&& value) { SetQueryErrors(std::move(value)); return *this;}
83 inline ListGroupResourcesResult& AddQueryErrors(const QueryError& value) { m_queryErrors.push_back(value); return *this; }
84 inline ListGroupResourcesResult& 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 ListGroupResourcesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
94 inline ListGroupResourcesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
95 inline ListGroupResourcesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
97 private:
98
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
ListGroupResourcesResult & WithRequestId(Aws::String &&value)
ListGroupResourcesResult & WithNextToken(const char *value)
ListGroupResourcesResult & WithRequestId(const Aws::String &value)
ListGroupResourcesResult & WithQueryErrors(Aws::Vector< QueryError > &&value)
AWS_RESOURCEGROUPS_API ListGroupResourcesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListGroupResourcesResult & AddQueryErrors(const QueryError &value)
const Aws::Vector< ListGroupResourcesItem > & GetResources() const
ListGroupResourcesResult & WithRequestId(const char *value)
AWS_RESOURCEGROUPS_API ListGroupResourcesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListGroupResourcesResult & AddResources(ListGroupResourcesItem &&value)
ListGroupResourcesResult & WithNextToken(const Aws::String &value)
ListGroupResourcesResult & AddResources(const ListGroupResourcesItem &value)
ListGroupResourcesResult & WithResources(const Aws::Vector< ListGroupResourcesItem > &value)
ListGroupResourcesResult & WithResources(Aws::Vector< ListGroupResourcesItem > &&value)
void SetResources(const Aws::Vector< ListGroupResourcesItem > &value)
ListGroupResourcesResult & AddQueryErrors(QueryError &&value)
const Aws::Vector< QueryError > & GetQueryErrors() const
ListGroupResourcesResult & WithNextToken(Aws::String &&value)
ListGroupResourcesResult & WithQueryErrors(const Aws::Vector< QueryError > &value)
void SetQueryErrors(const Aws::Vector< QueryError > &value)
void SetResources(Aws::Vector< ListGroupResourcesItem > &&value)
void SetQueryErrors(Aws::Vector< QueryError > &&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