AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename RestApiIdT = Aws::String>
45 void SetRestApiId(RestApiIdT&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::forward<RestApiIdT>(value); }
46 template<typename RestApiIdT = Aws::String>
47 CreateRequestValidatorRequest& WithRestApiId(RestApiIdT&& value) { SetRestApiId(std::forward<RestApiIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 CreateRequestValidatorRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
61
63
68 inline bool GetValidateRequestBody() const { return m_validateRequestBody; }
69 inline bool ValidateRequestBodyHasBeenSet() const { return m_validateRequestBodyHasBeenSet; }
70 inline void SetValidateRequestBody(bool value) { m_validateRequestBodyHasBeenSet = true; m_validateRequestBody = value; }
73
75
79 inline bool GetValidateRequestParameters() const { return m_validateRequestParameters; }
80 inline bool ValidateRequestParametersHasBeenSet() const { return m_validateRequestParametersHasBeenSet; }
81 inline void SetValidateRequestParameters(bool value) { m_validateRequestParametersHasBeenSet = true; m_validateRequestParameters = value; }
84 private:
85
86 Aws::String m_restApiId;
87 bool m_restApiIdHasBeenSet = false;
88
89 Aws::String m_name;
90 bool m_nameHasBeenSet = false;
91
92 bool m_validateRequestBody{false};
93 bool m_validateRequestBodyHasBeenSet = false;
94
95 bool m_validateRequestParameters{false};
96 bool m_validateRequestParametersHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace APIGateway
101} // namespace Aws
CreateRequestValidatorRequest & WithValidateRequestParameters(bool value)
CreateRequestValidatorRequest & WithValidateRequestBody(bool value)
CreateRequestValidatorRequest & WithRestApiId(RestApiIdT &&value)
AWS_APIGATEWAY_API CreateRequestValidatorRequest()=default
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
CreateRequestValidatorRequest & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String