AWS SDK for C++  1.9.124
AWS SDK for C++
HttpContext.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::Map<Aws::String, Aws::String>& GetHeaders() const{ return m_headers; }
46 
50  inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
51 
55  inline void SetHeaders(const Aws::Map<Aws::String, Aws::String>& value) { m_headersHasBeenSet = true; m_headers = value; }
56 
60  inline void SetHeaders(Aws::Map<Aws::String, Aws::String>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
61 
65  inline HttpContext& WithHeaders(const Aws::Map<Aws::String, Aws::String>& value) { SetHeaders(value); return *this;}
66 
70  inline HttpContext& WithHeaders(Aws::Map<Aws::String, Aws::String>&& value) { SetHeaders(std::move(value)); return *this;}
71 
75  inline HttpContext& AddHeaders(const Aws::String& key, const Aws::String& value) { m_headersHasBeenSet = true; m_headers.emplace(key, value); return *this; }
76 
80  inline HttpContext& AddHeaders(Aws::String&& key, const Aws::String& value) { m_headersHasBeenSet = true; m_headers.emplace(std::move(key), value); return *this; }
81 
85  inline HttpContext& AddHeaders(const Aws::String& key, Aws::String&& value) { m_headersHasBeenSet = true; m_headers.emplace(key, std::move(value)); return *this; }
86 
90  inline HttpContext& AddHeaders(Aws::String&& key, Aws::String&& value) { m_headersHasBeenSet = true; m_headers.emplace(std::move(key), std::move(value)); return *this; }
91 
95  inline HttpContext& AddHeaders(const char* key, Aws::String&& value) { m_headersHasBeenSet = true; m_headers.emplace(key, std::move(value)); return *this; }
96 
100  inline HttpContext& AddHeaders(Aws::String&& key, const char* value) { m_headersHasBeenSet = true; m_headers.emplace(std::move(key), value); return *this; }
101 
105  inline HttpContext& AddHeaders(const char* key, const char* value) { m_headersHasBeenSet = true; m_headers.emplace(key, value); return *this; }
106 
107 
111  inline const Aws::String& GetQueryString() const{ return m_queryString; }
112 
116  inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
117 
121  inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
122 
126  inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
127 
131  inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
132 
136  inline HttpContext& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
137 
141  inline HttpContext& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
142 
146  inline HttpContext& WithQueryString(const char* value) { SetQueryString(value); return *this;}
147 
148  private:
149 
151  bool m_headersHasBeenSet;
152 
153  Aws::String m_queryString;
154  bool m_queryStringHasBeenSet;
155  };
156 
157 } // namespace Model
158 } // namespace IoT
159 } // namespace Aws
Aws::IoT::Model::HttpContext::AddHeaders
HttpContext & AddHeaders(Aws::String &&key, const Aws::String &value)
Definition: HttpContext.h:80
Aws::IoT::Model::HttpContext::WithQueryString
HttpContext & WithQueryString(const char *value)
Definition: HttpContext.h:146
Aws::IoT::Model::HttpContext::HeadersHasBeenSet
bool HeadersHasBeenSet() const
Definition: HttpContext.h:50
Aws::IoT::Model::HttpContext::operator=
HttpContext & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::HttpContext::SetHeaders
void SetHeaders(Aws::Map< Aws::String, Aws::String > &&value)
Definition: HttpContext.h:60
Aws::IoT::Model::HttpContext::SetQueryString
void SetQueryString(Aws::String &&value)
Definition: HttpContext.h:126
Aws::IoT::Model::HttpContext::GetQueryString
const Aws::String & GetQueryString() const
Definition: HttpContext.h:111
Aws::IoT::Model::HttpContext
Definition: HttpContext.h:34
Aws::IoT::Model::HttpContext::HttpContext
HttpContext(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::HttpContext::HttpContext
HttpContext()
Aws::IoT::Model::HttpContext::GetHeaders
const Aws::Map< Aws::String, Aws::String > & GetHeaders() const
Definition: HttpContext.h:45
Aws::IoT::Model::HttpContext::SetHeaders
void SetHeaders(const Aws::Map< Aws::String, Aws::String > &value)
Definition: HttpContext.h:55
Aws::IoT::Model::HttpContext::AddHeaders
HttpContext & AddHeaders(const char *key, Aws::String &&value)
Definition: HttpContext.h:95
Aws::IoT::Model::HttpContext::WithHeaders
HttpContext & WithHeaders(Aws::Map< Aws::String, Aws::String > &&value)
Definition: HttpContext.h:70
Aws::IoT::Model::HttpContext::AddHeaders
HttpContext & AddHeaders(Aws::String &&key, const char *value)
Definition: HttpContext.h:100
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::HttpContext::AddHeaders
HttpContext & AddHeaders(const Aws::String &key, Aws::String &&value)
Definition: HttpContext.h:85
Aws::IoT::Model::HttpContext::WithQueryString
HttpContext & WithQueryString(const Aws::String &value)
Definition: HttpContext.h:136
Aws::IoT::Model::HttpContext::AddHeaders
HttpContext & AddHeaders(const char *key, const char *value)
Definition: HttpContext.h:105
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::HttpContext::AddHeaders
HttpContext & AddHeaders(const Aws::String &key, const Aws::String &value)
Definition: HttpContext.h:75
Aws::IoT::Model::HttpContext::WithHeaders
HttpContext & WithHeaders(const Aws::Map< Aws::String, Aws::String > &value)
Definition: HttpContext.h:65
Aws::IoT::Model::HttpContext::SetQueryString
void SetQueryString(const Aws::String &value)
Definition: HttpContext.h:121
Aws::IoT::Model::HttpContext::QueryStringHasBeenSet
bool QueryStringHasBeenSet() const
Definition: HttpContext.h:116
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::HttpContext::SetQueryString
void SetQueryString(const char *value)
Definition: HttpContext.h:131
Aws::IoT::Model::HttpContext::AddHeaders
HttpContext & AddHeaders(Aws::String &&key, Aws::String &&value)
Definition: HttpContext.h:90
AWSMap.h
Aws::IoT::Model::HttpContext::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
IoT_EXPORTS.h
Aws::IoT::Model::HttpContext::WithQueryString
HttpContext & WithQueryString(Aws::String &&value)
Definition: HttpContext.h:141