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