AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetProfiles(const Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::Vector<AnomalyObject>>>& value) { m_profilesHasBeenSet = true; m_profiles = value; }
51 inline void SetProfiles(Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::Vector<AnomalyObject>>>&& value) { m_profilesHasBeenSet = true; m_profiles = std::move(value); }
53 inline Anomaly& WithProfiles(Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::Vector<AnomalyObject>>>&& value) { SetProfiles(std::move(value)); return *this;}
54 inline Anomaly& AddProfiles(const Aws::String& key, const Aws::Map<Aws::String, Aws::Vector<AnomalyObject>>& value) { m_profilesHasBeenSet = true; m_profiles.emplace(key, value); return *this; }
55 inline Anomaly& AddProfiles(Aws::String&& key, const Aws::Map<Aws::String, Aws::Vector<AnomalyObject>>& value) { m_profilesHasBeenSet = true; m_profiles.emplace(std::move(key), value); return *this; }
56 inline Anomaly& AddProfiles(const Aws::String& key, Aws::Map<Aws::String, Aws::Vector<AnomalyObject>>&& value) { m_profilesHasBeenSet = true; m_profiles.emplace(key, std::move(value)); return *this; }
57 inline Anomaly& AddProfiles(Aws::String&& key, Aws::Map<Aws::String, Aws::Vector<AnomalyObject>>&& value) { m_profilesHasBeenSet = true; m_profiles.emplace(std::move(key), std::move(value)); return *this; }
58 inline Anomaly& AddProfiles(const char* key, Aws::Map<Aws::String, Aws::Vector<AnomalyObject>>&& value) { m_profilesHasBeenSet = true; m_profiles.emplace(key, std::move(value)); return *this; }
59 inline Anomaly& AddProfiles(const char* key, const Aws::Map<Aws::String, Aws::Vector<AnomalyObject>>& value) { m_profilesHasBeenSet = true; m_profiles.emplace(key, value); return *this; }
61
63
66 inline const AnomalyUnusual& GetUnusual() const{ return m_unusual; }
67 inline bool UnusualHasBeenSet() const { return m_unusualHasBeenSet; }
68 inline void SetUnusual(const AnomalyUnusual& value) { m_unusualHasBeenSet = true; m_unusual = value; }
69 inline void SetUnusual(AnomalyUnusual&& value) { m_unusualHasBeenSet = true; m_unusual = std::move(value); }
70 inline Anomaly& WithUnusual(const AnomalyUnusual& value) { SetUnusual(value); return *this;}
71 inline Anomaly& WithUnusual(AnomalyUnusual&& value) { SetUnusual(std::move(value)); return *this;}
73 private:
74
76 bool m_profilesHasBeenSet = false;
77
78 AnomalyUnusual m_unusual;
79 bool m_unusualHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace GuardDuty
84} // namespace Aws
Anomaly & AddProfiles(Aws::String &&key, Aws::Map< Aws::String, Aws::Vector< AnomalyObject > > &&value)
Definition Anomaly.h:57
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUnusual(AnomalyUnusual &&value)
Definition Anomaly.h:69
bool ProfilesHasBeenSet() const
Definition Anomaly.h:49
Anomaly & WithProfiles(const Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::Vector< AnomalyObject > > > &value)
Definition Anomaly.h:52
Anomaly & AddProfiles(Aws::String &&key, const Aws::Map< Aws::String, Aws::Vector< AnomalyObject > > &value)
Definition Anomaly.h:55
Anomaly & AddProfiles(const char *key, const Aws::Map< Aws::String, Aws::Vector< AnomalyObject > > &value)
Definition Anomaly.h:59
AWS_GUARDDUTY_API Anomaly(Aws::Utils::Json::JsonView jsonValue)
Anomaly & WithUnusual(const AnomalyUnusual &value)
Definition Anomaly.h:70
Anomaly & AddProfiles(const char *key, Aws::Map< Aws::String, Aws::Vector< AnomalyObject > > &&value)
Definition Anomaly.h:58
void SetProfiles(const Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::Vector< AnomalyObject > > > &value)
Definition Anomaly.h:50
Anomaly & AddProfiles(const Aws::String &key, const Aws::Map< Aws::String, Aws::Vector< AnomalyObject > > &value)
Definition Anomaly.h:54
AWS_GUARDDUTY_API Anomaly & operator=(Aws::Utils::Json::JsonView jsonValue)
Anomaly & AddProfiles(const Aws::String &key, Aws::Map< Aws::String, Aws::Vector< AnomalyObject > > &&value)
Definition Anomaly.h:56
bool UnusualHasBeenSet() const
Definition Anomaly.h:67
Anomaly & WithUnusual(AnomalyUnusual &&value)
Definition Anomaly.h:71
void SetProfiles(Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::Vector< AnomalyObject > > > &&value)
Definition Anomaly.h:51
const Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::Vector< AnomalyObject > > > & GetProfiles() const
Definition Anomaly.h:48
AWS_GUARDDUTY_API Anomaly()
void SetUnusual(const AnomalyUnusual &value)
Definition Anomaly.h:68
const AnomalyUnusual & GetUnusual() const
Definition Anomaly.h:66
Anomaly & WithProfiles(Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::Vector< AnomalyObject > > > &&value)
Definition Anomaly.h:53
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue