AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ImportApiRequest.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/ApiGatewayV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace ApiGatewayV2
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_APIGATEWAYV2_API ImportApiRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "ImportApi"; }
38
39 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
40
41 AWS_APIGATEWAYV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
52 inline const Aws::String& GetBasepath() const { return m_basepath; }
53 inline bool BasepathHasBeenSet() const { return m_basepathHasBeenSet; }
54 template<typename BasepathT = Aws::String>
55 void SetBasepath(BasepathT&& value) { m_basepathHasBeenSet = true; m_basepath = std::forward<BasepathT>(value); }
56 template<typename BasepathT = Aws::String>
57 ImportApiRequest& WithBasepath(BasepathT&& value) { SetBasepath(std::forward<BasepathT>(value)); return *this;}
59
61
65 inline bool GetFailOnWarnings() const { return m_failOnWarnings; }
66 inline bool FailOnWarningsHasBeenSet() const { return m_failOnWarningsHasBeenSet; }
67 inline void SetFailOnWarnings(bool value) { m_failOnWarningsHasBeenSet = true; m_failOnWarnings = value; }
68 inline ImportApiRequest& WithFailOnWarnings(bool value) { SetFailOnWarnings(value); return *this;}
70
72
75 inline const Aws::String& GetRequestBody() const { return m_requestBody; }
76 inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; }
77 template<typename RequestBodyT = Aws::String>
78 void SetRequestBody(RequestBodyT&& value) { m_requestBodyHasBeenSet = true; m_requestBody = std::forward<RequestBodyT>(value); }
79 template<typename RequestBodyT = Aws::String>
80 ImportApiRequest& WithRequestBody(RequestBodyT&& value) { SetRequestBody(std::forward<RequestBodyT>(value)); return *this;}
82 private:
83
84 Aws::String m_basepath;
85 bool m_basepathHasBeenSet = false;
86
87 bool m_failOnWarnings{false};
88 bool m_failOnWarningsHasBeenSet = false;
89
90 Aws::String m_requestBody;
91 bool m_requestBodyHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace ApiGatewayV2
96} // 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