AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
AnomalyUnusual.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/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/AnomalyObject.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 AnomalyUnusual() = default;
33 AWS_GUARDDUTY_API AnomalyUnusual(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Map<Aws::String, Aws::Map<Aws::String, AnomalyObject>>& GetBehavior() const { return m_behavior; }
43 inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; }
44 template <typename BehaviorT = Aws::Map<Aws::String, Aws::Map<Aws::String, AnomalyObject>>>
45 void SetBehavior(BehaviorT&& value) {
46 m_behaviorHasBeenSet = true;
47 m_behavior = std::forward<BehaviorT>(value);
48 }
49 template <typename BehaviorT = Aws::Map<Aws::String, Aws::Map<Aws::String, AnomalyObject>>>
50 AnomalyUnusual& WithBehavior(BehaviorT&& value) {
51 SetBehavior(std::forward<BehaviorT>(value));
52 return *this;
53 }
54 template <typename BehaviorKeyT = Aws::String, typename BehaviorValueT = Aws::Map<Aws::String, AnomalyObject>>
55 AnomalyUnusual& AddBehavior(BehaviorKeyT&& key, BehaviorValueT&& value) {
56 m_behaviorHasBeenSet = true;
57 m_behavior.emplace(std::forward<BehaviorKeyT>(key), std::forward<BehaviorValueT>(value));
58 return *this;
59 }
61 private:
63 bool m_behaviorHasBeenSet = false;
64};
65
66} // namespace Model
67} // namespace GuardDuty
68} // namespace Aws
AnomalyUnusual & AddBehavior(BehaviorKeyT &&key, BehaviorValueT &&value)
AWS_GUARDDUTY_API AnomalyUnusual(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API AnomalyUnusual & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API AnomalyUnusual()=default
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::Map< Aws::String, AnomalyObject > > & GetBehavior() const
AnomalyUnusual & WithBehavior(BehaviorT &&value)
void SetBehavior(BehaviorT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue