AWS SDK for C++  1.9.104
AWS SDK for C++
HTTPHeader.h
Go to the documentation of this file.
1 
6 #pragma once
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 WAFV2
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetName() const{ return m_name; }
47 
51  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 
56  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 
61  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 
66  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 
71  inline HTTPHeader& WithName(const Aws::String& value) { SetName(value); return *this;}
72 
76  inline HTTPHeader& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
77 
81  inline HTTPHeader& WithName(const char* value) { SetName(value); return *this;}
82 
83 
87  inline const Aws::String& GetValue() const{ return m_value; }
88 
92  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
93 
97  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
98 
102  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
103 
107  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
108 
112  inline HTTPHeader& WithValue(const Aws::String& value) { SetValue(value); return *this;}
113 
117  inline HTTPHeader& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
118 
122  inline HTTPHeader& WithValue(const char* value) { SetValue(value); return *this;}
123 
124  private:
125 
126  Aws::String m_name;
127  bool m_nameHasBeenSet;
128 
129  Aws::String m_value;
130  bool m_valueHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace WAFV2
135 } // namespace Aws
Aws::WAFV2::Model::HTTPHeader::WithName
HTTPHeader & WithName(const char *value)
Definition: HTTPHeader.h:81
Aws::WAFV2::Model::HTTPHeader::WithValue
HTTPHeader & WithValue(const char *value)
Definition: HTTPHeader.h:122
Aws::WAFV2::Model::HTTPHeader::SetValue
void SetValue(const Aws::String &value)
Definition: HTTPHeader.h:97
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::HTTPHeader::SetValue
void SetValue(const char *value)
Definition: HTTPHeader.h:107
Aws::WAFV2::Model::HTTPHeader::operator=
HTTPHeader & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::HTTPHeader::NameHasBeenSet
bool NameHasBeenSet() const
Definition: HTTPHeader.h:51
Aws::WAFV2::Model::HTTPHeader::HTTPHeader
HTTPHeader()
Aws::WAFV2::Model::HTTPHeader::WithName
HTTPHeader & WithName(Aws::String &&value)
Definition: HTTPHeader.h:76
Aws::WAFV2::Model::HTTPHeader::SetValue
void SetValue(Aws::String &&value)
Definition: HTTPHeader.h:102
WAFV2_EXPORTS.h
Aws::WAFV2::Model::HTTPHeader::GetName
const Aws::String & GetName() const
Definition: HTTPHeader.h:46
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::HTTPHeader
Definition: HTTPHeader.h:35
Aws::WAFV2::Model::HTTPHeader::WithName
HTTPHeader & WithName(const Aws::String &value)
Definition: HTTPHeader.h:71
Aws::WAFV2::Model::HTTPHeader::GetValue
const Aws::String & GetValue() const
Definition: HTTPHeader.h:87
Aws::WAFV2::Model::HTTPHeader::WithValue
HTTPHeader & WithValue(const Aws::String &value)
Definition: HTTPHeader.h:112
Aws::WAFV2::Model::HTTPHeader::SetName
void SetName(const char *value)
Definition: HTTPHeader.h:66
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::HTTPHeader::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: HTTPHeader.h:92
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::HTTPHeader::HTTPHeader
HTTPHeader(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::HTTPHeader::SetName
void SetName(Aws::String &&value)
Definition: HTTPHeader.h:61
Aws::WAFV2::Model::HTTPHeader::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::HTTPHeader::SetName
void SetName(const Aws::String &value)
Definition: HTTPHeader.h:56
Aws::WAFV2::Model::HTTPHeader::WithValue
HTTPHeader & WithValue(Aws::String &&value)
Definition: HTTPHeader.h:117