AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline Threat& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline Threat& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline Threat& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetSource() const{ return m_source; }
63 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
64 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
65 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
66 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
67 inline Threat& WithSource(const Aws::String& value) { SetSource(value); return *this;}
68 inline Threat& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
69 inline Threat& WithSource(const char* value) { SetSource(value); return *this;}
71
73
77 inline const Aws::Vector<ItemPath>& GetItemPaths() const{ return m_itemPaths; }
78 inline bool ItemPathsHasBeenSet() const { return m_itemPathsHasBeenSet; }
79 inline void SetItemPaths(const Aws::Vector<ItemPath>& value) { m_itemPathsHasBeenSet = true; m_itemPaths = value; }
80 inline void SetItemPaths(Aws::Vector<ItemPath>&& value) { m_itemPathsHasBeenSet = true; m_itemPaths = std::move(value); }
81 inline Threat& WithItemPaths(const Aws::Vector<ItemPath>& value) { SetItemPaths(value); return *this;}
82 inline Threat& WithItemPaths(Aws::Vector<ItemPath>&& value) { SetItemPaths(std::move(value)); return *this;}
83 inline Threat& AddItemPaths(const ItemPath& value) { m_itemPathsHasBeenSet = true; m_itemPaths.push_back(value); return *this; }
84 inline Threat& AddItemPaths(ItemPath&& value) { m_itemPathsHasBeenSet = true; m_itemPaths.push_back(std::move(value)); return *this; }
86 private:
87
88 Aws::String m_name;
89 bool m_nameHasBeenSet = false;
90
91 Aws::String m_source;
92 bool m_sourceHasBeenSet = false;
93
94 Aws::Vector<ItemPath> m_itemPaths;
95 bool m_itemPathsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace GuardDuty
100} // namespace Aws
Threat & WithSource(Aws::String &&value)
Definition Threat.h:68
Threat & AddItemPaths(ItemPath &&value)
Definition Threat.h:84
bool NameHasBeenSet() const
Definition Threat.h:49
const Aws::String & GetSource() const
Definition Threat.h:62
void SetSource(const Aws::String &value)
Definition Threat.h:64
bool ItemPathsHasBeenSet() const
Definition Threat.h:78
AWS_GUARDDUTY_API Threat()
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Threat & WithSource(const char *value)
Definition Threat.h:69
void SetSource(Aws::String &&value)
Definition Threat.h:65
void SetName(const char *value)
Definition Threat.h:52
void SetName(Aws::String &&value)
Definition Threat.h:51
const Aws::Vector< ItemPath > & GetItemPaths() const
Definition Threat.h:77
Threat & WithName(Aws::String &&value)
Definition Threat.h:54
Threat & WithItemPaths(Aws::Vector< ItemPath > &&value)
Definition Threat.h:82
Threat & WithName(const char *value)
Definition Threat.h:55
void SetName(const Aws::String &value)
Definition Threat.h:50
Threat & AddItemPaths(const ItemPath &value)
Definition Threat.h:83
Threat & WithName(const Aws::String &value)
Definition Threat.h:53
const Aws::String & GetName() const
Definition Threat.h:48
Threat & WithSource(const Aws::String &value)
Definition Threat.h:67
AWS_GUARDDUTY_API Threat & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetItemPaths(const Aws::Vector< ItemPath > &value)
Definition Threat.h:79
AWS_GUARDDUTY_API Threat(Aws::Utils::Json::JsonView jsonValue)
bool SourceHasBeenSet() const
Definition Threat.h:63
Threat & WithItemPaths(const Aws::Vector< ItemPath > &value)
Definition Threat.h:81
void SetSource(const char *value)
Definition Threat.h:66
void SetItemPaths(Aws::Vector< ItemPath > &&value)
Definition Threat.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue