AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IPSet.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.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 NetworkFirewall
23{
24namespace Model
25{
26
33 class IPSet
34 {
35 public:
36 AWS_NETWORKFIREWALL_API IPSet();
37 AWS_NETWORKFIREWALL_API IPSet(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKFIREWALL_API IPSet& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetDefinition() const{ return m_definition; }
47 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
48 inline void SetDefinition(const Aws::Vector<Aws::String>& value) { m_definitionHasBeenSet = true; m_definition = value; }
49 inline void SetDefinition(Aws::Vector<Aws::String>&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
50 inline IPSet& WithDefinition(const Aws::Vector<Aws::String>& value) { SetDefinition(value); return *this;}
51 inline IPSet& WithDefinition(Aws::Vector<Aws::String>&& value) { SetDefinition(std::move(value)); return *this;}
52 inline IPSet& AddDefinition(const Aws::String& value) { m_definitionHasBeenSet = true; m_definition.push_back(value); return *this; }
53 inline IPSet& AddDefinition(Aws::String&& value) { m_definitionHasBeenSet = true; m_definition.push_back(std::move(value)); return *this; }
54 inline IPSet& AddDefinition(const char* value) { m_definitionHasBeenSet = true; m_definition.push_back(value); return *this; }
56 private:
57
58 Aws::Vector<Aws::String> m_definition;
59 bool m_definitionHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace NetworkFirewall
64} // namespace Aws
AWS_NETWORKFIREWALL_API IPSet(Aws::Utils::Json::JsonView jsonValue)
IPSet & WithDefinition(const Aws::Vector< Aws::String > &value)
Definition IPSet.h:50
IPSet & AddDefinition(const char *value)
Definition IPSet.h:54
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
IPSet & AddDefinition(Aws::String &&value)
Definition IPSet.h:53
void SetDefinition(Aws::Vector< Aws::String > &&value)
Definition IPSet.h:49
void SetDefinition(const Aws::Vector< Aws::String > &value)
Definition IPSet.h:48
IPSet & AddDefinition(const Aws::String &value)
Definition IPSet.h:52
const Aws::Vector< Aws::String > & GetDefinition() const
Definition IPSet.h:46
AWS_NETWORKFIREWALL_API IPSet & operator=(Aws::Utils::Json::JsonView jsonValue)
IPSet & WithDefinition(Aws::Vector< Aws::String > &&value)
Definition IPSet.h:51
bool DefinitionHasBeenSet() const
Definition IPSet.h:47
AWS_NETWORKFIREWALL_API IPSet()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue