AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const IPSetDescriptorType& GetType() const{ return m_type; }
55 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
56 inline void SetType(const IPSetDescriptorType& value) { m_typeHasBeenSet = true; m_type = value; }
57 inline void SetType(IPSetDescriptorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
58 inline IPSetDescriptor& WithType(const IPSetDescriptorType& value) { SetType(value); return *this;}
59 inline IPSetDescriptor& WithType(IPSetDescriptorType&& value) { SetType(std::move(value)); return *this;}
61
63
82 inline const Aws::String& GetValue() const{ return m_value; }
83 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
84 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
85 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
86 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
87 inline IPSetDescriptor& WithValue(const Aws::String& value) { SetValue(value); return *this;}
88 inline IPSetDescriptor& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
89 inline IPSetDescriptor& WithValue(const char* value) { SetValue(value); return *this;}
91 private:
92
94 bool m_typeHasBeenSet = false;
95
96 Aws::String m_value;
97 bool m_valueHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace WAFRegional
102} // namespace Aws
void SetValue(const Aws::String &value)
IPSetDescriptor & WithType(const IPSetDescriptorType &value)
AWS_WAFREGIONAL_API IPSetDescriptor & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(IPSetDescriptorType &&value)
const IPSetDescriptorType & GetType() const
const Aws::String & GetValue() const
void SetType(const IPSetDescriptorType &value)
AWS_WAFREGIONAL_API IPSetDescriptor(Aws::Utils::Json::JsonView jsonValue)
IPSetDescriptor & WithValue(const Aws::String &value)
IPSetDescriptor & WithType(IPSetDescriptorType &&value)
IPSetDescriptor & WithValue(const char *value)
IPSetDescriptor & WithValue(Aws::String &&value)
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue