AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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#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 GuardDuty
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GUARDDUTY_API Detection() = default;
37 AWS_GUARDDUTY_API Detection(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API Detection& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Anomaly& GetAnomaly() const { return m_anomaly; }
48 inline bool AnomalyHasBeenSet() const { return m_anomalyHasBeenSet; }
49 template<typename AnomalyT = Anomaly>
50 void SetAnomaly(AnomalyT&& value) { m_anomalyHasBeenSet = true; m_anomaly = std::forward<AnomalyT>(value); }
51 template<typename AnomalyT = Anomaly>
52 Detection& WithAnomaly(AnomalyT&& value) { SetAnomaly(std::forward<AnomalyT>(value)); return *this;}
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) { m_sequenceHasBeenSet = true; m_sequence = std::forward<SequenceT>(value); }
63 template<typename SequenceT = Sequence>
64 Detection& WithSequence(SequenceT&& value) { SetSequence(std::forward<SequenceT>(value)); return *this;}
66 private:
67
68 Anomaly m_anomaly;
69 bool m_anomalyHasBeenSet = false;
70
71 Sequence m_sequence;
72 bool m_sequenceHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace GuardDuty
77} // namespace Aws
Detection & WithAnomaly(AnomalyT &&value)
Definition Detection.h:52
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:50
Detection & WithSequence(SequenceT &&value)
Definition Detection.h:64
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:47
Aws::Utils::Json::JsonValue JsonValue