AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
36
37
39
43 inline const Aws::Vector<ListGroupResourcesItem>& GetResources() const { return m_resources; }
44 template<typename ResourcesT = Aws::Vector<ListGroupResourcesItem>>
45 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
46 template<typename ResourcesT = Aws::Vector<ListGroupResourcesItem>>
47 ListGroupResourcesResult& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
48 template<typename ResourcesT = ListGroupResourcesItem>
49 ListGroupResourcesResult& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
51
53
60 inline const Aws::String& GetNextToken() const { return m_nextToken; }
61 template<typename NextTokenT = Aws::String>
62 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
63 template<typename NextTokenT = Aws::String>
64 ListGroupResourcesResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
66
68
76 inline const Aws::Vector<QueryError>& GetQueryErrors() const { return m_queryErrors; }
77 template<typename QueryErrorsT = Aws::Vector<QueryError>>
78 void SetQueryErrors(QueryErrorsT&& value) { m_queryErrorsHasBeenSet = true; m_queryErrors = std::forward<QueryErrorsT>(value); }
79 template<typename QueryErrorsT = Aws::Vector<QueryError>>
80 ListGroupResourcesResult& WithQueryErrors(QueryErrorsT&& value) { SetQueryErrors(std::forward<QueryErrorsT>(value)); return *this;}
81 template<typename QueryErrorsT = QueryError>
82 ListGroupResourcesResult& AddQueryErrors(QueryErrorsT&& value) { m_queryErrorsHasBeenSet = true; m_queryErrors.emplace_back(std::forward<QueryErrorsT>(value)); return *this; }
84
86
87 inline const Aws::String& GetRequestId() const { return m_requestId; }
88 template<typename RequestIdT = Aws::String>
89 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
90 template<typename RequestIdT = Aws::String>
91 ListGroupResourcesResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
93 private:
94
96 bool m_resourcesHasBeenSet = false;
97
98 Aws::String m_nextToken;
99 bool m_nextTokenHasBeenSet = false;
100
101 Aws::Vector<QueryError> m_queryErrors;
102 bool m_queryErrorsHasBeenSet = false;
103
104 Aws::String m_requestId;
105 bool m_requestIdHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace ResourceGroups
110} // namespace Aws
ListGroupResourcesResult & WithQueryErrors(QueryErrorsT &&value)
ListGroupResourcesResult & AddResources(ResourcesT &&value)
ListGroupResourcesResult & WithResources(ResourcesT &&value)
AWS_RESOURCEGROUPS_API ListGroupResourcesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< ListGroupResourcesItem > & GetResources() const
AWS_RESOURCEGROUPS_API ListGroupResourcesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_RESOURCEGROUPS_API ListGroupResourcesResult()=default
ListGroupResourcesResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< QueryError > & GetQueryErrors() const
ListGroupResourcesResult & AddQueryErrors(QueryErrorsT &&value)
ListGroupResourcesResult & WithRequestId(RequestIdT &&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