AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
IPSetDescriptor.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/waf/WAF_EXPORTS.h>
9#include <aws/waf/model/IPSetDescriptorType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAF {
21namespace Model {
22
38 public:
39 AWS_WAF_API IPSetDescriptor() = default;
43
45
48 inline IPSetDescriptorType GetType() const { return m_type; }
49 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 inline void SetType(IPSetDescriptorType value) {
51 m_typeHasBeenSet = true;
52 m_type = value;
53 }
55 SetType(value);
56 return *this;
57 }
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) {
84 m_valueHasBeenSet = true;
85 m_value = std::forward<ValueT>(value);
86 }
87 template <typename ValueT = Aws::String>
88 IPSetDescriptor& WithValue(ValueT&& value) {
89 SetValue(std::forward<ValueT>(value));
90 return *this;
91 }
93 private:
95
96 Aws::String m_value;
97 bool m_typeHasBeenSet = false;
98 bool m_valueHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace WAF
103} // namespace Aws
void SetType(IPSetDescriptorType value)
AWS_WAF_API IPSetDescriptor()=default
IPSetDescriptor & WithValue(ValueT &&value)
const Aws::String & GetValue() const
IPSetDescriptorType GetType() const
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
IPSetDescriptor & WithType(IPSetDescriptorType value)
AWS_WAF_API IPSetDescriptor & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAF_API IPSetDescriptor(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue