AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
ApplicationAttribute.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAFV2 {
21namespace Model {
22
31 public:
32 AWS_WAFV2_API ApplicationAttribute() = default;
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>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
60 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
61 template <typename ValuesT = Aws::Vector<Aws::String>>
62 void SetValues(ValuesT&& value) {
63 m_valuesHasBeenSet = true;
64 m_values = std::forward<ValuesT>(value);
65 }
66 template <typename ValuesT = Aws::Vector<Aws::String>>
67 ApplicationAttribute& WithValues(ValuesT&& value) {
68 SetValues(std::forward<ValuesT>(value));
69 return *this;
70 }
71 template <typename ValuesT = Aws::String>
72 ApplicationAttribute& AddValues(ValuesT&& value) {
73 m_valuesHasBeenSet = true;
74 m_values.emplace_back(std::forward<ValuesT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_name;
80
82 bool m_nameHasBeenSet = false;
83 bool m_valuesHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace WAFV2
88} // namespace Aws
AWS_WAFV2_API ApplicationAttribute(Aws::Utils::Json::JsonView jsonValue)
ApplicationAttribute & WithValues(ValuesT &&value)
ApplicationAttribute & AddValues(ValuesT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API ApplicationAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
ApplicationAttribute & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetValues() const
AWS_WAFV2_API ApplicationAttribute()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue