AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
CreateRequestValidatorRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace APIGateway {
15namespace Model {
16
23 public:
24 AWS_APIGATEWAY_API CreateRequestValidatorRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateRequestValidator"; }
31
32 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
39 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
40 template <typename RestApiIdT = Aws::String>
41 void SetRestApiId(RestApiIdT&& value) {
42 m_restApiIdHasBeenSet = true;
43 m_restApiId = std::forward<RestApiIdT>(value);
44 }
45 template <typename RestApiIdT = Aws::String>
47 SetRestApiId(std::forward<RestApiIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
76 inline bool GetValidateRequestBody() const { return m_validateRequestBody; }
77 inline bool ValidateRequestBodyHasBeenSet() const { return m_validateRequestBodyHasBeenSet; }
78 inline void SetValidateRequestBody(bool value) {
79 m_validateRequestBodyHasBeenSet = true;
80 m_validateRequestBody = value;
81 }
84 return *this;
85 }
87
89
93 inline bool GetValidateRequestParameters() const { return m_validateRequestParameters; }
94 inline bool ValidateRequestParametersHasBeenSet() const { return m_validateRequestParametersHasBeenSet; }
95 inline void SetValidateRequestParameters(bool value) {
96 m_validateRequestParametersHasBeenSet = true;
97 m_validateRequestParameters = value;
98 }
101 return *this;
102 }
104 private:
105 Aws::String m_restApiId;
106
107 Aws::String m_name;
108
109 bool m_validateRequestBody{false};
110
111 bool m_validateRequestParameters{false};
112 bool m_restApiIdHasBeenSet = false;
113 bool m_nameHasBeenSet = false;
114 bool m_validateRequestBodyHasBeenSet = false;
115 bool m_validateRequestParametersHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace APIGateway
120} // 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