AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
74 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
76 inline ImportRestApiRequest& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
77 inline ImportRestApiRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
78 inline ImportRestApiRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
79 inline ImportRestApiRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
80 inline ImportRestApiRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
81 inline ImportRestApiRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
82 inline ImportRestApiRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
83 inline ImportRestApiRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
85 private:
86
87 bool m_failOnWarnings;
88 bool m_failOnWarningsHasBeenSet = false;
89
91 bool m_parametersHasBeenSet = false;
92
93 };
94
95} // namespace Model
96} // namespace APIGateway
97} // namespace Aws
virtual const char * GetServiceRequestName() const override
ImportRestApiRequest & AddParameters(const char *key, const char *value)
ImportRestApiRequest & AddParameters(const char *key, Aws::String &&value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
ImportRestApiRequest & AddParameters(Aws::String &&key, const char *value)
ImportRestApiRequest & AddParameters(Aws::String &&key, const Aws::String &value)
ImportRestApiRequest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
ImportRestApiRequest & WithFailOnWarnings(bool value)
ImportRestApiRequest & AddParameters(const Aws::String &key, Aws::String &&value)
ImportRestApiRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
ImportRestApiRequest & AddParameters(const Aws::String &key, const Aws::String &value)
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ImportRestApiRequest & AddParameters(Aws::String &&key, Aws::String &&value)
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