AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ImportApiRequest.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 ImportApiRequest() = 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 "ImportApi"; }
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
47 inline const Aws::String& GetBasepath() const { return m_basepath; }
48 inline bool BasepathHasBeenSet() const { return m_basepathHasBeenSet; }
49 template <typename BasepathT = Aws::String>
50 void SetBasepath(BasepathT&& value) {
51 m_basepathHasBeenSet = true;
52 m_basepath = std::forward<BasepathT>(value);
53 }
54 template <typename BasepathT = Aws::String>
55 ImportApiRequest& WithBasepath(BasepathT&& value) {
56 SetBasepath(std::forward<BasepathT>(value));
57 return *this;
58 }
60
62
66 inline bool GetFailOnWarnings() const { return m_failOnWarnings; }
67 inline bool FailOnWarningsHasBeenSet() const { return m_failOnWarningsHasBeenSet; }
68 inline void SetFailOnWarnings(bool value) {
69 m_failOnWarningsHasBeenSet = true;
70 m_failOnWarnings = value;
71 }
73 SetFailOnWarnings(value);
74 return *this;
75 }
77
79
82 inline const Aws::String& GetRequestBody() const { return m_requestBody; }
83 inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; }
84 template <typename RequestBodyT = Aws::String>
85 void SetRequestBody(RequestBodyT&& value) {
86 m_requestBodyHasBeenSet = true;
87 m_requestBody = std::forward<RequestBodyT>(value);
88 }
89 template <typename RequestBodyT = Aws::String>
90 ImportApiRequest& WithRequestBody(RequestBodyT&& value) {
91 SetRequestBody(std::forward<RequestBodyT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_basepath;
97
98 bool m_failOnWarnings{false};
99
100 Aws::String m_requestBody;
101 bool m_basepathHasBeenSet = false;
102 bool m_failOnWarningsHasBeenSet = false;
103 bool m_requestBodyHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace ApiGatewayV2
108} // namespace Aws
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
ImportApiRequest & WithFailOnWarnings(bool value)
virtual const char * GetServiceRequestName() const override
ImportApiRequest & WithBasepath(BasepathT &&value)
const Aws::String & GetRequestBody() const
AWS_APIGATEWAYV2_API ImportApiRequest()=default
ImportApiRequest & WithRequestBody(RequestBodyT &&value)
AWS_APIGATEWAYV2_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String