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/apigateway/APIGateway_EXPORTS.h>
8 #include <aws/apigateway/APIGatewayRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace APIGateway
15 {
16 namespace Model
17 {
18 
19   /**
20    * <p>Requests API Gateway to get information about a <a>Stage</a>
21    * resource.</p><p><h3>See Also:</h3>   <a
22    * href="http://docs.aws.amazon.com/goto/WebAPI/apigateway-2015-07-09/GetStageRequest">AWS
23    * API Reference</a></p>
24    */
25   class AWS_APIGATEWAY_API GetStageRequest : public APIGatewayRequest
26   {
27   public:
28     GetStageRequest();
29 
30     // Service request name is the Operation name which will send this request out,
31     // each operation should has unique request name, so that we can get operation's name from this request.
32     // Note: this is not true for response, multiple operations may have the same response name,
33     // so we can not get operation's name from response.
GetServiceRequestName()34     inline virtual const char* GetServiceRequestName() const override { return "GetStage"; }
35 
36     Aws::String SerializePayload() const override;
37 
38 
39     /**
40      * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
41      */
GetRestApiId()42     inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
43 
44     /**
45      * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
46      */
RestApiIdHasBeenSet()47     inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
48 
49     /**
50      * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
51      */
SetRestApiId(const Aws::String & value)52     inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
53 
54     /**
55      * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
56      */
SetRestApiId(Aws::String && value)57     inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
58 
59     /**
60      * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
61      */
SetRestApiId(const char * value)62     inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
63 
64     /**
65      * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
66      */
WithRestApiId(const Aws::String & value)67     inline GetStageRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
68 
69     /**
70      * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
71      */
WithRestApiId(Aws::String && value)72     inline GetStageRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
73 
74     /**
75      * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
76      */
WithRestApiId(const char * value)77     inline GetStageRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
78 
79 
80     /**
81      * <p>[Required] The name of the <a>Stage</a> resource to get information
82      * about.</p>
83      */
GetStageName()84     inline const Aws::String& GetStageName() const{ return m_stageName; }
85 
86     /**
87      * <p>[Required] The name of the <a>Stage</a> resource to get information
88      * about.</p>
89      */
StageNameHasBeenSet()90     inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; }
91 
92     /**
93      * <p>[Required] The name of the <a>Stage</a> resource to get information
94      * about.</p>
95      */
SetStageName(const Aws::String & value)96     inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
97 
98     /**
99      * <p>[Required] The name of the <a>Stage</a> resource to get information
100      * about.</p>
101      */
SetStageName(Aws::String && value)102     inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = std::move(value); }
103 
104     /**
105      * <p>[Required] The name of the <a>Stage</a> resource to get information
106      * about.</p>
107      */
SetStageName(const char * value)108     inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); }
109 
110     /**
111      * <p>[Required] The name of the <a>Stage</a> resource to get information
112      * about.</p>
113      */
WithStageName(const Aws::String & value)114     inline GetStageRequest& WithStageName(const Aws::String& value) { SetStageName(value); return *this;}
115 
116     /**
117      * <p>[Required] The name of the <a>Stage</a> resource to get information
118      * about.</p>
119      */
WithStageName(Aws::String && value)120     inline GetStageRequest& WithStageName(Aws::String&& value) { SetStageName(std::move(value)); return *this;}
121 
122     /**
123      * <p>[Required] The name of the <a>Stage</a> resource to get information
124      * about.</p>
125      */
WithStageName(const char * value)126     inline GetStageRequest& WithStageName(const char* value) { SetStageName(value); return *this;}
127 
128   private:
129 
130     Aws::String m_restApiId;
131     bool m_restApiIdHasBeenSet;
132 
133     Aws::String m_stageName;
134     bool m_stageNameHasBeenSet;
135   };
136 
137 } // namespace Model
138 } // namespace APIGateway
139 } // namespace Aws
140