AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PortSet.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 PortSet
34 {
35 public:
36 AWS_NETWORKFIREWALL_API PortSet();
37 AWS_NETWORKFIREWALL_API PortSet(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKFIREWALL_API PortSet& 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 PortSet& WithDefinition(const Aws::Vector<Aws::String>& value) { SetDefinition(value); return *this;}
51 inline PortSet& WithDefinition(Aws::Vector<Aws::String>&& value) { SetDefinition(std::move(value)); return *this;}
52 inline PortSet& AddDefinition(const Aws::String& value) { m_definitionHasBeenSet = true; m_definition.push_back(value); return *this; }
53 inline PortSet& AddDefinition(Aws::String&& value) { m_definitionHasBeenSet = true; m_definition.push_back(std::move(value)); return *this; }
54 inline PortSet& 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
PortSet & WithDefinition(Aws::Vector< Aws::String > &&value)
Definition PortSet.h:51
void SetDefinition(Aws::Vector< Aws::String > &&value)
Definition PortSet.h:49
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
PortSet & AddDefinition(const Aws::String &value)
Definition PortSet.h:52
PortSet & AddDefinition(Aws::String &&value)
Definition PortSet.h:53
AWS_NETWORKFIREWALL_API PortSet()
PortSet & AddDefinition(const char *value)
Definition PortSet.h:54
AWS_NETWORKFIREWALL_API PortSet & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDefinition(const Aws::Vector< Aws::String > &value)
Definition PortSet.h:48
PortSet & WithDefinition(const Aws::Vector< Aws::String > &value)
Definition PortSet.h:50
const Aws::Vector< Aws::String > & GetDefinition() const
Definition PortSet.h:46
AWS_NETWORKFIREWALL_API PortSet(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue