AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AnomalyObject.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/ProfileType.h>
9#include <aws/guardduty/model/ProfileSubtype.h>
10#include <aws/guardduty/model/Observations.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GUARDDUTY_API AnomalyObject() = default;
38 AWS_GUARDDUTY_API AnomalyObject(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API AnomalyObject& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline ProfileType GetProfileType() const { return m_profileType; }
48 inline bool ProfileTypeHasBeenSet() const { return m_profileTypeHasBeenSet; }
49 inline void SetProfileType(ProfileType value) { m_profileTypeHasBeenSet = true; m_profileType = value; }
50 inline AnomalyObject& WithProfileType(ProfileType value) { SetProfileType(value); return *this;}
52
54
57 inline ProfileSubtype GetProfileSubtype() const { return m_profileSubtype; }
58 inline bool ProfileSubtypeHasBeenSet() const { return m_profileSubtypeHasBeenSet; }
59 inline void SetProfileSubtype(ProfileSubtype value) { m_profileSubtypeHasBeenSet = true; m_profileSubtype = value; }
60 inline AnomalyObject& WithProfileSubtype(ProfileSubtype value) { SetProfileSubtype(value); return *this;}
62
64
67 inline const Observations& GetObservations() const { return m_observations; }
68 inline bool ObservationsHasBeenSet() const { return m_observationsHasBeenSet; }
69 template<typename ObservationsT = Observations>
70 void SetObservations(ObservationsT&& value) { m_observationsHasBeenSet = true; m_observations = std::forward<ObservationsT>(value); }
71 template<typename ObservationsT = Observations>
72 AnomalyObject& WithObservations(ObservationsT&& value) { SetObservations(std::forward<ObservationsT>(value)); return *this;}
74 private:
75
76 ProfileType m_profileType{ProfileType::NOT_SET};
77 bool m_profileTypeHasBeenSet = false;
78
80 bool m_profileSubtypeHasBeenSet = false;
81
82 Observations m_observations;
83 bool m_observationsHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace GuardDuty
88} // 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