AWS SDK for C++  1.9.108
AWS SDK for C++
CustomHTTPHeader.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 
34  {
35  public:
40 
41 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
58  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 
67  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
68 
76  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
77 
85  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
86 
94  inline CustomHTTPHeader& WithName(const Aws::String& value) { SetName(value); return *this;}
95 
103  inline CustomHTTPHeader& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
104 
112  inline CustomHTTPHeader& WithName(const char* value) { SetName(value); return *this;}
113 
114 
118  inline const Aws::String& GetValue() const{ return m_value; }
119 
123  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
124 
128  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
129 
133  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
134 
138  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
139 
143  inline CustomHTTPHeader& WithValue(const Aws::String& value) { SetValue(value); return *this;}
144 
148  inline CustomHTTPHeader& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
149 
153  inline CustomHTTPHeader& WithValue(const char* value) { SetValue(value); return *this;}
154 
155  private:
156 
157  Aws::String m_name;
158  bool m_nameHasBeenSet;
159 
160  Aws::String m_value;
161  bool m_valueHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace WAFV2
166 } // namespace Aws
Aws::WAFV2::Model::CustomHTTPHeader::CustomHTTPHeader
CustomHTTPHeader()
Aws::WAFV2::Model::CustomHTTPHeader::GetName
const Aws::String & GetName() const
Definition: CustomHTTPHeader.h:49
Aws::WAFV2::Model::CustomHTTPHeader::SetValue
void SetValue(const Aws::String &value)
Definition: CustomHTTPHeader.h:128
Aws::WAFV2::Model::CustomHTTPHeader::SetName
void SetName(Aws::String &&value)
Definition: CustomHTTPHeader.h:76
Aws::WAFV2::Model::CustomHTTPHeader::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CustomHTTPHeader.h:58
Aws::WAFV2::Model::CustomHTTPHeader::SetValue
void SetValue(const char *value)
Definition: CustomHTTPHeader.h:138
Aws::WAFV2::Model::CustomHTTPHeader::SetName
void SetName(const Aws::String &value)
Definition: CustomHTTPHeader.h:67
Aws::WAFV2::Model::CustomHTTPHeader::operator=
CustomHTTPHeader & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
WAFV2_EXPORTS.h
Aws::WAFV2::Model::CustomHTTPHeader::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::CustomHTTPHeader::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: CustomHTTPHeader.h:123
Aws::WAFV2::Model::CustomHTTPHeader::SetName
void SetName(const char *value)
Definition: CustomHTTPHeader.h:85
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::CustomHTTPHeader::GetValue
const Aws::String & GetValue() const
Definition: CustomHTTPHeader.h:118
Aws::WAFV2::Model::CustomHTTPHeader::WithName
CustomHTTPHeader & WithName(const char *value)
Definition: CustomHTTPHeader.h:112
Aws::WAFV2::Model::CustomHTTPHeader::WithName
CustomHTTPHeader & WithName(Aws::String &&value)
Definition: CustomHTTPHeader.h:103
Aws::WAFV2::Model::CustomHTTPHeader
Definition: CustomHTTPHeader.h:34
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::CustomHTTPHeader::WithValue
CustomHTTPHeader & WithValue(const Aws::String &value)
Definition: CustomHTTPHeader.h:143
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::CustomHTTPHeader::CustomHTTPHeader
CustomHTTPHeader(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::CustomHTTPHeader::WithValue
CustomHTTPHeader & WithValue(const char *value)
Definition: CustomHTTPHeader.h:153
Aws::WAFV2::Model::CustomHTTPHeader::WithValue
CustomHTTPHeader & WithValue(Aws::String &&value)
Definition: CustomHTTPHeader.h:148
Aws::WAFV2::Model::CustomHTTPHeader::SetValue
void SetValue(Aws::String &&value)
Definition: CustomHTTPHeader.h:133
Aws::WAFV2::Model::CustomHTTPHeader::WithName
CustomHTTPHeader & WithName(const Aws::String &value)
Definition: CustomHTTPHeader.h:94