AWS SDK for C++

AWS SDK for C++ Version 1.11.912

Loading...
Searching...
No Matches
DetectionRuleRuntimePlatforms.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/DetectionRuleEc2Requirements.h>
9#include <aws/guardduty/model/DetectionRuleEcsFargateRequirements.h>
10#include <aws/guardduty/model/DetectionRuleEksRequirements.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
34 public:
35 AWS_GUARDDUTY_API DetectionRuleRuntimePlatforms() = default;
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const DetectionRuleEksRequirements& GetEks() const { return m_eks; }
45 inline bool EksHasBeenSet() const { return m_eksHasBeenSet; }
46 template <typename EksT = DetectionRuleEksRequirements>
47 void SetEks(EksT&& value) {
48 m_eksHasBeenSet = true;
49 m_eks = std::forward<EksT>(value);
50 }
51 template <typename EksT = DetectionRuleEksRequirements>
53 SetEks(std::forward<EksT>(value));
54 return *this;
55 }
57
59
62 inline const DetectionRuleEc2Requirements& GetEc2() const { return m_ec2; }
63 inline bool Ec2HasBeenSet() const { return m_ec2HasBeenSet; }
64 template <typename Ec2T = DetectionRuleEc2Requirements>
65 void SetEc2(Ec2T&& value) {
66 m_ec2HasBeenSet = true;
67 m_ec2 = std::forward<Ec2T>(value);
68 }
69 template <typename Ec2T = DetectionRuleEc2Requirements>
71 SetEc2(std::forward<Ec2T>(value));
72 return *this;
73 }
75
77
81 inline const DetectionRuleEcsFargateRequirements& GetEcsFargate() const { return m_ecsFargate; }
82 inline bool EcsFargateHasBeenSet() const { return m_ecsFargateHasBeenSet; }
83 template <typename EcsFargateT = DetectionRuleEcsFargateRequirements>
84 void SetEcsFargate(EcsFargateT&& value) {
85 m_ecsFargateHasBeenSet = true;
86 m_ecsFargate = std::forward<EcsFargateT>(value);
87 }
88 template <typename EcsFargateT = DetectionRuleEcsFargateRequirements>
90 SetEcsFargate(std::forward<EcsFargateT>(value));
91 return *this;
92 }
94 private:
96
98
100 bool m_eksHasBeenSet = false;
101 bool m_ec2HasBeenSet = false;
102 bool m_ecsFargateHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace GuardDuty
107} // namespace Aws
DetectionRuleRuntimePlatforms & WithEks(EksT &&value)
AWS_GUARDDUTY_API DetectionRuleRuntimePlatforms(Aws::Utils::Json::JsonView jsonValue)
DetectionRuleRuntimePlatforms & WithEc2(Ec2T &&value)
AWS_GUARDDUTY_API DetectionRuleRuntimePlatforms()=default
AWS_GUARDDUTY_API DetectionRuleRuntimePlatforms & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const DetectionRuleEcsFargateRequirements & GetEcsFargate() const
DetectionRuleRuntimePlatforms & WithEcsFargate(EcsFargateT &&value)
Aws::Utils::Json::JsonValue JsonValue