AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AnomalyUnusual.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/model/AnomalyObject.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 AnomalyUnusual() = default;
38 AWS_GUARDDUTY_API AnomalyUnusual(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Map<Aws::String, Aws::Map<Aws::String, AnomalyObject>>& GetBehavior() const { return m_behavior; }
49 inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; }
50 template<typename BehaviorT = Aws::Map<Aws::String, Aws::Map<Aws::String, AnomalyObject>>>
51 void SetBehavior(BehaviorT&& value) { m_behaviorHasBeenSet = true; m_behavior = std::forward<BehaviorT>(value); }
52 template<typename BehaviorT = Aws::Map<Aws::String, Aws::Map<Aws::String, AnomalyObject>>>
53 AnomalyUnusual& WithBehavior(BehaviorT&& value) { SetBehavior(std::forward<BehaviorT>(value)); return *this;}
54 template<typename BehaviorKeyT = Aws::String, typename BehaviorValueT = Aws::Map<Aws::String, AnomalyObject>>
55 AnomalyUnusual& AddBehavior(BehaviorKeyT&& key, BehaviorValueT&& value) {
56 m_behaviorHasBeenSet = true; m_behavior.emplace(std::forward<BehaviorKeyT>(key), std::forward<BehaviorValueT>(value)); return *this;
57 }
59 private:
60
62 bool m_behaviorHasBeenSet = false;
63 };
64
65} // namespace Model
66} // namespace GuardDuty
67} // 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