AWS SDK for C++  1.8.126
AWS SDK for C++
HttpParameters.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace EventBridge
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
47  inline const Aws::Vector<Aws::String>& GetPathParameterValues() const{ return m_pathParameterValues; }
48 
53  inline bool PathParameterValuesHasBeenSet() const { return m_pathParameterValuesHasBeenSet; }
54 
59  inline void SetPathParameterValues(const Aws::Vector<Aws::String>& value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues = value; }
60 
65  inline void SetPathParameterValues(Aws::Vector<Aws::String>&& value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues = std::move(value); }
66 
71  inline HttpParameters& WithPathParameterValues(const Aws::Vector<Aws::String>& value) { SetPathParameterValues(value); return *this;}
72 
77  inline HttpParameters& WithPathParameterValues(Aws::Vector<Aws::String>&& value) { SetPathParameterValues(std::move(value)); return *this;}
78 
83  inline HttpParameters& AddPathParameterValues(const Aws::String& value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues.push_back(value); return *this; }
84 
89  inline HttpParameters& AddPathParameterValues(Aws::String&& value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues.push_back(std::move(value)); return *this; }
90 
95  inline HttpParameters& AddPathParameterValues(const char* value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues.push_back(value); return *this; }
96 
97 
102  inline const Aws::Map<Aws::String, Aws::String>& GetHeaderParameters() const{ return m_headerParameters; }
103 
108  inline bool HeaderParametersHasBeenSet() const { return m_headerParametersHasBeenSet; }
109 
114  inline void SetHeaderParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_headerParametersHasBeenSet = true; m_headerParameters = value; }
115 
120  inline void SetHeaderParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_headerParametersHasBeenSet = true; m_headerParameters = std::move(value); }
121 
126  inline HttpParameters& WithHeaderParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetHeaderParameters(value); return *this;}
127 
132  inline HttpParameters& WithHeaderParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetHeaderParameters(std::move(value)); return *this;}
133 
138  inline HttpParameters& AddHeaderParameters(const Aws::String& key, const Aws::String& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(key, value); return *this; }
139 
144  inline HttpParameters& AddHeaderParameters(Aws::String&& key, const Aws::String& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(std::move(key), value); return *this; }
145 
150  inline HttpParameters& AddHeaderParameters(const Aws::String& key, Aws::String&& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(key, std::move(value)); return *this; }
151 
156  inline HttpParameters& AddHeaderParameters(Aws::String&& key, Aws::String&& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(std::move(key), std::move(value)); return *this; }
157 
162  inline HttpParameters& AddHeaderParameters(const char* key, Aws::String&& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(key, std::move(value)); return *this; }
163 
168  inline HttpParameters& AddHeaderParameters(Aws::String&& key, const char* value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(std::move(key), value); return *this; }
169 
174  inline HttpParameters& AddHeaderParameters(const char* key, const char* value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(key, value); return *this; }
175 
176 
181  inline const Aws::Map<Aws::String, Aws::String>& GetQueryStringParameters() const{ return m_queryStringParameters; }
182 
187  inline bool QueryStringParametersHasBeenSet() const { return m_queryStringParametersHasBeenSet; }
188 
193  inline void SetQueryStringParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters = value; }
194 
199  inline void SetQueryStringParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters = std::move(value); }
200 
205  inline HttpParameters& WithQueryStringParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetQueryStringParameters(value); return *this;}
206 
211  inline HttpParameters& WithQueryStringParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetQueryStringParameters(std::move(value)); return *this;}
212 
217  inline HttpParameters& AddQueryStringParameters(const Aws::String& key, const Aws::String& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, value); return *this; }
218 
223  inline HttpParameters& AddQueryStringParameters(Aws::String&& key, const Aws::String& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(std::move(key), value); return *this; }
224 
229  inline HttpParameters& AddQueryStringParameters(const Aws::String& key, Aws::String&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, std::move(value)); return *this; }
230 
235  inline HttpParameters& AddQueryStringParameters(Aws::String&& key, Aws::String&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(std::move(key), std::move(value)); return *this; }
236 
241  inline HttpParameters& AddQueryStringParameters(const char* key, Aws::String&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, std::move(value)); return *this; }
242 
247  inline HttpParameters& AddQueryStringParameters(Aws::String&& key, const char* value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(std::move(key), value); return *this; }
248 
253  inline HttpParameters& AddQueryStringParameters(const char* key, const char* value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, value); return *this; }
254 
255  private:
256 
257  Aws::Vector<Aws::String> m_pathParameterValues;
258  bool m_pathParameterValuesHasBeenSet;
259 
260  Aws::Map<Aws::String, Aws::String> m_headerParameters;
261  bool m_headerParametersHasBeenSet;
262 
263  Aws::Map<Aws::String, Aws::String> m_queryStringParameters;
264  bool m_queryStringParametersHasBeenSet;
265  };
266 
267 } // namespace Model
268 } // namespace EventBridge
269 } // namespace Aws
Aws::EventBridge::Model::HttpParameters::AddQueryStringParameters
HttpParameters & AddQueryStringParameters(const char *key, const char *value)
Definition: HttpParameters.h:253
Aws::EventBridge::Model::HttpParameters::AddQueryStringParameters
HttpParameters & AddQueryStringParameters(const Aws::String &key, const Aws::String &value)
Definition: HttpParameters.h:217
Aws::EventBridge::Model::HttpParameters::AddHeaderParameters
HttpParameters & AddHeaderParameters(Aws::String &&key, Aws::String &&value)
Definition: HttpParameters.h:156
Aws::EventBridge::Model::HttpParameters::AddHeaderParameters
HttpParameters & AddHeaderParameters(const char *key, const char *value)
Definition: HttpParameters.h:174
Aws::EventBridge::Model::HttpParameters::WithQueryStringParameters
HttpParameters & WithQueryStringParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: HttpParameters.h:205
Aws::EventBridge::Model::HttpParameters::SetQueryStringParameters
void SetQueryStringParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: HttpParameters.h:199
Aws::EventBridge::Model::HttpParameters::PathParameterValuesHasBeenSet
bool PathParameterValuesHasBeenSet() const
Definition: HttpParameters.h:53
AWS_EVENTBRIDGE_API
#define AWS_EVENTBRIDGE_API
Definition: EventBridge_EXPORTS.h:28
Aws::EventBridge::Model::HttpParameters::operator=
HttpParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EventBridge::Model::HttpParameters::AddHeaderParameters
HttpParameters & AddHeaderParameters(const Aws::String &key, Aws::String &&value)
Definition: HttpParameters.h:150
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EventBridge::Model::HttpParameters::SetPathParameterValues
void SetPathParameterValues(Aws::Vector< Aws::String > &&value)
Definition: HttpParameters.h:65
AWSVector.h
Aws::EventBridge::Model::HttpParameters::GetQueryStringParameters
const Aws::Map< Aws::String, Aws::String > & GetQueryStringParameters() const
Definition: HttpParameters.h:181
Aws::EventBridge::Model::HttpParameters::WithPathParameterValues
HttpParameters & WithPathParameterValues(const Aws::Vector< Aws::String > &value)
Definition: HttpParameters.h:71
Aws::EventBridge::Model::HttpParameters
Definition: HttpParameters.h:35
Aws::EventBridge::Model::HttpParameters::WithHeaderParameters
HttpParameters & WithHeaderParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: HttpParameters.h:132
Aws::EventBridge::Model::HttpParameters::AddHeaderParameters
HttpParameters & AddHeaderParameters(Aws::String &&key, const Aws::String &value)
Definition: HttpParameters.h:144
Aws::EventBridge::Model::HttpParameters::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EventBridge::Model::HttpParameters::AddPathParameterValues
HttpParameters & AddPathParameterValues(Aws::String &&value)
Definition: HttpParameters.h:89
Aws::EventBridge::Model::HttpParameters::AddHeaderParameters
HttpParameters & AddHeaderParameters(Aws::String &&key, const char *value)
Definition: HttpParameters.h:168
Aws::EventBridge::Model::HttpParameters::QueryStringParametersHasBeenSet
bool QueryStringParametersHasBeenSet() const
Definition: HttpParameters.h:187
Aws::EventBridge::Model::HttpParameters::WithQueryStringParameters
HttpParameters & WithQueryStringParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: HttpParameters.h:211
Aws::EventBridge::Model::HttpParameters::AddQueryStringParameters
HttpParameters & AddQueryStringParameters(Aws::String &&key, Aws::String &&value)
Definition: HttpParameters.h:235
Aws::EventBridge::Model::HttpParameters::AddQueryStringParameters
HttpParameters & AddQueryStringParameters(const char *key, Aws::String &&value)
Definition: HttpParameters.h:241
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EventBridge::Model::HttpParameters::AddPathParameterValues
HttpParameters & AddPathParameterValues(const char *value)
Definition: HttpParameters.h:95
Aws::EventBridge::Model::HttpParameters::AddPathParameterValues
HttpParameters & AddPathParameterValues(const Aws::String &value)
Definition: HttpParameters.h:83
Aws::EventBridge::Model::HttpParameters::GetPathParameterValues
const Aws::Vector< Aws::String > & GetPathParameterValues() const
Definition: HttpParameters.h:47
Aws::EventBridge::Model::HttpParameters::SetPathParameterValues
void SetPathParameterValues(const Aws::Vector< Aws::String > &value)
Definition: HttpParameters.h:59
Aws::EventBridge::Model::HttpParameters::AddQueryStringParameters
HttpParameters & AddQueryStringParameters(Aws::String &&key, const Aws::String &value)
Definition: HttpParameters.h:223
Aws::EventBridge::Model::HttpParameters::AddQueryStringParameters
HttpParameters & AddQueryStringParameters(const Aws::String &key, Aws::String &&value)
Definition: HttpParameters.h:229
Aws::EventBridge::Model::HttpParameters::SetHeaderParameters
void SetHeaderParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: HttpParameters.h:120
EventBridge_EXPORTS.h
Aws::EventBridge::Model::HttpParameters::AddHeaderParameters
HttpParameters & AddHeaderParameters(const char *key, Aws::String &&value)
Definition: HttpParameters.h:162
Aws
Definition: AccessManagementClient.h:15
Aws::EventBridge::Model::HttpParameters::SetHeaderParameters
void SetHeaderParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: HttpParameters.h:114
Aws::EventBridge::Model::HttpParameters::SetQueryStringParameters
void SetQueryStringParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: HttpParameters.h:193
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EventBridge::Model::HttpParameters::AddHeaderParameters
HttpParameters & AddHeaderParameters(const Aws::String &key, const Aws::String &value)
Definition: HttpParameters.h:138
Aws::EventBridge::Model::HttpParameters::HttpParameters
HttpParameters()
Aws::EventBridge::Model::HttpParameters::GetHeaderParameters
const Aws::Map< Aws::String, Aws::String > & GetHeaderParameters() const
Definition: HttpParameters.h:102
Aws::EventBridge::Model::HttpParameters::HeaderParametersHasBeenSet
bool HeaderParametersHasBeenSet() const
Definition: HttpParameters.h:108
Aws::EventBridge::Model::HttpParameters::WithPathParameterValues
HttpParameters & WithPathParameterValues(Aws::Vector< Aws::String > &&value)
Definition: HttpParameters.h:77
Aws::EventBridge::Model::HttpParameters::WithHeaderParameters
HttpParameters & WithHeaderParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: HttpParameters.h:126
Aws::EventBridge::Model::HttpParameters::AddQueryStringParameters
HttpParameters & AddQueryStringParameters(Aws::String &&key, const char *value)
Definition: HttpParameters.h:247
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::EventBridge::Model::HttpParameters::HttpParameters
HttpParameters(Aws::Utils::Json::JsonView jsonValue)