AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
NetworkTrafficRule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityagent/SecurityAgent_EXPORTS.h>
9#include <aws/securityagent/model/NetworkTrafficRuleEffect.h>
10#include <aws/securityagent/model/NetworkTrafficRuleType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityAgent {
22namespace Model {
23
31 public:
32 AWS_SECURITYAGENT_API NetworkTrafficRule() = default;
33 AWS_SECURITYAGENT_API NetworkTrafficRule(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYAGENT_API NetworkTrafficRule& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline NetworkTrafficRuleEffect GetEffect() const { return m_effect; }
42 inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
44 m_effectHasBeenSet = true;
45 m_effect = value;
46 }
48 SetEffect(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPattern() const { return m_pattern; }
58 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
59 template <typename PatternT = Aws::String>
60 void SetPattern(PatternT&& value) {
61 m_patternHasBeenSet = true;
62 m_pattern = std::forward<PatternT>(value);
63 }
64 template <typename PatternT = Aws::String>
65 NetworkTrafficRule& WithPattern(PatternT&& value) {
66 SetPattern(std::forward<PatternT>(value));
67 return *this;
68 }
70
72
75 inline NetworkTrafficRuleType GetNetworkTrafficRuleType() const { return m_networkTrafficRuleType; }
76 inline bool NetworkTrafficRuleTypeHasBeenSet() const { return m_networkTrafficRuleTypeHasBeenSet; }
78 m_networkTrafficRuleTypeHasBeenSet = true;
79 m_networkTrafficRuleType = value;
80 }
83 return *this;
84 }
86 private:
88
89 Aws::String m_pattern;
90
92 bool m_effectHasBeenSet = false;
93 bool m_patternHasBeenSet = false;
94 bool m_networkTrafficRuleTypeHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace SecurityAgent
99} // namespace Aws
NetworkTrafficRule & WithNetworkTrafficRuleType(NetworkTrafficRuleType value)
NetworkTrafficRuleEffect GetEffect() const
AWS_SECURITYAGENT_API NetworkTrafficRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNetworkTrafficRuleType(NetworkTrafficRuleType value)
AWS_SECURITYAGENT_API NetworkTrafficRule()=default
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEffect(NetworkTrafficRuleEffect value)
NetworkTrafficRule & WithEffect(NetworkTrafficRuleEffect value)
NetworkTrafficRule & WithPattern(PatternT &&value)
NetworkTrafficRuleType GetNetworkTrafficRuleType() const
AWS_SECURITYAGENT_API NetworkTrafficRule(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue