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/servicecatalog/ServiceCatalog_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSVector.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/servicecatalog/model/ProvisionedProductAttribute.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 ServiceCatalog
26 {
27 namespace Model
28 {
29   class AWS_SERVICECATALOG_API SearchProvisionedProductsResult
30   {
31   public:
32     SearchProvisionedProductsResult();
33     SearchProvisionedProductsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34     SearchProvisionedProductsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35 
36 
37     /**
38      * <p>Information about the provisioned products.</p>
39      */
GetProvisionedProducts()40     inline const Aws::Vector<ProvisionedProductAttribute>& GetProvisionedProducts() const{ return m_provisionedProducts; }
41 
42     /**
43      * <p>Information about the provisioned products.</p>
44      */
SetProvisionedProducts(const Aws::Vector<ProvisionedProductAttribute> & value)45     inline void SetProvisionedProducts(const Aws::Vector<ProvisionedProductAttribute>& value) { m_provisionedProducts = value; }
46 
47     /**
48      * <p>Information about the provisioned products.</p>
49      */
SetProvisionedProducts(Aws::Vector<ProvisionedProductAttribute> && value)50     inline void SetProvisionedProducts(Aws::Vector<ProvisionedProductAttribute>&& value) { m_provisionedProducts = std::move(value); }
51 
52     /**
53      * <p>Information about the provisioned products.</p>
54      */
WithProvisionedProducts(const Aws::Vector<ProvisionedProductAttribute> & value)55     inline SearchProvisionedProductsResult& WithProvisionedProducts(const Aws::Vector<ProvisionedProductAttribute>& value) { SetProvisionedProducts(value); return *this;}
56 
57     /**
58      * <p>Information about the provisioned products.</p>
59      */
WithProvisionedProducts(Aws::Vector<ProvisionedProductAttribute> && value)60     inline SearchProvisionedProductsResult& WithProvisionedProducts(Aws::Vector<ProvisionedProductAttribute>&& value) { SetProvisionedProducts(std::move(value)); return *this;}
61 
62     /**
63      * <p>Information about the provisioned products.</p>
64      */
AddProvisionedProducts(const ProvisionedProductAttribute & value)65     inline SearchProvisionedProductsResult& AddProvisionedProducts(const ProvisionedProductAttribute& value) { m_provisionedProducts.push_back(value); return *this; }
66 
67     /**
68      * <p>Information about the provisioned products.</p>
69      */
AddProvisionedProducts(ProvisionedProductAttribute && value)70     inline SearchProvisionedProductsResult& AddProvisionedProducts(ProvisionedProductAttribute&& value) { m_provisionedProducts.push_back(std::move(value)); return *this; }
71 
72 
73     /**
74      * <p>The number of provisioned products found.</p>
75      */
GetTotalResultsCount()76     inline int GetTotalResultsCount() const{ return m_totalResultsCount; }
77 
78     /**
79      * <p>The number of provisioned products found.</p>
80      */
SetTotalResultsCount(int value)81     inline void SetTotalResultsCount(int value) { m_totalResultsCount = value; }
82 
83     /**
84      * <p>The number of provisioned products found.</p>
85      */
WithTotalResultsCount(int value)86     inline SearchProvisionedProductsResult& WithTotalResultsCount(int value) { SetTotalResultsCount(value); return *this;}
87 
88 
89     /**
90      * <p>The page token to use to retrieve the next set of results. If there are no
91      * additional results, this value is null.</p>
92      */
GetNextPageToken()93     inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
94 
95     /**
96      * <p>The page token to use to retrieve the next set of results. If there are no
97      * additional results, this value is null.</p>
98      */
SetNextPageToken(const Aws::String & value)99     inline void SetNextPageToken(const Aws::String& value) { m_nextPageToken = value; }
100 
101     /**
102      * <p>The page token to use to retrieve the next set of results. If there are no
103      * additional results, this value is null.</p>
104      */
SetNextPageToken(Aws::String && value)105     inline void SetNextPageToken(Aws::String&& value) { m_nextPageToken = std::move(value); }
106 
107     /**
108      * <p>The page token to use to retrieve the next set of results. If there are no
109      * additional results, this value is null.</p>
110      */
SetNextPageToken(const char * value)111     inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); }
112 
113     /**
114      * <p>The page token to use to retrieve the next set of results. If there are no
115      * additional results, this value is null.</p>
116      */
WithNextPageToken(const Aws::String & value)117     inline SearchProvisionedProductsResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
118 
119     /**
120      * <p>The page token to use to retrieve the next set of results. If there are no
121      * additional results, this value is null.</p>
122      */
WithNextPageToken(Aws::String && value)123     inline SearchProvisionedProductsResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
124 
125     /**
126      * <p>The page token to use to retrieve the next set of results. If there are no
127      * additional results, this value is null.</p>
128      */
WithNextPageToken(const char * value)129     inline SearchProvisionedProductsResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
130 
131   private:
132 
133     Aws::Vector<ProvisionedProductAttribute> m_provisionedProducts;
134 
135     int m_totalResultsCount;
136 
137     Aws::String m_nextPageToken;
138   };
139 
140 } // namespace Model
141 } // namespace ServiceCatalog
142 } // namespace Aws
143