AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ReimportApiRequest.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2Request.h>
8#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace ApiGatewayV2 {
18namespace Model {
19
26 public:
27 AWS_APIGATEWAYV2_API ReimportApiRequest() = 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 "ReimportApi"; }
34
35 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
36
37 AWS_APIGATEWAYV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
43 inline const Aws::String& GetApiId() const { return m_apiId; }
44 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
45 template <typename ApiIdT = Aws::String>
46 void SetApiId(ApiIdT&& value) {
47 m_apiIdHasBeenSet = true;
48 m_apiId = std::forward<ApiIdT>(value);
49 }
50 template <typename ApiIdT = Aws::String>
51 ReimportApiRequest& WithApiId(ApiIdT&& value) {
52 SetApiId(std::forward<ApiIdT>(value));
53 return *this;
54 }
56
58
65 inline const Aws::String& GetBasepath() const { return m_basepath; }
66 inline bool BasepathHasBeenSet() const { return m_basepathHasBeenSet; }
67 template <typename BasepathT = Aws::String>
68 void SetBasepath(BasepathT&& value) {
69 m_basepathHasBeenSet = true;
70 m_basepath = std::forward<BasepathT>(value);
71 }
72 template <typename BasepathT = Aws::String>
73 ReimportApiRequest& WithBasepath(BasepathT&& value) {
74 SetBasepath(std::forward<BasepathT>(value));
75 return *this;
76 }
78
80
84 inline bool GetFailOnWarnings() const { return m_failOnWarnings; }
85 inline bool FailOnWarningsHasBeenSet() const { return m_failOnWarningsHasBeenSet; }
86 inline void SetFailOnWarnings(bool value) {
87 m_failOnWarningsHasBeenSet = true;
88 m_failOnWarnings = value;
89 }
91 SetFailOnWarnings(value);
92 return *this;
93 }
95
97
100 inline const Aws::String& GetRequestBody() const { return m_requestBody; }
101 inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; }
102 template <typename RequestBodyT = Aws::String>
103 void SetRequestBody(RequestBodyT&& value) {
104 m_requestBodyHasBeenSet = true;
105 m_requestBody = std::forward<RequestBodyT>(value);
106 }
107 template <typename RequestBodyT = Aws::String>
108 ReimportApiRequest& WithRequestBody(RequestBodyT&& value) {
109 SetRequestBody(std::forward<RequestBodyT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_apiId;
115
116 Aws::String m_basepath;
117
118 bool m_failOnWarnings{false};
119
120 Aws::String m_requestBody;
121 bool m_apiIdHasBeenSet = false;
122 bool m_basepathHasBeenSet = false;
123 bool m_failOnWarningsHasBeenSet = false;
124 bool m_requestBodyHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace ApiGatewayV2
129} // namespace Aws
ReimportApiRequest & WithApiId(ApiIdT &&value)
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_APIGATEWAYV2_API ReimportApiRequest()=default
ReimportApiRequest & WithRequestBody(RequestBodyT &&value)
ReimportApiRequest & WithFailOnWarnings(bool value)
ReimportApiRequest & WithBasepath(BasepathT &&value)
AWS_APIGATEWAYV2_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String