AWS SDK for C++  1.9.125
AWS SDK for C++
HttpActionHeader.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetKey() const{ return m_key; }
44 
48  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
49 
53  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
54 
58  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
59 
63  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
64 
68  inline HttpActionHeader& WithKey(const Aws::String& value) { SetKey(value); return *this;}
69 
73  inline HttpActionHeader& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
74 
78  inline HttpActionHeader& WithKey(const char* value) { SetKey(value); return *this;}
79 
80 
84  inline const Aws::String& GetValue() const{ return m_value; }
85 
89  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
90 
94  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
95 
99  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
100 
104  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
105 
109  inline HttpActionHeader& WithValue(const Aws::String& value) { SetValue(value); return *this;}
110 
114  inline HttpActionHeader& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
115 
119  inline HttpActionHeader& WithValue(const char* value) { SetValue(value); return *this;}
120 
121  private:
122 
123  Aws::String m_key;
124  bool m_keyHasBeenSet;
125 
126  Aws::String m_value;
127  bool m_valueHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace IoT
132 } // namespace Aws
Aws::IoT::Model::HttpActionHeader::SetValue
void SetValue(const char *value)
Definition: HttpActionHeader.h:104
Aws::IoT::Model::HttpActionHeader::SetValue
void SetValue(const Aws::String &value)
Definition: HttpActionHeader.h:94
Aws::IoT::Model::HttpActionHeader::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::HttpActionHeader::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: HttpActionHeader.h:48
Aws::IoT::Model::HttpActionHeader::SetKey
void SetKey(Aws::String &&value)
Definition: HttpActionHeader.h:58
Aws::IoT::Model::HttpActionHeader::WithValue
HttpActionHeader & WithValue(Aws::String &&value)
Definition: HttpActionHeader.h:114
Aws::IoT::Model::HttpActionHeader::WithValue
HttpActionHeader & WithValue(const char *value)
Definition: HttpActionHeader.h:119
Aws::IoT::Model::HttpActionHeader::WithKey
HttpActionHeader & WithKey(const char *value)
Definition: HttpActionHeader.h:78
Aws::IoT::Model::HttpActionHeader::SetKey
void SetKey(const char *value)
Definition: HttpActionHeader.h:63
Aws::IoT::Model::HttpActionHeader::HttpActionHeader
HttpActionHeader()
Aws::IoT::Model::HttpActionHeader::operator=
HttpActionHeader & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::HttpActionHeader::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: HttpActionHeader.h:89
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::HttpActionHeader::WithKey
HttpActionHeader & WithKey(const Aws::String &value)
Definition: HttpActionHeader.h:68
Aws::IoT::Model::HttpActionHeader::SetValue
void SetValue(Aws::String &&value)
Definition: HttpActionHeader.h:99
Aws::IoT::Model::HttpActionHeader::WithKey
HttpActionHeader & WithKey(Aws::String &&value)
Definition: HttpActionHeader.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::HttpActionHeader::HttpActionHeader
HttpActionHeader(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::HttpActionHeader
Definition: HttpActionHeader.h:32
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::HttpActionHeader::SetKey
void SetKey(const Aws::String &value)
Definition: HttpActionHeader.h:53
Aws::IoT::Model::HttpActionHeader::WithValue
HttpActionHeader & WithValue(const Aws::String &value)
Definition: HttpActionHeader.h:109
Aws::IoT::Model::HttpActionHeader::GetValue
const Aws::String & GetValue() const
Definition: HttpActionHeader.h:84
Aws::IoT::Model::HttpActionHeader::GetKey
const Aws::String & GetKey() const
Definition: HttpActionHeader.h:43
IoT_EXPORTS.h