AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HTTPHeader.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAF
22{
23namespace Model
24{
25
44 {
45 public:
46 AWS_WAF_API HTTPHeader();
47 AWS_WAF_API HTTPHeader(Aws::Utils::Json::JsonView jsonValue);
50
51
53
56 inline const Aws::String& GetName() const{ return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 inline HTTPHeader& WithName(const Aws::String& value) { SetName(value); return *this;}
62 inline HTTPHeader& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
63 inline HTTPHeader& WithName(const char* value) { SetName(value); return *this;}
65
67
70 inline const Aws::String& GetValue() const{ return m_value; }
71 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
72 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
73 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
74 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
75 inline HTTPHeader& WithValue(const Aws::String& value) { SetValue(value); return *this;}
76 inline HTTPHeader& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
77 inline HTTPHeader& WithValue(const char* value) { SetValue(value); return *this;}
79 private:
80
81 Aws::String m_name;
82 bool m_nameHasBeenSet = false;
83
84 Aws::String m_value;
85 bool m_valueHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace WAF
90} // namespace Aws
HTTPHeader & WithName(const Aws::String &value)
Definition HTTPHeader.h:61
const Aws::String & GetValue() const
Definition HTTPHeader.h:70
AWS_WAF_API HTTPHeader & operator=(Aws::Utils::Json::JsonView jsonValue)
HTTPHeader & WithValue(const Aws::String &value)
Definition HTTPHeader.h:75
void SetValue(const char *value)
Definition HTTPHeader.h:74
void SetName(Aws::String &&value)
Definition HTTPHeader.h:59
HTTPHeader & WithValue(const char *value)
Definition HTTPHeader.h:77
void SetName(const char *value)
Definition HTTPHeader.h:60
HTTPHeader & WithValue(Aws::String &&value)
Definition HTTPHeader.h:76
HTTPHeader & WithName(const char *value)
Definition HTTPHeader.h:63
const Aws::String & GetName() const
Definition HTTPHeader.h:56
void SetValue(Aws::String &&value)
Definition HTTPHeader.h:73
AWS_WAF_API HTTPHeader(Aws::Utils::Json::JsonView jsonValue)
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const Aws::String &value)
Definition HTTPHeader.h:58
void SetValue(const Aws::String &value)
Definition HTTPHeader.h:72
HTTPHeader & WithName(Aws::String &&value)
Definition HTTPHeader.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue