AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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 SecurityHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SECURITYHUB_API RuleGroupVariables() = default;
37 AWS_SECURITYHUB_API RuleGroupVariables(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const RuleGroupVariablesIpSetsDetails& GetIpSets() const { return m_ipSets; }
47 inline bool IpSetsHasBeenSet() const { return m_ipSetsHasBeenSet; }
48 template<typename IpSetsT = RuleGroupVariablesIpSetsDetails>
49 void SetIpSets(IpSetsT&& value) { m_ipSetsHasBeenSet = true; m_ipSets = std::forward<IpSetsT>(value); }
50 template<typename IpSetsT = RuleGroupVariablesIpSetsDetails>
51 RuleGroupVariables& WithIpSets(IpSetsT&& value) { SetIpSets(std::forward<IpSetsT>(value)); return *this;}
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) { m_portSetsHasBeenSet = true; m_portSets = std::forward<PortSetsT>(value); }
62 template<typename PortSetsT = RuleGroupVariablesPortSetsDetails>
63 RuleGroupVariables& WithPortSets(PortSetsT&& value) { SetPortSets(std::forward<PortSetsT>(value)); return *this;}
65 private:
66
68 bool m_ipSetsHasBeenSet = false;
69
71 bool m_portSetsHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace SecurityHub
76} // 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