AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
Label.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wafv2/WAFV2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace WAFV2 {
20namespace Model {
21
30class Label {
31 public:
32 AWS_WAFV2_API Label() = default;
33 AWS_WAFV2_API Label(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WAFV2_API Label& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 Label& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54 private:
55 Aws::String m_name;
56 bool m_nameHasBeenSet = false;
57};
58
59} // namespace Model
60} // namespace WAFV2
61} // namespace Aws
bool NameHasBeenSet() const
Definition Label.h:42
const Aws::String & GetName() const
Definition Label.h:41
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(NameT &&value)
Definition Label.h:44
AWS_WAFV2_API Label & operator=(Aws::Utils::Json::JsonView jsonValue)
Label & WithName(NameT &&value)
Definition Label.h:49
AWS_WAFV2_API Label(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Label()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue