AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AnomalyObject.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/Observations.h>
9#include <aws/guardduty/model/ProfileSubtype.h>
10#include <aws/guardduty/model/ProfileType.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
31 public:
32 AWS_GUARDDUTY_API AnomalyObject() = default;
33 AWS_GUARDDUTY_API AnomalyObject(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GUARDDUTY_API AnomalyObject& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline ProfileType GetProfileType() const { return m_profileType; }
42 inline bool ProfileTypeHasBeenSet() const { return m_profileTypeHasBeenSet; }
43 inline void SetProfileType(ProfileType value) {
44 m_profileTypeHasBeenSet = true;
45 m_profileType = value;
46 }
48 SetProfileType(value);
49 return *this;
50 }
52
54
57 inline ProfileSubtype GetProfileSubtype() const { return m_profileSubtype; }
58 inline bool ProfileSubtypeHasBeenSet() const { return m_profileSubtypeHasBeenSet; }
59 inline void SetProfileSubtype(ProfileSubtype value) {
60 m_profileSubtypeHasBeenSet = true;
61 m_profileSubtype = value;
62 }
64 SetProfileSubtype(value);
65 return *this;
66 }
68
70
73 inline const Observations& GetObservations() const { return m_observations; }
74 inline bool ObservationsHasBeenSet() const { return m_observationsHasBeenSet; }
75 template <typename ObservationsT = Observations>
76 void SetObservations(ObservationsT&& value) {
77 m_observationsHasBeenSet = true;
78 m_observations = std::forward<ObservationsT>(value);
79 }
80 template <typename ObservationsT = Observations>
81 AnomalyObject& WithObservations(ObservationsT&& value) {
82 SetObservations(std::forward<ObservationsT>(value));
83 return *this;
84 }
86 private:
87 ProfileType m_profileType{ProfileType::NOT_SET};
88
90
91 Observations m_observations;
92 bool m_profileTypeHasBeenSet = false;
93 bool m_profileSubtypeHasBeenSet = false;
94 bool m_observationsHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace GuardDuty
99} // namespace Aws
AWS_GUARDDUTY_API AnomalyObject(Aws::Utils::Json::JsonView jsonValue)
void SetProfileType(ProfileType value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API AnomalyObject & operator=(Aws::Utils::Json::JsonView jsonValue)
const Observations & GetObservations() const
AnomalyObject & WithProfileSubtype(ProfileSubtype value)
AnomalyObject & WithObservations(ObservationsT &&value)
AWS_GUARDDUTY_API AnomalyObject()=default
void SetProfileSubtype(ProfileSubtype value)
void SetObservations(ObservationsT &&value)
AnomalyObject & WithProfileType(ProfileType value)
ProfileSubtype GetProfileSubtype() const
Aws::Utils::Json::JsonValue JsonValue