AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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
30 public:
31 AWS_SECURITYAGENT_API NetworkTrafficRule() = default;
32 AWS_SECURITYAGENT_API NetworkTrafficRule(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYAGENT_API NetworkTrafficRule& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline NetworkTrafficRuleEffect GetEffect() const { return m_effect; }
41 inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
43 m_effectHasBeenSet = true;
44 m_effect = value;
45 }
47 SetEffect(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetPattern() const { return m_pattern; }
57 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
58 template <typename PatternT = Aws::String>
59 void SetPattern(PatternT&& value) {
60 m_patternHasBeenSet = true;
61 m_pattern = std::forward<PatternT>(value);
62 }
63 template <typename PatternT = Aws::String>
64 NetworkTrafficRule& WithPattern(PatternT&& value) {
65 SetPattern(std::forward<PatternT>(value));
66 return *this;
67 }
69
71
74 inline NetworkTrafficRuleType GetNetworkTrafficRuleType() const { return m_networkTrafficRuleType; }
75 inline bool NetworkTrafficRuleTypeHasBeenSet() const { return m_networkTrafficRuleTypeHasBeenSet; }
77 m_networkTrafficRuleTypeHasBeenSet = true;
78 m_networkTrafficRuleType = value;
79 }
82 return *this;
83 }
85 private:
87
88 Aws::String m_pattern;
89
91 bool m_effectHasBeenSet = false;
92 bool m_patternHasBeenSet = false;
93 bool m_networkTrafficRuleTypeHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace SecurityAgent
98} // 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