AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ReimportApiRequest.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 ReimportApiRequest() = 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 "ReimportApi"; }
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
48 inline const Aws::String& GetApiId() const { return m_apiId; }
49 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
50 template<typename ApiIdT = Aws::String>
51 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
52 template<typename ApiIdT = Aws::String>
53 ReimportApiRequest& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
55
57
64 inline const Aws::String& GetBasepath() const { return m_basepath; }
65 inline bool BasepathHasBeenSet() const { return m_basepathHasBeenSet; }
66 template<typename BasepathT = Aws::String>
67 void SetBasepath(BasepathT&& value) { m_basepathHasBeenSet = true; m_basepath = std::forward<BasepathT>(value); }
68 template<typename BasepathT = Aws::String>
69 ReimportApiRequest& WithBasepath(BasepathT&& value) { SetBasepath(std::forward<BasepathT>(value)); return *this;}
71
73
77 inline bool GetFailOnWarnings() const { return m_failOnWarnings; }
78 inline bool FailOnWarningsHasBeenSet() const { return m_failOnWarningsHasBeenSet; }
79 inline void SetFailOnWarnings(bool value) { m_failOnWarningsHasBeenSet = true; m_failOnWarnings = value; }
80 inline ReimportApiRequest& WithFailOnWarnings(bool value) { SetFailOnWarnings(value); return *this;}
82
84
87 inline const Aws::String& GetRequestBody() const { return m_requestBody; }
88 inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; }
89 template<typename RequestBodyT = Aws::String>
90 void SetRequestBody(RequestBodyT&& value) { m_requestBodyHasBeenSet = true; m_requestBody = std::forward<RequestBodyT>(value); }
91 template<typename RequestBodyT = Aws::String>
92 ReimportApiRequest& WithRequestBody(RequestBodyT&& value) { SetRequestBody(std::forward<RequestBodyT>(value)); return *this;}
94 private:
95
96 Aws::String m_apiId;
97 bool m_apiIdHasBeenSet = false;
98
99 Aws::String m_basepath;
100 bool m_basepathHasBeenSet = false;
101
102 bool m_failOnWarnings{false};
103 bool m_failOnWarningsHasBeenSet = false;
104
105 Aws::String m_requestBody;
106 bool m_requestBodyHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace ApiGatewayV2
111} // 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