AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListResourcesResult.h
1
6#pragma once
7#include <aws/cloudcontrol/CloudControlApi_EXPORTS.h>
8#include <aws/cloudcontrol/model/ResourceDescription.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CloudControlApi {
24namespace Model {
26 public:
27 AWS_CLOUDCONTROLAPI_API ListResourcesResult() = default;
30
32
35 inline const Aws::String& GetTypeName() const { return m_typeName; }
36 template <typename TypeNameT = Aws::String>
37 void SetTypeName(TypeNameT&& value) {
38 m_typeNameHasBeenSet = true;
39 m_typeName = std::forward<TypeNameT>(value);
40 }
41 template <typename TypeNameT = Aws::String>
42 ListResourcesResult& WithTypeName(TypeNameT&& value) {
43 SetTypeName(std::forward<TypeNameT>(value));
44 return *this;
45 }
47
49
53 inline const Aws::Vector<ResourceDescription>& GetResourceDescriptions() const { return m_resourceDescriptions; }
54 template <typename ResourceDescriptionsT = Aws::Vector<ResourceDescription>>
55 void SetResourceDescriptions(ResourceDescriptionsT&& value) {
56 m_resourceDescriptionsHasBeenSet = true;
57 m_resourceDescriptions = std::forward<ResourceDescriptionsT>(value);
58 }
59 template <typename ResourceDescriptionsT = Aws::Vector<ResourceDescription>>
60 ListResourcesResult& WithResourceDescriptions(ResourceDescriptionsT&& value) {
61 SetResourceDescriptions(std::forward<ResourceDescriptionsT>(value));
62 return *this;
63 }
64 template <typename ResourceDescriptionsT = ResourceDescription>
65 ListResourcesResult& AddResourceDescriptions(ResourceDescriptionsT&& value) {
66 m_resourceDescriptionsHasBeenSet = true;
67 m_resourceDescriptions.emplace_back(std::forward<ResourceDescriptionsT>(value));
68 return *this;
69 }
71
73
80 inline const Aws::String& GetNextToken() const { return m_nextToken; }
81 template <typename NextTokenT = Aws::String>
82 void SetNextToken(NextTokenT&& value) {
83 m_nextTokenHasBeenSet = true;
84 m_nextToken = std::forward<NextTokenT>(value);
85 }
86 template <typename NextTokenT = Aws::String>
87 ListResourcesResult& WithNextToken(NextTokenT&& value) {
88 SetNextToken(std::forward<NextTokenT>(value));
89 return *this;
90 }
92
94
95 inline const Aws::String& GetRequestId() const { return m_requestId; }
96 template <typename RequestIdT = Aws::String>
97 void SetRequestId(RequestIdT&& value) {
98 m_requestIdHasBeenSet = true;
99 m_requestId = std::forward<RequestIdT>(value);
100 }
101 template <typename RequestIdT = Aws::String>
102 ListResourcesResult& WithRequestId(RequestIdT&& value) {
103 SetRequestId(std::forward<RequestIdT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_typeName;
109
110 Aws::Vector<ResourceDescription> m_resourceDescriptions;
111
112 Aws::String m_nextToken;
113
114 Aws::String m_requestId;
115 bool m_typeNameHasBeenSet = false;
116 bool m_resourceDescriptionsHasBeenSet = false;
117 bool m_nextTokenHasBeenSet = false;
118 bool m_requestIdHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace CloudControlApi
123} // namespace Aws
ListResourcesResult & AddResourceDescriptions(ResourceDescriptionsT &&value)
AWS_CLOUDCONTROLAPI_API ListResourcesResult()=default
void SetResourceDescriptions(ResourceDescriptionsT &&value)
ListResourcesResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< ResourceDescription > & GetResourceDescriptions() const
AWS_CLOUDCONTROLAPI_API ListResourcesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDCONTROLAPI_API ListResourcesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListResourcesResult & WithResourceDescriptions(ResourceDescriptionsT &&value)
ListResourcesResult & WithTypeName(TypeNameT &&value)
ListResourcesResult & WithNextToken(NextTokenT &&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