AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBasepath(const Aws::String& value) { m_basepathHasBeenSet = true; m_basepath = value; }
55 inline void SetBasepath(Aws::String&& value) { m_basepathHasBeenSet = true; m_basepath = std::move(value); }
56 inline void SetBasepath(const char* value) { m_basepathHasBeenSet = true; m_basepath.assign(value); }
57 inline ImportApiRequest& WithBasepath(const Aws::String& value) { SetBasepath(value); return *this;}
58 inline ImportApiRequest& WithBasepath(Aws::String&& value) { SetBasepath(std::move(value)); return *this;}
59 inline ImportApiRequest& WithBasepath(const char* value) { SetBasepath(value); return *this;}
61
63
67 inline bool GetFailOnWarnings() const{ return m_failOnWarnings; }
68 inline bool FailOnWarningsHasBeenSet() const { return m_failOnWarningsHasBeenSet; }
69 inline void SetFailOnWarnings(bool value) { m_failOnWarningsHasBeenSet = true; m_failOnWarnings = value; }
70 inline ImportApiRequest& WithFailOnWarnings(bool value) { SetFailOnWarnings(value); return *this;}
72
74
77 inline const Aws::String& GetRequestBody() const{ return m_requestBody; }
78 inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; }
79 inline void SetRequestBody(const Aws::String& value) { m_requestBodyHasBeenSet = true; m_requestBody = value; }
80 inline void SetRequestBody(Aws::String&& value) { m_requestBodyHasBeenSet = true; m_requestBody = std::move(value); }
81 inline void SetRequestBody(const char* value) { m_requestBodyHasBeenSet = true; m_requestBody.assign(value); }
82 inline ImportApiRequest& WithRequestBody(const Aws::String& value) { SetRequestBody(value); return *this;}
83 inline ImportApiRequest& WithRequestBody(Aws::String&& value) { SetRequestBody(std::move(value)); return *this;}
84 inline ImportApiRequest& WithRequestBody(const char* value) { SetRequestBody(value); return *this;}
86 private:
87
88 Aws::String m_basepath;
89 bool m_basepathHasBeenSet = false;
90
91 bool m_failOnWarnings;
92 bool m_failOnWarningsHasBeenSet = false;
93
94 Aws::String m_requestBody;
95 bool m_requestBodyHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace ApiGatewayV2
100} // namespace Aws
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
ImportApiRequest & WithRequestBody(const Aws::String &value)
ImportApiRequest & WithFailOnWarnings(bool value)
ImportApiRequest & WithRequestBody(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ImportApiRequest & WithBasepath(Aws::String &&value)
const Aws::String & GetRequestBody() const
void SetRequestBody(const Aws::String &value)
ImportApiRequest & WithBasepath(const char *value)
ImportApiRequest & WithRequestBody(const char *value)
AWS_APIGATEWAYV2_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetBasepath(const Aws::String &value)
ImportApiRequest & WithBasepath(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String