AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
IPSetDescriptor.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/waf-regional/model/IPSetDescriptorType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAFRegional
23{
24namespace Model
25{
26
42 {
43 public:
44 AWS_WAFREGIONAL_API IPSetDescriptor() = default;
45 AWS_WAFREGIONAL_API IPSetDescriptor(Aws::Utils::Json::JsonView jsonValue);
46 AWS_WAFREGIONAL_API IPSetDescriptor& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline IPSetDescriptorType GetType() const { return m_type; }
55 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
56 inline void SetType(IPSetDescriptorType value) { m_typeHasBeenSet = true; m_type = value; }
57 inline IPSetDescriptor& WithType(IPSetDescriptorType value) { SetType(value); return *this;}
59
61
80 inline const Aws::String& GetValue() const { return m_value; }
81 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
82 template<typename ValueT = Aws::String>
83 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
84 template<typename ValueT = Aws::String>
85 IPSetDescriptor& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
87 private:
88
90 bool m_typeHasBeenSet = false;
91
92 Aws::String m_value;
93 bool m_valueHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace WAFRegional
98} // namespace Aws
AWS_WAFREGIONAL_API IPSetDescriptor & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetValue() const
IPSetDescriptor & WithType(IPSetDescriptorType value)
AWS_WAFREGIONAL_API IPSetDescriptor(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFREGIONAL_API IPSetDescriptor()=default
void SetType(IPSetDescriptorType value)
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
IPSetDescriptor & WithValue(ValueT &&value)
IPSetDescriptorType GetType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue