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>Request to generate a sample mapping template used to transform the
21    * payload.</p><p><h3>See Also:</h3>   <a
22    * href="http://docs.aws.amazon.com/goto/WebAPI/apigateway-2015-07-09/GetModelTemplateRequest">AWS
23    * API Reference</a></p>
24    */
25   class AWS_APIGATEWAY_API GetModelTemplateRequest : public APIGatewayRequest
26   {
27   public:
28     GetModelTemplateRequest();
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 "GetModelTemplate"; }
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 GetModelTemplateRequest& 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 GetModelTemplateRequest& 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 GetModelTemplateRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
78 
79 
80     /**
81      * <p>[Required] The name of the model for which to generate a template.</p>
82      */
GetModelName()83     inline const Aws::String& GetModelName() const{ return m_modelName; }
84 
85     /**
86      * <p>[Required] The name of the model for which to generate a template.</p>
87      */
ModelNameHasBeenSet()88     inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
89 
90     /**
91      * <p>[Required] The name of the model for which to generate a template.</p>
92      */
SetModelName(const Aws::String & value)93     inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
94 
95     /**
96      * <p>[Required] The name of the model for which to generate a template.</p>
97      */
SetModelName(Aws::String && value)98     inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); }
99 
100     /**
101      * <p>[Required] The name of the model for which to generate a template.</p>
102      */
SetModelName(const char * value)103     inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
104 
105     /**
106      * <p>[Required] The name of the model for which to generate a template.</p>
107      */
WithModelName(const Aws::String & value)108     inline GetModelTemplateRequest& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
109 
110     /**
111      * <p>[Required] The name of the model for which to generate a template.</p>
112      */
WithModelName(Aws::String && value)113     inline GetModelTemplateRequest& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;}
114 
115     /**
116      * <p>[Required] The name of the model for which to generate a template.</p>
117      */
WithModelName(const char * value)118     inline GetModelTemplateRequest& WithModelName(const char* value) { SetModelName(value); return *this;}
119 
120   private:
121 
122     Aws::String m_restApiId;
123     bool m_restApiIdHasBeenSet;
124 
125     Aws::String m_modelName;
126     bool m_modelNameHasBeenSet;
127   };
128 
129 } // namespace Model
130 } // namespace APIGateway
131 } // namespace Aws
132