AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
51 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
52 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
53 inline ReimportApiRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
54 inline ReimportApiRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
55 inline ReimportApiRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
57
59
66 inline const Aws::String& GetBasepath() const{ return m_basepath; }
67 inline bool BasepathHasBeenSet() const { return m_basepathHasBeenSet; }
68 inline void SetBasepath(const Aws::String& value) { m_basepathHasBeenSet = true; m_basepath = value; }
69 inline void SetBasepath(Aws::String&& value) { m_basepathHasBeenSet = true; m_basepath = std::move(value); }
70 inline void SetBasepath(const char* value) { m_basepathHasBeenSet = true; m_basepath.assign(value); }
71 inline ReimportApiRequest& WithBasepath(const Aws::String& value) { SetBasepath(value); return *this;}
72 inline ReimportApiRequest& WithBasepath(Aws::String&& value) { SetBasepath(std::move(value)); return *this;}
73 inline ReimportApiRequest& WithBasepath(const char* value) { SetBasepath(value); return *this;}
75
77
81 inline bool GetFailOnWarnings() const{ return m_failOnWarnings; }
82 inline bool FailOnWarningsHasBeenSet() const { return m_failOnWarningsHasBeenSet; }
83 inline void SetFailOnWarnings(bool value) { m_failOnWarningsHasBeenSet = true; m_failOnWarnings = value; }
84 inline ReimportApiRequest& WithFailOnWarnings(bool value) { SetFailOnWarnings(value); return *this;}
86
88
91 inline const Aws::String& GetRequestBody() const{ return m_requestBody; }
92 inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; }
93 inline void SetRequestBody(const Aws::String& value) { m_requestBodyHasBeenSet = true; m_requestBody = value; }
94 inline void SetRequestBody(Aws::String&& value) { m_requestBodyHasBeenSet = true; m_requestBody = std::move(value); }
95 inline void SetRequestBody(const char* value) { m_requestBodyHasBeenSet = true; m_requestBody.assign(value); }
96 inline ReimportApiRequest& WithRequestBody(const Aws::String& value) { SetRequestBody(value); return *this;}
97 inline ReimportApiRequest& WithRequestBody(Aws::String&& value) { SetRequestBody(std::move(value)); return *this;}
98 inline ReimportApiRequest& WithRequestBody(const char* value) { SetRequestBody(value); return *this;}
100 private:
101
102 Aws::String m_apiId;
103 bool m_apiIdHasBeenSet = false;
104
105 Aws::String m_basepath;
106 bool m_basepathHasBeenSet = false;
107
108 bool m_failOnWarnings;
109 bool m_failOnWarningsHasBeenSet = false;
110
111 Aws::String m_requestBody;
112 bool m_requestBodyHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace ApiGatewayV2
117} // namespace Aws
void SetRequestBody(const Aws::String &value)
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
ReimportApiRequest & WithApiId(const char *value)
virtual const char * GetServiceRequestName() const override
ReimportApiRequest & WithRequestBody(Aws::String &&value)
ReimportApiRequest & WithRequestBody(const char *value)
ReimportApiRequest & WithFailOnWarnings(bool value)
ReimportApiRequest & WithBasepath(const char *value)
AWS_APIGATEWAYV2_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ReimportApiRequest & WithApiId(const Aws::String &value)
ReimportApiRequest & WithBasepath(Aws::String &&value)
ReimportApiRequest & WithApiId(Aws::String &&value)
ReimportApiRequest & WithBasepath(const Aws::String &value)
ReimportApiRequest & WithRequestBody(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String