AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HttpContext.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOT_API HttpContext();
40
41
43
46 inline const Aws::Map<Aws::String, Aws::String>& GetHeaders() const{ return m_headers; }
47 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
48 inline void SetHeaders(const Aws::Map<Aws::String, Aws::String>& value) { m_headersHasBeenSet = true; m_headers = value; }
49 inline void SetHeaders(Aws::Map<Aws::String, Aws::String>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
50 inline HttpContext& WithHeaders(const Aws::Map<Aws::String, Aws::String>& value) { SetHeaders(value); return *this;}
51 inline HttpContext& WithHeaders(Aws::Map<Aws::String, Aws::String>&& value) { SetHeaders(std::move(value)); return *this;}
52 inline HttpContext& AddHeaders(const Aws::String& key, const Aws::String& value) { m_headersHasBeenSet = true; m_headers.emplace(key, value); return *this; }
53 inline HttpContext& AddHeaders(Aws::String&& key, const Aws::String& value) { m_headersHasBeenSet = true; m_headers.emplace(std::move(key), value); return *this; }
54 inline HttpContext& AddHeaders(const Aws::String& key, Aws::String&& value) { m_headersHasBeenSet = true; m_headers.emplace(key, std::move(value)); return *this; }
55 inline HttpContext& AddHeaders(Aws::String&& key, Aws::String&& value) { m_headersHasBeenSet = true; m_headers.emplace(std::move(key), std::move(value)); return *this; }
56 inline HttpContext& AddHeaders(const char* key, Aws::String&& value) { m_headersHasBeenSet = true; m_headers.emplace(key, std::move(value)); return *this; }
57 inline HttpContext& AddHeaders(Aws::String&& key, const char* value) { m_headersHasBeenSet = true; m_headers.emplace(std::move(key), value); return *this; }
58 inline HttpContext& AddHeaders(const char* key, const char* value) { m_headersHasBeenSet = true; m_headers.emplace(key, value); return *this; }
60
62
65 inline const Aws::String& GetQueryString() const{ return m_queryString; }
66 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
67 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
68 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
69 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
70 inline HttpContext& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
71 inline HttpContext& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
72 inline HttpContext& WithQueryString(const char* value) { SetQueryString(value); return *this;}
74 private:
75
77 bool m_headersHasBeenSet = false;
78
79 Aws::String m_queryString;
80 bool m_queryStringHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace IoT
85} // namespace Aws
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API HttpContext(Aws::Utils::Json::JsonView jsonValue)
HttpContext & WithQueryString(const Aws::String &value)
Definition HttpContext.h:70
void SetQueryString(const Aws::String &value)
Definition HttpContext.h:67
HttpContext & WithQueryString(Aws::String &&value)
Definition HttpContext.h:71
HttpContext & WithQueryString(const char *value)
Definition HttpContext.h:72
void SetHeaders(const Aws::Map< Aws::String, Aws::String > &value)
Definition HttpContext.h:48
const Aws::String & GetQueryString() const
Definition HttpContext.h:65
bool QueryStringHasBeenSet() const
Definition HttpContext.h:66
HttpContext & AddHeaders(Aws::String &&key, const char *value)
Definition HttpContext.h:57
void SetQueryString(const char *value)
Definition HttpContext.h:69
const Aws::Map< Aws::String, Aws::String > & GetHeaders() const
Definition HttpContext.h:46
void SetHeaders(Aws::Map< Aws::String, Aws::String > &&value)
Definition HttpContext.h:49
AWS_IOT_API HttpContext & operator=(Aws::Utils::Json::JsonView jsonValue)
HttpContext & AddHeaders(const char *key, Aws::String &&value)
Definition HttpContext.h:56
void SetQueryString(Aws::String &&value)
Definition HttpContext.h:68
HttpContext & AddHeaders(const Aws::String &key, Aws::String &&value)
Definition HttpContext.h:54
HttpContext & AddHeaders(Aws::String &&key, const Aws::String &value)
Definition HttpContext.h:53
HttpContext & WithHeaders(const Aws::Map< Aws::String, Aws::String > &value)
Definition HttpContext.h:50
HttpContext & AddHeaders(Aws::String &&key, Aws::String &&value)
Definition HttpContext.h:55
HttpContext & AddHeaders(const Aws::String &key, const Aws::String &value)
Definition HttpContext.h:52
HttpContext & AddHeaders(const char *key, const char *value)
Definition HttpContext.h:58
HttpContext & WithHeaders(Aws::Map< Aws::String, Aws::String > &&value)
Definition HttpContext.h:51
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
Aws::Utils::Json::JsonValue JsonValue