AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
ImportRestApiRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace APIGateway {
20namespace Model {
21
29 public:
30 AWS_APIGATEWAY_API ImportRestApiRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ImportRestApi"; }
37
38 AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
46 inline bool GetFailOnWarnings() const { return m_failOnWarnings; }
47 inline bool FailOnWarningsHasBeenSet() const { return m_failOnWarningsHasBeenSet; }
48 inline void SetFailOnWarnings(bool value) {
49 m_failOnWarningsHasBeenSet = true;
50 m_failOnWarnings = value;
51 }
53 SetFailOnWarnings(value);
54 return *this;
55 }
57
59
72 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
73 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
74 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
75 void SetParameters(ParametersT&& value) {
76 m_parametersHasBeenSet = true;
77 m_parameters = std::forward<ParametersT>(value);
78 }
79 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
80 ImportRestApiRequest& WithParameters(ParametersT&& value) {
81 SetParameters(std::forward<ParametersT>(value));
82 return *this;
83 }
84 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
85 ImportRestApiRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
86 m_parametersHasBeenSet = true;
87 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
88 return *this;
89 }
91 private:
92 bool m_failOnWarnings{false};
93
95
96 bool m_failOnWarningsHasBeenSet = false;
97 bool m_parametersHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace APIGateway
102} // namespace Aws
virtual const char * GetServiceRequestName() const override
ImportRestApiRequest & WithParameters(ParametersT &&value)
ImportRestApiRequest & WithFailOnWarnings(bool value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
ImportRestApiRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_APIGATEWAY_API ImportRestApiRequest()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map