1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/cloudcontrol/CloudControlApi_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <aws/core/utils/memory/stl/AWSVector.h>
10 #include <aws/cloudcontrol/model/ResourceDescription.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22   class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace CloudControlApi
26 {
27 namespace Model
28 {
29   class AWS_CLOUDCONTROLAPI_API ListResourcesResult
30   {
31   public:
32     ListResourcesResult();
33     ListResourcesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34     ListResourcesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35 
36 
37     /**
38      * <p>The name of the resource type.</p>
39      */
GetTypeName()40     inline const Aws::String& GetTypeName() const{ return m_typeName; }
41 
42     /**
43      * <p>The name of the resource type.</p>
44      */
SetTypeName(const Aws::String & value)45     inline void SetTypeName(const Aws::String& value) { m_typeName = value; }
46 
47     /**
48      * <p>The name of the resource type.</p>
49      */
SetTypeName(Aws::String && value)50     inline void SetTypeName(Aws::String&& value) { m_typeName = std::move(value); }
51 
52     /**
53      * <p>The name of the resource type.</p>
54      */
SetTypeName(const char * value)55     inline void SetTypeName(const char* value) { m_typeName.assign(value); }
56 
57     /**
58      * <p>The name of the resource type.</p>
59      */
WithTypeName(const Aws::String & value)60     inline ListResourcesResult& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
61 
62     /**
63      * <p>The name of the resource type.</p>
64      */
WithTypeName(Aws::String && value)65     inline ListResourcesResult& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
66 
67     /**
68      * <p>The name of the resource type.</p>
69      */
WithTypeName(const char * value)70     inline ListResourcesResult& WithTypeName(const char* value) { SetTypeName(value); return *this;}
71 
72 
73     /**
74      * <p>Information about the specified resources, including primary identifier and
75      * resource model.</p>
76      */
GetResourceDescriptions()77     inline const Aws::Vector<ResourceDescription>& GetResourceDescriptions() const{ return m_resourceDescriptions; }
78 
79     /**
80      * <p>Information about the specified resources, including primary identifier and
81      * resource model.</p>
82      */
SetResourceDescriptions(const Aws::Vector<ResourceDescription> & value)83     inline void SetResourceDescriptions(const Aws::Vector<ResourceDescription>& value) { m_resourceDescriptions = value; }
84 
85     /**
86      * <p>Information about the specified resources, including primary identifier and
87      * resource model.</p>
88      */
SetResourceDescriptions(Aws::Vector<ResourceDescription> && value)89     inline void SetResourceDescriptions(Aws::Vector<ResourceDescription>&& value) { m_resourceDescriptions = std::move(value); }
90 
91     /**
92      * <p>Information about the specified resources, including primary identifier and
93      * resource model.</p>
94      */
WithResourceDescriptions(const Aws::Vector<ResourceDescription> & value)95     inline ListResourcesResult& WithResourceDescriptions(const Aws::Vector<ResourceDescription>& value) { SetResourceDescriptions(value); return *this;}
96 
97     /**
98      * <p>Information about the specified resources, including primary identifier and
99      * resource model.</p>
100      */
WithResourceDescriptions(Aws::Vector<ResourceDescription> && value)101     inline ListResourcesResult& WithResourceDescriptions(Aws::Vector<ResourceDescription>&& value) { SetResourceDescriptions(std::move(value)); return *this;}
102 
103     /**
104      * <p>Information about the specified resources, including primary identifier and
105      * resource model.</p>
106      */
AddResourceDescriptions(const ResourceDescription & value)107     inline ListResourcesResult& AddResourceDescriptions(const ResourceDescription& value) { m_resourceDescriptions.push_back(value); return *this; }
108 
109     /**
110      * <p>Information about the specified resources, including primary identifier and
111      * resource model.</p>
112      */
AddResourceDescriptions(ResourceDescription && value)113     inline ListResourcesResult& AddResourceDescriptions(ResourceDescription&& value) { m_resourceDescriptions.push_back(std::move(value)); return *this; }
114 
115 
116     /**
117      * <p>If the request doesn't return all of the remaining results,
118      * <code>NextToken</code> is set to a token. To retrieve the next set of results,
119      * call <code>ListResources</code> again and assign that token to the request
120      * object's <code>NextToken</code> parameter. If the request returns all results,
121      * <code>NextToken</code> is set to null.</p>
122      */
GetNextToken()123     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
124 
125     /**
126      * <p>If the request doesn't return all of the remaining results,
127      * <code>NextToken</code> is set to a token. To retrieve the next set of results,
128      * call <code>ListResources</code> again and assign that token to the request
129      * object's <code>NextToken</code> parameter. If the request returns all results,
130      * <code>NextToken</code> is set to null.</p>
131      */
SetNextToken(const Aws::String & value)132     inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
133 
134     /**
135      * <p>If the request doesn't return all of the remaining results,
136      * <code>NextToken</code> is set to a token. To retrieve the next set of results,
137      * call <code>ListResources</code> again and assign that token to the request
138      * object's <code>NextToken</code> parameter. If the request returns all results,
139      * <code>NextToken</code> is set to null.</p>
140      */
SetNextToken(Aws::String && value)141     inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
142 
143     /**
144      * <p>If the request doesn't return all of the remaining results,
145      * <code>NextToken</code> is set to a token. To retrieve the next set of results,
146      * call <code>ListResources</code> again and assign that token to the request
147      * object's <code>NextToken</code> parameter. If the request returns all results,
148      * <code>NextToken</code> is set to null.</p>
149      */
SetNextToken(const char * value)150     inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
151 
152     /**
153      * <p>If the request doesn't return all of the remaining results,
154      * <code>NextToken</code> is set to a token. To retrieve the next set of results,
155      * call <code>ListResources</code> again and assign that token to the request
156      * object's <code>NextToken</code> parameter. If the request returns all results,
157      * <code>NextToken</code> is set to null.</p>
158      */
WithNextToken(const Aws::String & value)159     inline ListResourcesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
160 
161     /**
162      * <p>If the request doesn't return all of the remaining results,
163      * <code>NextToken</code> is set to a token. To retrieve the next set of results,
164      * call <code>ListResources</code> again and assign that token to the request
165      * object's <code>NextToken</code> parameter. If the request returns all results,
166      * <code>NextToken</code> is set to null.</p>
167      */
WithNextToken(Aws::String && value)168     inline ListResourcesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
169 
170     /**
171      * <p>If the request doesn't return all of the remaining results,
172      * <code>NextToken</code> is set to a token. To retrieve the next set of results,
173      * call <code>ListResources</code> again and assign that token to the request
174      * object's <code>NextToken</code> parameter. If the request returns all results,
175      * <code>NextToken</code> is set to null.</p>
176      */
WithNextToken(const char * value)177     inline ListResourcesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
178 
179   private:
180 
181     Aws::String m_typeName;
182 
183     Aws::Vector<ResourceDescription> m_resourceDescriptions;
184 
185     Aws::String m_nextToken;
186   };
187 
188 } // namespace Model
189 } // namespace CloudControlApi
190 } // namespace Aws
191