AWS SDK for C++  1.9.108
AWS SDK for C++
SingleHeader.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 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
58  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 
63  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 
68  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 
73  inline SingleHeader& WithName(const Aws::String& value) { SetName(value); return *this;}
74 
78  inline SingleHeader& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 
83  inline SingleHeader& WithName(const char* value) { SetName(value); return *this;}
84 
85  private:
86 
87  Aws::String m_name;
88  bool m_nameHasBeenSet;
89  };
90 
91 } // namespace Model
92 } // namespace WAFV2
93 } // namespace Aws
Aws::WAFV2::Model::SingleHeader::SetName
void SetName(Aws::String &&value)
Definition: SingleHeader.h:63
Aws::WAFV2::Model::SingleHeader::SingleHeader
SingleHeader()
Aws::WAFV2::Model::SingleHeader::WithName
SingleHeader & WithName(Aws::String &&value)
Definition: SingleHeader.h:78
Aws::WAFV2::Model::SingleHeader::SetName
void SetName(const char *value)
Definition: SingleHeader.h:68
Aws::WAFV2::Model::SingleHeader::GetName
const Aws::String & GetName() const
Definition: SingleHeader.h:48
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
WAFV2_EXPORTS.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::SingleHeader::WithName
SingleHeader & WithName(const Aws::String &value)
Definition: SingleHeader.h:73
Aws::WAFV2::Model::SingleHeader::SetName
void SetName(const Aws::String &value)
Definition: SingleHeader.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::SingleHeader::WithName
SingleHeader & WithName(const char *value)
Definition: SingleHeader.h:83
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::SingleHeader
Definition: SingleHeader.h:37
Aws::WAFV2::Model::SingleHeader::SingleHeader
SingleHeader(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::SingleHeader::operator=
SingleHeader & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::SingleHeader::NameHasBeenSet
bool NameHasBeenSet() const
Definition: SingleHeader.h:53
Aws::WAFV2::Model::SingleHeader::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const