AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Threat.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/model/ItemPath.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
34 class Threat
35 {
36 public:
37 AWS_GUARDDUTY_API Threat() = default;
38 AWS_GUARDDUTY_API Threat(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Threat& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 Threat& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetSource() const { return m_source; }
61 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
62 template<typename SourceT = Aws::String>
63 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
64 template<typename SourceT = Aws::String>
65 Threat& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
67
69
73 inline const Aws::Vector<ItemPath>& GetItemPaths() const { return m_itemPaths; }
74 inline bool ItemPathsHasBeenSet() const { return m_itemPathsHasBeenSet; }
75 template<typename ItemPathsT = Aws::Vector<ItemPath>>
76 void SetItemPaths(ItemPathsT&& value) { m_itemPathsHasBeenSet = true; m_itemPaths = std::forward<ItemPathsT>(value); }
77 template<typename ItemPathsT = Aws::Vector<ItemPath>>
78 Threat& WithItemPaths(ItemPathsT&& value) { SetItemPaths(std::forward<ItemPathsT>(value)); return *this;}
79 template<typename ItemPathsT = ItemPath>
80 Threat& AddItemPaths(ItemPathsT&& value) { m_itemPathsHasBeenSet = true; m_itemPaths.emplace_back(std::forward<ItemPathsT>(value)); return *this; }
82 private:
83
84 Aws::String m_name;
85 bool m_nameHasBeenSet = false;
86
87 Aws::String m_source;
88 bool m_sourceHasBeenSet = false;
89
90 Aws::Vector<ItemPath> m_itemPaths;
91 bool m_itemPathsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace GuardDuty
96} // namespace Aws
Threat & WithSource(SourceT &&value)
Definition Threat.h:65
bool NameHasBeenSet() const
Definition Threat.h:49
const Aws::String & GetSource() const
Definition Threat.h:60
bool ItemPathsHasBeenSet() const
Definition Threat.h:74
AWS_GUARDDUTY_API Threat()=default
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Threat & WithName(NameT &&value)
Definition Threat.h:53
Threat & WithItemPaths(ItemPathsT &&value)
Definition Threat.h:78
const Aws::Vector< ItemPath > & GetItemPaths() const
Definition Threat.h:73
Threat & AddItemPaths(ItemPathsT &&value)
Definition Threat.h:80
void SetItemPaths(ItemPathsT &&value)
Definition Threat.h:76
void SetName(NameT &&value)
Definition Threat.h:51
const Aws::String & GetName() const
Definition Threat.h:48
AWS_GUARDDUTY_API Threat & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSource(SourceT &&value)
Definition Threat.h:63
AWS_GUARDDUTY_API Threat(Aws::Utils::Json::JsonView jsonValue)
bool SourceHasBeenSet() const
Definition Threat.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue