AWS SDK for C++  1.9.129
AWS SDK for C++
GetModelRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace APIGateway
19 {
20 namespace Model
21 {
22 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "GetModel"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
49  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
50 
55  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
56 
61  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
62 
67  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
68 
73  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
74 
79  inline GetModelRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
80 
85  inline GetModelRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
86 
91  inline GetModelRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
92 
93 
97  inline const Aws::String& GetModelName() const{ return m_modelName; }
98 
102  inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
103 
107  inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
108 
112  inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); }
113 
117  inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
118 
122  inline GetModelRequest& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
123 
127  inline GetModelRequest& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;}
128 
132  inline GetModelRequest& WithModelName(const char* value) { SetModelName(value); return *this;}
133 
134 
140  inline bool GetFlatten() const{ return m_flatten; }
141 
147  inline bool FlattenHasBeenSet() const { return m_flattenHasBeenSet; }
148 
154  inline void SetFlatten(bool value) { m_flattenHasBeenSet = true; m_flatten = value; }
155 
161  inline GetModelRequest& WithFlatten(bool value) { SetFlatten(value); return *this;}
162 
163  private:
164 
165  Aws::String m_restApiId;
166  bool m_restApiIdHasBeenSet;
167 
168  Aws::String m_modelName;
169  bool m_modelNameHasBeenSet;
170 
171  bool m_flatten;
172  bool m_flattenHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace APIGateway
177 } // namespace Aws
Aws::APIGateway::Model::GetModelRequest::WithRestApiId
GetModelRequest & WithRestApiId(Aws::String &&value)
Definition: GetModelRequest.h:85
Aws::Http::URI
Definition: URI.h:32
Aws::APIGateway::Model::GetModelRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: GetModelRequest.h:61
Aws::APIGateway::Model::GetModelRequest::ModelNameHasBeenSet
bool ModelNameHasBeenSet() const
Definition: GetModelRequest.h:102
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::GetModelRequest::WithRestApiId
GetModelRequest & WithRestApiId(const char *value)
Definition: GetModelRequest.h:91
Aws::APIGateway::Model::GetModelRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::APIGateway::Model::GetModelRequest::SetModelName
void SetModelName(const Aws::String &value)
Definition: GetModelRequest.h:107
Aws::APIGateway::Model::GetModelRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: GetModelRequest.h:73
Aws::APIGateway::Model::GetModelRequest::SetModelName
void SetModelName(const char *value)
Definition: GetModelRequest.h:117
APIGateway_EXPORTS.h
Aws::APIGateway::Model::GetModelRequest::SetModelName
void SetModelName(Aws::String &&value)
Definition: GetModelRequest.h:112
Aws::APIGateway::Model::GetModelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetModelRequest.h:38
Aws::APIGateway::Model::GetModelRequest::FlattenHasBeenSet
bool FlattenHasBeenSet() const
Definition: GetModelRequest.h:147
APIGatewayRequest.h
Aws::APIGateway::Model::GetModelRequest::WithModelName
GetModelRequest & WithModelName(const Aws::String &value)
Definition: GetModelRequest.h:122
Aws::APIGateway::Model::GetModelRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: GetModelRequest.h:55
Aws::APIGateway::Model::GetModelRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::GetModelRequest::GetModelRequest
GetModelRequest()
Aws::APIGateway::Model::GetModelRequest::WithModelName
GetModelRequest & WithModelName(Aws::String &&value)
Definition: GetModelRequest.h:127
Aws::APIGateway::Model::GetModelRequest::WithModelName
GetModelRequest & WithModelName(const char *value)
Definition: GetModelRequest.h:132
Aws::APIGateway::Model::GetModelRequest::WithRestApiId
GetModelRequest & WithRestApiId(const Aws::String &value)
Definition: GetModelRequest.h:79
AWSString.h
Aws::APIGateway::Model::GetModelRequest::GetModelName
const Aws::String & GetModelName() const
Definition: GetModelRequest.h:97
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::GetModelRequest::WithFlatten
GetModelRequest & WithFlatten(bool value)
Definition: GetModelRequest.h:161
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::GetModelRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: GetModelRequest.h:49
Aws::APIGateway::Model::GetModelRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: GetModelRequest.h:67
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::GetModelRequest::GetFlatten
bool GetFlatten() const
Definition: GetModelRequest.h:140
Aws::APIGateway::Model::GetModelRequest::SetFlatten
void SetFlatten(bool value)
Definition: GetModelRequest.h:154
Aws::APIGateway::Model::GetModelRequest
Definition: GetModelRequest.h:30