AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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