AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRequestValidatorRequest.h
1
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
12namespace Aws
13{
14namespace APIGateway
15{
16namespace Model
17{
18
25 {
26 public:
27 AWS_APIGATEWAY_API CreateRequestValidatorRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateRequestValidator"; }
34
35 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
43 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
44 inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
45 inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
46 inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
47 inline CreateRequestValidatorRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
48 inline CreateRequestValidatorRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
49 inline CreateRequestValidatorRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
51
53
56 inline const Aws::String& GetName() const{ return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 inline CreateRequestValidatorRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
62 inline CreateRequestValidatorRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
63 inline CreateRequestValidatorRequest& WithName(const char* value) { SetName(value); return *this;}
65
67
72 inline bool GetValidateRequestBody() const{ return m_validateRequestBody; }
73 inline bool ValidateRequestBodyHasBeenSet() const { return m_validateRequestBodyHasBeenSet; }
74 inline void SetValidateRequestBody(bool value) { m_validateRequestBodyHasBeenSet = true; m_validateRequestBody = value; }
77
79
83 inline bool GetValidateRequestParameters() const{ return m_validateRequestParameters; }
84 inline bool ValidateRequestParametersHasBeenSet() const { return m_validateRequestParametersHasBeenSet; }
85 inline void SetValidateRequestParameters(bool value) { m_validateRequestParametersHasBeenSet = true; m_validateRequestParameters = value; }
88 private:
89
90 Aws::String m_restApiId;
91 bool m_restApiIdHasBeenSet = false;
92
93 Aws::String m_name;
94 bool m_nameHasBeenSet = false;
95
96 bool m_validateRequestBody;
97 bool m_validateRequestBodyHasBeenSet = false;
98
99 bool m_validateRequestParameters;
100 bool m_validateRequestParametersHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace APIGateway
105} // namespace Aws
CreateRequestValidatorRequest & WithName(const Aws::String &value)
CreateRequestValidatorRequest & WithValidateRequestParameters(bool value)
CreateRequestValidatorRequest & WithValidateRequestBody(bool value)
CreateRequestValidatorRequest & WithRestApiId(const Aws::String &value)
CreateRequestValidatorRequest & WithName(const char *value)
CreateRequestValidatorRequest & WithName(Aws::String &&value)
CreateRequestValidatorRequest & WithRestApiId(const char *value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
CreateRequestValidatorRequest & WithRestApiId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String