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 DescribeServiceActionRequest : public ServiceCatalogRequest
22   {
23   public:
24     DescribeServiceActionRequest();
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 "DescribeServiceAction"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>The self-service action identifier.</p>
39      */
GetId()40     inline const Aws::String& GetId() const{ return m_id; }
41 
42     /**
43      * <p>The self-service action identifier.</p>
44      */
IdHasBeenSet()45     inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 
47     /**
48      * <p>The self-service action identifier.</p>
49      */
SetId(const Aws::String & value)50     inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 
52     /**
53      * <p>The self-service action identifier.</p>
54      */
SetId(Aws::String && value)55     inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
56 
57     /**
58      * <p>The self-service action identifier.</p>
59      */
SetId(const char * value)60     inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
61 
62     /**
63      * <p>The self-service action identifier.</p>
64      */
WithId(const Aws::String & value)65     inline DescribeServiceActionRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
66 
67     /**
68      * <p>The self-service action identifier.</p>
69      */
WithId(Aws::String && value)70     inline DescribeServiceActionRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
71 
72     /**
73      * <p>The self-service action identifier.</p>
74      */
WithId(const char * value)75     inline DescribeServiceActionRequest& WithId(const char* value) { SetId(value); return *this;}
76 
77 
78     /**
79      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
80      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
81      * Chinese</p> </li> </ul>
82      */
GetAcceptLanguage()83     inline const Aws::String& GetAcceptLanguage() const{ return m_acceptLanguage; }
84 
85     /**
86      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
87      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
88      * Chinese</p> </li> </ul>
89      */
AcceptLanguageHasBeenSet()90     inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; }
91 
92     /**
93      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
94      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
95      * Chinese</p> </li> </ul>
96      */
SetAcceptLanguage(const Aws::String & value)97     inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; }
98 
99     /**
100      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
101      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
102      * Chinese</p> </li> </ul>
103      */
SetAcceptLanguage(Aws::String && value)104     inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); }
105 
106     /**
107      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
108      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
109      * Chinese</p> </li> </ul>
110      */
SetAcceptLanguage(const char * value)111     inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); }
112 
113     /**
114      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
115      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
116      * Chinese</p> </li> </ul>
117      */
WithAcceptLanguage(const Aws::String & value)118     inline DescribeServiceActionRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;}
119 
120     /**
121      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
122      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
123      * Chinese</p> </li> </ul>
124      */
WithAcceptLanguage(Aws::String && value)125     inline DescribeServiceActionRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;}
126 
127     /**
128      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
129      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
130      * Chinese</p> </li> </ul>
131      */
WithAcceptLanguage(const char * value)132     inline DescribeServiceActionRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;}
133 
134   private:
135 
136     Aws::String m_id;
137     bool m_idHasBeenSet;
138 
139     Aws::String m_acceptLanguage;
140     bool m_acceptLanguageHasBeenSet;
141   };
142 
143 } // namespace Model
144 } // namespace ServiceCatalog
145 } // namespace Aws
146