AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ImportRestApiRequest.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/AWSMap.h>
10#include <aws/core/utils/Array.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace APIGateway
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_APIGATEWAY_API ImportRestApiRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "ImportRestApi"; }
41
42 AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
51 inline bool GetFailOnWarnings() const { return m_failOnWarnings; }
52 inline bool FailOnWarningsHasBeenSet() const { return m_failOnWarningsHasBeenSet; }
53 inline void SetFailOnWarnings(bool value) { m_failOnWarningsHasBeenSet = true; m_failOnWarnings = value; }
54 inline ImportRestApiRequest& WithFailOnWarnings(bool value) { SetFailOnWarnings(value); return *this;}
56
58
71 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
72 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
73 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
74 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
75 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
76 ImportRestApiRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
77 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
78 ImportRestApiRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
79 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
80 }
82 private:
83
84 bool m_failOnWarnings{false};
85 bool m_failOnWarningsHasBeenSet = false;
86
88 bool m_parametersHasBeenSet = false;
89
90 };
91
92} // namespace Model
93} // namespace APIGateway
94} // 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