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/servicecatalog/ServiceCatalogRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ServiceCatalog
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_SERVICECATALOG_API DescribeProductAsAdminRequest : public ServiceCatalogRequest
22   {
23   public:
24     DescribeProductAsAdminRequest();
25 
26     // Service request name is the Operation name which will send this request out,
27     // each operation should has unique request name, so that we can get operation's name from this request.
28     // Note: this is not true for response, multiple operations may have the same response name,
29     // so we can not get operation's name from response.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "DescribeProductAsAdmin"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
39      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
40      * Chinese</p> </li> </ul>
41      */
GetAcceptLanguage()42     inline const Aws::String& GetAcceptLanguage() const{ return m_acceptLanguage; }
43 
44     /**
45      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
46      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
47      * Chinese</p> </li> </ul>
48      */
AcceptLanguageHasBeenSet()49     inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; }
50 
51     /**
52      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
53      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
54      * Chinese</p> </li> </ul>
55      */
SetAcceptLanguage(const Aws::String & value)56     inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; }
57 
58     /**
59      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
60      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
61      * Chinese</p> </li> </ul>
62      */
SetAcceptLanguage(Aws::String && value)63     inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); }
64 
65     /**
66      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
67      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
68      * Chinese</p> </li> </ul>
69      */
SetAcceptLanguage(const char * value)70     inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); }
71 
72     /**
73      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
74      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
75      * Chinese</p> </li> </ul>
76      */
WithAcceptLanguage(const Aws::String & value)77     inline DescribeProductAsAdminRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;}
78 
79     /**
80      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
81      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
82      * Chinese</p> </li> </ul>
83      */
WithAcceptLanguage(Aws::String && value)84     inline DescribeProductAsAdminRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;}
85 
86     /**
87      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
88      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
89      * Chinese</p> </li> </ul>
90      */
WithAcceptLanguage(const char * value)91     inline DescribeProductAsAdminRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;}
92 
93 
94     /**
95      * <p>The product identifier.</p>
96      */
GetId()97     inline const Aws::String& GetId() const{ return m_id; }
98 
99     /**
100      * <p>The product identifier.</p>
101      */
IdHasBeenSet()102     inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
103 
104     /**
105      * <p>The product identifier.</p>
106      */
SetId(const Aws::String & value)107     inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
108 
109     /**
110      * <p>The product identifier.</p>
111      */
SetId(Aws::String && value)112     inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
113 
114     /**
115      * <p>The product identifier.</p>
116      */
SetId(const char * value)117     inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
118 
119     /**
120      * <p>The product identifier.</p>
121      */
WithId(const Aws::String & value)122     inline DescribeProductAsAdminRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
123 
124     /**
125      * <p>The product identifier.</p>
126      */
WithId(Aws::String && value)127     inline DescribeProductAsAdminRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
128 
129     /**
130      * <p>The product identifier.</p>
131      */
WithId(const char * value)132     inline DescribeProductAsAdminRequest& WithId(const char* value) { SetId(value); return *this;}
133 
134 
135     /**
136      * <p>The product name.</p>
137      */
GetName()138     inline const Aws::String& GetName() const{ return m_name; }
139 
140     /**
141      * <p>The product name.</p>
142      */
NameHasBeenSet()143     inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
144 
145     /**
146      * <p>The product name.</p>
147      */
SetName(const Aws::String & value)148     inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
149 
150     /**
151      * <p>The product name.</p>
152      */
SetName(Aws::String && value)153     inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
154 
155     /**
156      * <p>The product name.</p>
157      */
SetName(const char * value)158     inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
159 
160     /**
161      * <p>The product name.</p>
162      */
WithName(const Aws::String & value)163     inline DescribeProductAsAdminRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
164 
165     /**
166      * <p>The product name.</p>
167      */
WithName(Aws::String && value)168     inline DescribeProductAsAdminRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
169 
170     /**
171      * <p>The product name.</p>
172      */
WithName(const char * value)173     inline DescribeProductAsAdminRequest& WithName(const char* value) { SetName(value); return *this;}
174 
175 
176     /**
177      * <p>The unique identifier of the shared portfolio that the specified product is
178      * associated with.</p> <p>You can provide this parameter to retrieve the shared
179      * TagOptions associated with the product. If this parameter is provided and if
180      * TagOptions sharing is enabled in the portfolio share, the API returns both local
181      * and shared TagOptions associated with the product. Otherwise only local
182      * TagOptions will be returned. </p>
183      */
GetSourcePortfolioId()184     inline const Aws::String& GetSourcePortfolioId() const{ return m_sourcePortfolioId; }
185 
186     /**
187      * <p>The unique identifier of the shared portfolio that the specified product is
188      * associated with.</p> <p>You can provide this parameter to retrieve the shared
189      * TagOptions associated with the product. If this parameter is provided and if
190      * TagOptions sharing is enabled in the portfolio share, the API returns both local
191      * and shared TagOptions associated with the product. Otherwise only local
192      * TagOptions will be returned. </p>
193      */
SourcePortfolioIdHasBeenSet()194     inline bool SourcePortfolioIdHasBeenSet() const { return m_sourcePortfolioIdHasBeenSet; }
195 
196     /**
197      * <p>The unique identifier of the shared portfolio that the specified product is
198      * associated with.</p> <p>You can provide this parameter to retrieve the shared
199      * TagOptions associated with the product. If this parameter is provided and if
200      * TagOptions sharing is enabled in the portfolio share, the API returns both local
201      * and shared TagOptions associated with the product. Otherwise only local
202      * TagOptions will be returned. </p>
203      */
SetSourcePortfolioId(const Aws::String & value)204     inline void SetSourcePortfolioId(const Aws::String& value) { m_sourcePortfolioIdHasBeenSet = true; m_sourcePortfolioId = value; }
205 
206     /**
207      * <p>The unique identifier of the shared portfolio that the specified product is
208      * associated with.</p> <p>You can provide this parameter to retrieve the shared
209      * TagOptions associated with the product. If this parameter is provided and if
210      * TagOptions sharing is enabled in the portfolio share, the API returns both local
211      * and shared TagOptions associated with the product. Otherwise only local
212      * TagOptions will be returned. </p>
213      */
SetSourcePortfolioId(Aws::String && value)214     inline void SetSourcePortfolioId(Aws::String&& value) { m_sourcePortfolioIdHasBeenSet = true; m_sourcePortfolioId = std::move(value); }
215 
216     /**
217      * <p>The unique identifier of the shared portfolio that the specified product is
218      * associated with.</p> <p>You can provide this parameter to retrieve the shared
219      * TagOptions associated with the product. If this parameter is provided and if
220      * TagOptions sharing is enabled in the portfolio share, the API returns both local
221      * and shared TagOptions associated with the product. Otherwise only local
222      * TagOptions will be returned. </p>
223      */
SetSourcePortfolioId(const char * value)224     inline void SetSourcePortfolioId(const char* value) { m_sourcePortfolioIdHasBeenSet = true; m_sourcePortfolioId.assign(value); }
225 
226     /**
227      * <p>The unique identifier of the shared portfolio that the specified product is
228      * associated with.</p> <p>You can provide this parameter to retrieve the shared
229      * TagOptions associated with the product. If this parameter is provided and if
230      * TagOptions sharing is enabled in the portfolio share, the API returns both local
231      * and shared TagOptions associated with the product. Otherwise only local
232      * TagOptions will be returned. </p>
233      */
WithSourcePortfolioId(const Aws::String & value)234     inline DescribeProductAsAdminRequest& WithSourcePortfolioId(const Aws::String& value) { SetSourcePortfolioId(value); return *this;}
235 
236     /**
237      * <p>The unique identifier of the shared portfolio that the specified product is
238      * associated with.</p> <p>You can provide this parameter to retrieve the shared
239      * TagOptions associated with the product. If this parameter is provided and if
240      * TagOptions sharing is enabled in the portfolio share, the API returns both local
241      * and shared TagOptions associated with the product. Otherwise only local
242      * TagOptions will be returned. </p>
243      */
WithSourcePortfolioId(Aws::String && value)244     inline DescribeProductAsAdminRequest& WithSourcePortfolioId(Aws::String&& value) { SetSourcePortfolioId(std::move(value)); return *this;}
245 
246     /**
247      * <p>The unique identifier of the shared portfolio that the specified product is
248      * associated with.</p> <p>You can provide this parameter to retrieve the shared
249      * TagOptions associated with the product. If this parameter is provided and if
250      * TagOptions sharing is enabled in the portfolio share, the API returns both local
251      * and shared TagOptions associated with the product. Otherwise only local
252      * TagOptions will be returned. </p>
253      */
WithSourcePortfolioId(const char * value)254     inline DescribeProductAsAdminRequest& WithSourcePortfolioId(const char* value) { SetSourcePortfolioId(value); return *this;}
255 
256   private:
257 
258     Aws::String m_acceptLanguage;
259     bool m_acceptLanguageHasBeenSet;
260 
261     Aws::String m_id;
262     bool m_idHasBeenSet;
263 
264     Aws::String m_name;
265     bool m_nameHasBeenSet;
266 
267     Aws::String m_sourcePortfolioId;
268     bool m_sourcePortfolioIdHasBeenSet;
269   };
270 
271 } // namespace Model
272 } // namespace ServiceCatalog
273 } // namespace Aws
274