AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutRestApiRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/apigateway/model/PutMode.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/Array.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace APIGateway
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_APIGATEWAY_API PutRestApiRequest() = default;
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "PutRestApi"; }
42
43 AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44
45
47
50 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
51 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
52 template<typename RestApiIdT = Aws::String>
53 void SetRestApiId(RestApiIdT&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::forward<RestApiIdT>(value); }
54 template<typename RestApiIdT = Aws::String>
55 PutRestApiRequest& WithRestApiId(RestApiIdT&& value) { SetRestApiId(std::forward<RestApiIdT>(value)); return *this;}
57
59
63 inline PutMode GetMode() const { return m_mode; }
64 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
65 inline void SetMode(PutMode value) { m_modeHasBeenSet = true; m_mode = value; }
66 inline PutRestApiRequest& WithMode(PutMode value) { SetMode(value); return *this;}
68
70
75 inline bool GetFailOnWarnings() const { return m_failOnWarnings; }
76 inline bool FailOnWarningsHasBeenSet() const { return m_failOnWarningsHasBeenSet; }
77 inline void SetFailOnWarnings(bool value) { m_failOnWarningsHasBeenSet = true; m_failOnWarnings = value; }
78 inline PutRestApiRequest& WithFailOnWarnings(bool value) { SetFailOnWarnings(value); return *this;}
80
82
89 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
90 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
91 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
92 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
93 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
94 PutRestApiRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
95 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
96 PutRestApiRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
97 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
98 }
100 private:
101
102 Aws::String m_restApiId;
103 bool m_restApiIdHasBeenSet = false;
104
106 bool m_modeHasBeenSet = false;
107
108 bool m_failOnWarnings{false};
109 bool m_failOnWarningsHasBeenSet = false;
110
112 bool m_parametersHasBeenSet = false;
113
114 };
115
116} // namespace Model
117} // namespace APIGateway
118} // namespace Aws
PutRestApiRequest & WithParameters(ParametersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
PutRestApiRequest & WithFailOnWarnings(bool value)
PutRestApiRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
PutRestApiRequest & WithRestApiId(RestApiIdT &&value)
AWS_APIGATEWAY_API PutRestApiRequest()=default
AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutRestApiRequest & WithMode(PutMode value)
virtual const char * GetServiceRequestName() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String