AWS SDK for C++  1.9.21
AWS SDK for C++
CreateRequestValidatorRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace APIGateway
15 {
16 namespace Model
17 {
18 
26  {
27  public:
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.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateRequestValidator"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
43 
47  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
48 
52  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
53 
57  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
58 
62  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
63 
67  inline CreateRequestValidatorRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
68 
72  inline CreateRequestValidatorRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
73 
77  inline CreateRequestValidatorRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
78 
79 
83  inline const Aws::String& GetName() const{ return m_name; }
84 
88  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
89 
93  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
94 
98  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
99 
103  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
104 
108  inline CreateRequestValidatorRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
109 
113  inline CreateRequestValidatorRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
114 
118  inline CreateRequestValidatorRequest& WithName(const char* value) { SetName(value); return *this;}
119 
120 
126  inline bool GetValidateRequestBody() const{ return m_validateRequestBody; }
127 
133  inline bool ValidateRequestBodyHasBeenSet() const { return m_validateRequestBodyHasBeenSet; }
134 
140  inline void SetValidateRequestBody(bool value) { m_validateRequestBodyHasBeenSet = true; m_validateRequestBody = value; }
141 
147  inline CreateRequestValidatorRequest& WithValidateRequestBody(bool value) { SetValidateRequestBody(value); return *this;}
148 
149 
154  inline bool GetValidateRequestParameters() const{ return m_validateRequestParameters; }
155 
160  inline bool ValidateRequestParametersHasBeenSet() const { return m_validateRequestParametersHasBeenSet; }
161 
166  inline void SetValidateRequestParameters(bool value) { m_validateRequestParametersHasBeenSet = true; m_validateRequestParameters = value; }
167 
172  inline CreateRequestValidatorRequest& WithValidateRequestParameters(bool value) { SetValidateRequestParameters(value); return *this;}
173 
174  private:
175 
176  Aws::String m_restApiId;
177  bool m_restApiIdHasBeenSet;
178 
179  Aws::String m_name;
180  bool m_nameHasBeenSet;
181 
182  bool m_validateRequestBody;
183  bool m_validateRequestBodyHasBeenSet;
184 
185  bool m_validateRequestParameters;
186  bool m_validateRequestParametersHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace APIGateway
191 } // namespace Aws
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::CreateRequestValidatorRequest::SetValidateRequestBody
void SetValidateRequestBody(bool value)
Definition: CreateRequestValidatorRequest.h:140
Aws::APIGateway::Model::CreateRequestValidatorRequest::WithRestApiId
CreateRequestValidatorRequest & WithRestApiId(Aws::String &&value)
Definition: CreateRequestValidatorRequest.h:72
Aws::APIGateway::Model::CreateRequestValidatorRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateRequestValidatorRequest.h:93
Aws::APIGateway::Model::CreateRequestValidatorRequest::WithRestApiId
CreateRequestValidatorRequest & WithRestApiId(const Aws::String &value)
Definition: CreateRequestValidatorRequest.h:67
Aws::APIGateway::Model::CreateRequestValidatorRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: CreateRequestValidatorRequest.h:57
Aws::APIGateway::Model::CreateRequestValidatorRequest::WithValidateRequestBody
CreateRequestValidatorRequest & WithValidateRequestBody(bool value)
Definition: CreateRequestValidatorRequest.h:147
APIGateway_EXPORTS.h
Aws::APIGateway::Model::CreateRequestValidatorRequest::WithName
CreateRequestValidatorRequest & WithName(const char *value)
Definition: CreateRequestValidatorRequest.h:118
Aws::APIGateway::Model::CreateRequestValidatorRequest::WithName
CreateRequestValidatorRequest & WithName(const Aws::String &value)
Definition: CreateRequestValidatorRequest.h:108
Aws::APIGateway::Model::CreateRequestValidatorRequest
Definition: CreateRequestValidatorRequest.h:26
APIGatewayRequest.h
Aws::APIGateway::Model::CreateRequestValidatorRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateRequestValidatorRequest.h:98
Aws::APIGateway::Model::CreateRequestValidatorRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateRequestValidatorRequest.h:88
AWSString.h
Aws::APIGateway::Model::CreateRequestValidatorRequest::WithRestApiId
CreateRequestValidatorRequest & WithRestApiId(const char *value)
Definition: CreateRequestValidatorRequest.h:77
Aws::APIGateway::Model::CreateRequestValidatorRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: CreateRequestValidatorRequest.h:42
Aws::APIGateway::Model::CreateRequestValidatorRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateRequestValidatorRequest.h:34
Aws::APIGateway::Model::CreateRequestValidatorRequest::ValidateRequestBodyHasBeenSet
bool ValidateRequestBodyHasBeenSet() const
Definition: CreateRequestValidatorRequest.h:133
Aws::APIGateway::Model::CreateRequestValidatorRequest::SetValidateRequestParameters
void SetValidateRequestParameters(bool value)
Definition: CreateRequestValidatorRequest.h:166
Aws::APIGateway::Model::CreateRequestValidatorRequest::GetValidateRequestParameters
bool GetValidateRequestParameters() const
Definition: CreateRequestValidatorRequest.h:154
Aws::APIGateway::Model::CreateRequestValidatorRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: CreateRequestValidatorRequest.h:52
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::CreateRequestValidatorRequest::CreateRequestValidatorRequest
CreateRequestValidatorRequest()
Aws::APIGateway::Model::CreateRequestValidatorRequest::GetValidateRequestBody
bool GetValidateRequestBody() const
Definition: CreateRequestValidatorRequest.h:126
Aws::APIGateway::Model::CreateRequestValidatorRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: CreateRequestValidatorRequest.h:62
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::CreateRequestValidatorRequest::SetName
void SetName(const char *value)
Definition: CreateRequestValidatorRequest.h:103
Aws::APIGateway::Model::CreateRequestValidatorRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::CreateRequestValidatorRequest::WithValidateRequestParameters
CreateRequestValidatorRequest & WithValidateRequestParameters(bool value)
Definition: CreateRequestValidatorRequest.h:172
Aws::APIGateway::Model::CreateRequestValidatorRequest::GetName
const Aws::String & GetName() const
Definition: CreateRequestValidatorRequest.h:83
Aws::APIGateway::Model::CreateRequestValidatorRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: CreateRequestValidatorRequest.h:47
Aws::APIGateway::Model::CreateRequestValidatorRequest::WithName
CreateRequestValidatorRequest & WithName(Aws::String &&value)
Definition: CreateRequestValidatorRequest.h:113
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::CreateRequestValidatorRequest::ValidateRequestParametersHasBeenSet
bool ValidateRequestParametersHasBeenSet() const
Definition: CreateRequestValidatorRequest.h:160