AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
KubernetesAnomaly.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
29 public:
30 AWS_GUARDDUTY_API KubernetesAnomaly() = default;
31 AWS_GUARDDUTY_API KubernetesAnomaly(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetUnusualBehavior() const { return m_unusualBehavior; }
40 inline bool UnusualBehaviorHasBeenSet() const { return m_unusualBehaviorHasBeenSet; }
41 template <typename UnusualBehaviorT = Aws::String>
42 void SetUnusualBehavior(UnusualBehaviorT&& value) {
43 m_unusualBehaviorHasBeenSet = true;
44 m_unusualBehavior = std::forward<UnusualBehaviorT>(value);
45 }
46 template <typename UnusualBehaviorT = Aws::String>
47 KubernetesAnomaly& WithUnusualBehavior(UnusualBehaviorT&& value) {
48 SetUnusualBehavior(std::forward<UnusualBehaviorT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetBaselineContext() const { return m_baselineContext; }
59 inline bool BaselineContextHasBeenSet() const { return m_baselineContextHasBeenSet; }
60 template <typename BaselineContextT = Aws::String>
61 void SetBaselineContext(BaselineContextT&& value) {
62 m_baselineContextHasBeenSet = true;
63 m_baselineContext = std::forward<BaselineContextT>(value);
64 }
65 template <typename BaselineContextT = Aws::String>
66 KubernetesAnomaly& WithBaselineContext(BaselineContextT&& value) {
67 SetBaselineContext(std::forward<BaselineContextT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetAnomalyScore() const { return m_anomalyScore; }
77 inline bool AnomalyScoreHasBeenSet() const { return m_anomalyScoreHasBeenSet; }
78 template <typename AnomalyScoreT = Aws::String>
79 void SetAnomalyScore(AnomalyScoreT&& value) {
80 m_anomalyScoreHasBeenSet = true;
81 m_anomalyScore = std::forward<AnomalyScoreT>(value);
82 }
83 template <typename AnomalyScoreT = Aws::String>
84 KubernetesAnomaly& WithAnomalyScore(AnomalyScoreT&& value) {
85 SetAnomalyScore(std::forward<AnomalyScoreT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetTrainingPeriod() const { return m_trainingPeriod; }
95 inline bool TrainingPeriodHasBeenSet() const { return m_trainingPeriodHasBeenSet; }
96 template <typename TrainingPeriodT = Aws::String>
97 void SetTrainingPeriod(TrainingPeriodT&& value) {
98 m_trainingPeriodHasBeenSet = true;
99 m_trainingPeriod = std::forward<TrainingPeriodT>(value);
100 }
101 template <typename TrainingPeriodT = Aws::String>
102 KubernetesAnomaly& WithTrainingPeriod(TrainingPeriodT&& value) {
103 SetTrainingPeriod(std::forward<TrainingPeriodT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_unusualBehavior;
109
110 Aws::String m_baselineContext;
111
112 Aws::String m_anomalyScore;
113
114 Aws::String m_trainingPeriod;
115 bool m_unusualBehaviorHasBeenSet = false;
116 bool m_baselineContextHasBeenSet = false;
117 bool m_anomalyScoreHasBeenSet = false;
118 bool m_trainingPeriodHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace GuardDuty
123} // namespace Aws
void SetBaselineContext(BaselineContextT &&value)
void SetTrainingPeriod(TrainingPeriodT &&value)
void SetAnomalyScore(AnomalyScoreT &&value)
KubernetesAnomaly & WithBaselineContext(BaselineContextT &&value)
AWS_GUARDDUTY_API KubernetesAnomaly & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUnusualBehavior() const
KubernetesAnomaly & WithUnusualBehavior(UnusualBehaviorT &&value)
const Aws::String & GetAnomalyScore() const
const Aws::String & GetBaselineContext() const
KubernetesAnomaly & WithAnomalyScore(AnomalyScoreT &&value)
AWS_GUARDDUTY_API KubernetesAnomaly(Aws::Utils::Json::JsonView jsonValue)
void SetUnusualBehavior(UnusualBehaviorT &&value)
AWS_GUARDDUTY_API KubernetesAnomaly()=default
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
KubernetesAnomaly & WithTrainingPeriod(TrainingPeriodT &&value)
const Aws::String & GetTrainingPeriod() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue