AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HttpParameters.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EventBridge
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_EVENTBRIDGE_API HttpParameters();
40 AWS_EVENTBRIDGE_API HttpParameters(Aws::Utils::Json::JsonView jsonValue);
41 AWS_EVENTBRIDGE_API HttpParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<Aws::String>& GetPathParameterValues() const{ return m_pathParameterValues; }
51 inline bool PathParameterValuesHasBeenSet() const { return m_pathParameterValuesHasBeenSet; }
52 inline void SetPathParameterValues(const Aws::Vector<Aws::String>& value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues = value; }
53 inline void SetPathParameterValues(Aws::Vector<Aws::String>&& value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues = std::move(value); }
56 inline HttpParameters& AddPathParameterValues(const Aws::String& value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues.push_back(value); return *this; }
57 inline HttpParameters& AddPathParameterValues(Aws::String&& value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues.push_back(std::move(value)); return *this; }
58 inline HttpParameters& AddPathParameterValues(const char* value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues.push_back(value); return *this; }
60
62
66 inline const Aws::Map<Aws::String, Aws::String>& GetHeaderParameters() const{ return m_headerParameters; }
67 inline bool HeaderParametersHasBeenSet() const { return m_headerParametersHasBeenSet; }
68 inline void SetHeaderParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_headerParametersHasBeenSet = true; m_headerParameters = value; }
69 inline void SetHeaderParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_headerParametersHasBeenSet = true; m_headerParameters = std::move(value); }
72 inline HttpParameters& AddHeaderParameters(const Aws::String& key, const Aws::String& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(key, value); return *this; }
73 inline HttpParameters& AddHeaderParameters(Aws::String&& key, const Aws::String& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(std::move(key), value); return *this; }
74 inline HttpParameters& AddHeaderParameters(const Aws::String& key, Aws::String&& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(key, std::move(value)); return *this; }
75 inline HttpParameters& AddHeaderParameters(Aws::String&& key, Aws::String&& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(std::move(key), std::move(value)); return *this; }
76 inline HttpParameters& AddHeaderParameters(const char* key, Aws::String&& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(key, std::move(value)); return *this; }
77 inline HttpParameters& AddHeaderParameters(Aws::String&& key, const char* value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(std::move(key), value); return *this; }
78 inline HttpParameters& AddHeaderParameters(const char* key, const char* value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(key, value); return *this; }
80
82
86 inline const Aws::Map<Aws::String, Aws::String>& GetQueryStringParameters() const{ return m_queryStringParameters; }
87 inline bool QueryStringParametersHasBeenSet() const { return m_queryStringParametersHasBeenSet; }
88 inline void SetQueryStringParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters = value; }
89 inline void SetQueryStringParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters = std::move(value); }
92 inline HttpParameters& AddQueryStringParameters(const Aws::String& key, const Aws::String& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, value); return *this; }
93 inline HttpParameters& AddQueryStringParameters(Aws::String&& key, const Aws::String& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(std::move(key), value); return *this; }
94 inline HttpParameters& AddQueryStringParameters(const Aws::String& key, Aws::String&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, std::move(value)); return *this; }
95 inline HttpParameters& AddQueryStringParameters(Aws::String&& key, Aws::String&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(std::move(key), std::move(value)); return *this; }
96 inline HttpParameters& AddQueryStringParameters(const char* key, Aws::String&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, std::move(value)); return *this; }
97 inline HttpParameters& AddQueryStringParameters(Aws::String&& key, const char* value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(std::move(key), value); return *this; }
98 inline HttpParameters& AddQueryStringParameters(const char* key, const char* value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, value); return *this; }
100 private:
101
102 Aws::Vector<Aws::String> m_pathParameterValues;
103 bool m_pathParameterValuesHasBeenSet = false;
104
105 Aws::Map<Aws::String, Aws::String> m_headerParameters;
106 bool m_headerParametersHasBeenSet = false;
107
108 Aws::Map<Aws::String, Aws::String> m_queryStringParameters;
109 bool m_queryStringParametersHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace EventBridge
114} // namespace Aws
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPathParameterValues(Aws::Vector< Aws::String > &&value)
HttpParameters & WithQueryStringParameters(Aws::Map< Aws::String, Aws::String > &&value)
AWS_EVENTBRIDGE_API HttpParameters(Aws::Utils::Json::JsonView jsonValue)
HttpParameters & AddHeaderParameters(const Aws::String &key, const Aws::String &value)
void SetHeaderParameters(const Aws::Map< Aws::String, Aws::String > &value)
void SetQueryStringParameters(Aws::Map< Aws::String, Aws::String > &&value)
HttpParameters & AddQueryStringParameters(Aws::String &&key, Aws::String &&value)
HttpParameters & WithHeaderParameters(Aws::Map< Aws::String, Aws::String > &&value)
HttpParameters & AddPathParameterValues(const char *value)
HttpParameters & AddQueryStringParameters(const Aws::String &key, Aws::String &&value)
HttpParameters & WithPathParameterValues(Aws::Vector< Aws::String > &&value)
HttpParameters & AddHeaderParameters(const char *key, Aws::String &&value)
HttpParameters & WithPathParameterValues(const Aws::Vector< Aws::String > &value)
HttpParameters & AddPathParameterValues(const Aws::String &value)
HttpParameters & AddHeaderParameters(Aws::String &&key, const Aws::String &value)
HttpParameters & WithQueryStringParameters(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetQueryStringParameters() const
HttpParameters & AddQueryStringParameters(Aws::String &&key, const char *value)
void SetHeaderParameters(Aws::Map< Aws::String, Aws::String > &&value)
HttpParameters & AddQueryStringParameters(const Aws::String &key, const Aws::String &value)
HttpParameters & WithHeaderParameters(const Aws::Map< Aws::String, Aws::String > &value)
HttpParameters & AddHeaderParameters(const Aws::String &key, Aws::String &&value)
HttpParameters & AddHeaderParameters(const char *key, const char *value)
HttpParameters & AddQueryStringParameters(Aws::String &&key, const Aws::String &value)
void SetQueryStringParameters(const Aws::Map< Aws::String, Aws::String > &value)
HttpParameters & AddQueryStringParameters(const char *key, const char *value)
void SetPathParameterValues(const Aws::Vector< Aws::String > &value)
HttpParameters & AddHeaderParameters(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetHeaderParameters() const
const Aws::Vector< Aws::String > & GetPathParameterValues() const
HttpParameters & AddQueryStringParameters(const char *key, Aws::String &&value)
HttpParameters & AddPathParameterValues(Aws::String &&value)
HttpParameters & AddHeaderParameters(Aws::String &&key, Aws::String &&value)
AWS_EVENTBRIDGE_API HttpParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue