AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
Detection.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/Anomaly.h>
9#include <aws/guardduty/model/Sequence.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
29class Detection {
30 public:
31 AWS_GUARDDUTY_API Detection() = default;
32 AWS_GUARDDUTY_API Detection(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Detection& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Anomaly& GetAnomaly() const { return m_anomaly; }
42 inline bool AnomalyHasBeenSet() const { return m_anomalyHasBeenSet; }
43 template <typename AnomalyT = Anomaly>
44 void SetAnomaly(AnomalyT&& value) {
45 m_anomalyHasBeenSet = true;
46 m_anomaly = std::forward<AnomalyT>(value);
47 }
48 template <typename AnomalyT = Anomaly>
49 Detection& WithAnomaly(AnomalyT&& value) {
50 SetAnomaly(std::forward<AnomalyT>(value));
51 return *this;
52 }
54
56
59 inline const Sequence& GetSequence() const { return m_sequence; }
60 inline bool SequenceHasBeenSet() const { return m_sequenceHasBeenSet; }
61 template <typename SequenceT = Sequence>
62 void SetSequence(SequenceT&& value) {
63 m_sequenceHasBeenSet = true;
64 m_sequence = std::forward<SequenceT>(value);
65 }
66 template <typename SequenceT = Sequence>
67 Detection& WithSequence(SequenceT&& value) {
68 SetSequence(std::forward<SequenceT>(value));
69 return *this;
70 }
72 private:
73 Anomaly m_anomaly;
74
75 Sequence m_sequence;
76 bool m_anomalyHasBeenSet = false;
77 bool m_sequenceHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace GuardDuty
82} // namespace Aws
Detection & WithAnomaly(AnomalyT &&value)
Definition Detection.h:49
AWS_GUARDDUTY_API Detection()=default
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSequence(SequenceT &&value)
Definition Detection.h:62
const Sequence & GetSequence() const
Definition Detection.h:59
void SetAnomaly(AnomalyT &&value)
Definition Detection.h:44
Detection & WithSequence(SequenceT &&value)
Definition Detection.h:67
AWS_GUARDDUTY_API Detection & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Detection(Aws::Utils::Json::JsonView jsonValue)
const Anomaly & GetAnomaly() const
Definition Detection.h:41
Aws::Utils::Json::JsonValue JsonValue