AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RuleGroupVariables.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/RuleGroupVariablesIpSetsDetails.h>
9#include <aws/securityhub/model/RuleGroupVariablesPortSetsDetails.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
30 public:
31 AWS_SECURITYHUB_API RuleGroupVariables() = default;
32 AWS_SECURITYHUB_API RuleGroupVariables(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const RuleGroupVariablesIpSetsDetails& GetIpSets() const { return m_ipSets; }
41 inline bool IpSetsHasBeenSet() const { return m_ipSetsHasBeenSet; }
42 template <typename IpSetsT = RuleGroupVariablesIpSetsDetails>
43 void SetIpSets(IpSetsT&& value) {
44 m_ipSetsHasBeenSet = true;
45 m_ipSets = std::forward<IpSetsT>(value);
46 }
47 template <typename IpSetsT = RuleGroupVariablesIpSetsDetails>
48 RuleGroupVariables& WithIpSets(IpSetsT&& value) {
49 SetIpSets(std::forward<IpSetsT>(value));
50 return *this;
51 }
53
55
58 inline const RuleGroupVariablesPortSetsDetails& GetPortSets() const { return m_portSets; }
59 inline bool PortSetsHasBeenSet() const { return m_portSetsHasBeenSet; }
60 template <typename PortSetsT = RuleGroupVariablesPortSetsDetails>
61 void SetPortSets(PortSetsT&& value) {
62 m_portSetsHasBeenSet = true;
63 m_portSets = std::forward<PortSetsT>(value);
64 }
65 template <typename PortSetsT = RuleGroupVariablesPortSetsDetails>
66 RuleGroupVariables& WithPortSets(PortSetsT&& value) {
67 SetPortSets(std::forward<PortSetsT>(value));
68 return *this;
69 }
71 private:
73
75 bool m_ipSetsHasBeenSet = false;
76 bool m_portSetsHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace SecurityHub
81} // namespace Aws
AWS_SECURITYHUB_API RuleGroupVariables(Aws::Utils::Json::JsonView jsonValue)
const RuleGroupVariablesIpSetsDetails & GetIpSets() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const RuleGroupVariablesPortSetsDetails & GetPortSets() const
RuleGroupVariables & WithPortSets(PortSetsT &&value)
AWS_SECURITYHUB_API RuleGroupVariables()=default
RuleGroupVariables & WithIpSets(IpSetsT &&value)
AWS_SECURITYHUB_API RuleGroupVariables & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue