AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RulesSourceList.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/network-firewall/model/GeneratedRulesType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/network-firewall/model/TargetType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace NetworkFirewall
25{
26namespace Model
27{
28
45 {
46 public:
47 AWS_NETWORKFIREWALL_API RulesSourceList();
48 AWS_NETWORKFIREWALL_API RulesSourceList(Aws::Utils::Json::JsonView jsonValue);
49 AWS_NETWORKFIREWALL_API RulesSourceList& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
64 inline const Aws::Vector<Aws::String>& GetTargets() const{ return m_targets; }
65 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
66 inline void SetTargets(const Aws::Vector<Aws::String>& value) { m_targetsHasBeenSet = true; m_targets = value; }
67 inline void SetTargets(Aws::Vector<Aws::String>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
68 inline RulesSourceList& WithTargets(const Aws::Vector<Aws::String>& value) { SetTargets(value); return *this;}
69 inline RulesSourceList& WithTargets(Aws::Vector<Aws::String>&& value) { SetTargets(std::move(value)); return *this;}
70 inline RulesSourceList& AddTargets(const Aws::String& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
71 inline RulesSourceList& AddTargets(Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
72 inline RulesSourceList& AddTargets(const char* value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
74
76
81 inline const Aws::Vector<TargetType>& GetTargetTypes() const{ return m_targetTypes; }
82 inline bool TargetTypesHasBeenSet() const { return m_targetTypesHasBeenSet; }
83 inline void SetTargetTypes(const Aws::Vector<TargetType>& value) { m_targetTypesHasBeenSet = true; m_targetTypes = value; }
84 inline void SetTargetTypes(Aws::Vector<TargetType>&& value) { m_targetTypesHasBeenSet = true; m_targetTypes = std::move(value); }
85 inline RulesSourceList& WithTargetTypes(const Aws::Vector<TargetType>& value) { SetTargetTypes(value); return *this;}
86 inline RulesSourceList& WithTargetTypes(Aws::Vector<TargetType>&& value) { SetTargetTypes(std::move(value)); return *this;}
87 inline RulesSourceList& AddTargetTypes(const TargetType& value) { m_targetTypesHasBeenSet = true; m_targetTypes.push_back(value); return *this; }
88 inline RulesSourceList& AddTargetTypes(TargetType&& value) { m_targetTypesHasBeenSet = true; m_targetTypes.push_back(std::move(value)); return *this; }
90
92
96 inline const GeneratedRulesType& GetGeneratedRulesType() const{ return m_generatedRulesType; }
97 inline bool GeneratedRulesTypeHasBeenSet() const { return m_generatedRulesTypeHasBeenSet; }
98 inline void SetGeneratedRulesType(const GeneratedRulesType& value) { m_generatedRulesTypeHasBeenSet = true; m_generatedRulesType = value; }
99 inline void SetGeneratedRulesType(GeneratedRulesType&& value) { m_generatedRulesTypeHasBeenSet = true; m_generatedRulesType = std::move(value); }
101 inline RulesSourceList& WithGeneratedRulesType(GeneratedRulesType&& value) { SetGeneratedRulesType(std::move(value)); return *this;}
103 private:
104
105 Aws::Vector<Aws::String> m_targets;
106 bool m_targetsHasBeenSet = false;
107
108 Aws::Vector<TargetType> m_targetTypes;
109 bool m_targetTypesHasBeenSet = false;
110
111 GeneratedRulesType m_generatedRulesType;
112 bool m_generatedRulesTypeHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace NetworkFirewall
117} // namespace Aws
AWS_NETWORKFIREWALL_API RulesSourceList()
void SetTargetTypes(Aws::Vector< TargetType > &&value)
RulesSourceList & WithTargetTypes(const Aws::Vector< TargetType > &value)
AWS_NETWORKFIREWALL_API RulesSourceList & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetTypes(const Aws::Vector< TargetType > &value)
RulesSourceList & WithTargetTypes(Aws::Vector< TargetType > &&value)
RulesSourceList & AddTargetTypes(TargetType &&value)
const Aws::Vector< Aws::String > & GetTargets() const
void SetTargets(const Aws::Vector< Aws::String > &value)
void SetTargets(Aws::Vector< Aws::String > &&value)
RulesSourceList & AddTargetTypes(const TargetType &value)
RulesSourceList & WithTargets(const Aws::Vector< Aws::String > &value)
void SetGeneratedRulesType(GeneratedRulesType &&value)
RulesSourceList & WithTargets(Aws::Vector< Aws::String > &&value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
RulesSourceList & AddTargets(const char *value)
RulesSourceList & WithGeneratedRulesType(const GeneratedRulesType &value)
AWS_NETWORKFIREWALL_API RulesSourceList(Aws::Utils::Json::JsonView jsonValue)
const GeneratedRulesType & GetGeneratedRulesType() const
void SetGeneratedRulesType(const GeneratedRulesType &value)
RulesSourceList & WithGeneratedRulesType(GeneratedRulesType &&value)
const Aws::Vector< TargetType > & GetTargetTypes() const
RulesSourceList & AddTargets(Aws::String &&value)
RulesSourceList & AddTargets(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue