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/WAF_EXPORTS.h>
8#include <aws/waf/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 WAF
23{
24namespace Model
25{
26
42 {
43 public:
44 AWS_WAF_API IPSetDescriptor();
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 WAF
102} // namespace Aws
IPSetDescriptor & WithValue(Aws::String &&value)
void SetValue(const Aws::String &value)
void SetType(IPSetDescriptorType &&value)
void SetType(const IPSetDescriptorType &value)
const Aws::String & GetValue() const
IPSetDescriptor & WithType(const IPSetDescriptorType &value)
IPSetDescriptor & WithType(IPSetDescriptorType &&value)
IPSetDescriptor & WithValue(const Aws::String &value)
void SetValue(const char *value)
const IPSetDescriptorType & GetType() const
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
void SetValue(Aws::String &&value)
AWS_WAF_API IPSetDescriptor & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAF_API IPSetDescriptor(Aws::Utils::Json::JsonView jsonValue)
IPSetDescriptor & WithValue(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue