AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
Anomaly.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/GuardDuty_EXPORTS.h>
11#include <aws/guardduty/model/AnomalyObject.h>
12#include <aws/guardduty/model/AnomalyUnusual.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty {
24namespace Model {
25
31class Anomaly {
32 public:
33 AWS_GUARDDUTY_API Anomaly() = default;
34 AWS_GUARDDUTY_API Anomaly(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Anomaly& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline bool ProfilesHasBeenSet() const { return m_profilesHasBeenSet; }
44 template <typename ProfilesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::Vector<AnomalyObject>>>>
45 void SetProfiles(ProfilesT&& value) {
46 m_profilesHasBeenSet = true;
47 m_profiles = std::forward<ProfilesT>(value);
48 }
49 template <typename ProfilesT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::Vector<AnomalyObject>>>>
50 Anomaly& WithProfiles(ProfilesT&& value) {
51 SetProfiles(std::forward<ProfilesT>(value));
52 return *this;
53 }
54 template <typename ProfilesKeyT = Aws::String, typename ProfilesValueT = Aws::Map<Aws::String, Aws::Vector<AnomalyObject>>>
55 Anomaly& AddProfiles(ProfilesKeyT&& key, ProfilesValueT&& value) {
56 m_profilesHasBeenSet = true;
57 m_profiles.emplace(std::forward<ProfilesKeyT>(key), std::forward<ProfilesValueT>(value));
58 return *this;
59 }
61
63
66 inline const AnomalyUnusual& GetUnusual() const { return m_unusual; }
67 inline bool UnusualHasBeenSet() const { return m_unusualHasBeenSet; }
68 template <typename UnusualT = AnomalyUnusual>
69 void SetUnusual(UnusualT&& value) {
70 m_unusualHasBeenSet = true;
71 m_unusual = std::forward<UnusualT>(value);
72 }
73 template <typename UnusualT = AnomalyUnusual>
74 Anomaly& WithUnusual(UnusualT&& value) {
75 SetUnusual(std::forward<UnusualT>(value));
76 return *this;
77 }
79 private:
81
82 AnomalyUnusual m_unusual;
83 bool m_profilesHasBeenSet = false;
84 bool m_unusualHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace GuardDuty
89} // namespace Aws
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
bool ProfilesHasBeenSet() const
Definition Anomaly.h:43
AWS_GUARDDUTY_API Anomaly()=default
Anomaly & WithProfiles(ProfilesT &&value)
Definition Anomaly.h:50
AWS_GUARDDUTY_API Anomaly(Aws::Utils::Json::JsonView jsonValue)
Anomaly & WithUnusual(UnusualT &&value)
Definition Anomaly.h:74
Anomaly & AddProfiles(ProfilesKeyT &&key, ProfilesValueT &&value)
Definition Anomaly.h:55
void SetUnusual(UnusualT &&value)
Definition Anomaly.h:69
void SetProfiles(ProfilesT &&value)
Definition Anomaly.h:45
AWS_GUARDDUTY_API Anomaly & operator=(Aws::Utils::Json::JsonView jsonValue)
bool UnusualHasBeenSet() const
Definition Anomaly.h:67
const Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::Vector< AnomalyObject > > > & GetProfiles() const
Definition Anomaly.h:42
const AnomalyUnusual & GetUnusual() const
Definition Anomaly.h:66
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue