AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Threat.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/FilePaths.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 SecurityHub
24{
25namespace Model
26{
27
34 class Threat
35 {
36 public:
37 AWS_SECURITYHUB_API Threat() = default;
38 AWS_SECURITYHUB_API Threat(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Threat& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_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
61 inline const Aws::String& GetSeverity() const { return m_severity; }
62 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
63 template<typename SeverityT = Aws::String>
64 void SetSeverity(SeverityT&& value) { m_severityHasBeenSet = true; m_severity = std::forward<SeverityT>(value); }
65 template<typename SeverityT = Aws::String>
66 Threat& WithSeverity(SeverityT&& value) { SetSeverity(std::forward<SeverityT>(value)); return *this;}
68
70
73 inline int GetItemCount() const { return m_itemCount; }
74 inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; }
75 inline void SetItemCount(int value) { m_itemCountHasBeenSet = true; m_itemCount = value; }
76 inline Threat& WithItemCount(int value) { SetItemCount(value); return *this;}
78
80
84 inline const Aws::Vector<FilePaths>& GetFilePaths() const { return m_filePaths; }
85 inline bool FilePathsHasBeenSet() const { return m_filePathsHasBeenSet; }
86 template<typename FilePathsT = Aws::Vector<FilePaths>>
87 void SetFilePaths(FilePathsT&& value) { m_filePathsHasBeenSet = true; m_filePaths = std::forward<FilePathsT>(value); }
88 template<typename FilePathsT = Aws::Vector<FilePaths>>
89 Threat& WithFilePaths(FilePathsT&& value) { SetFilePaths(std::forward<FilePathsT>(value)); return *this;}
90 template<typename FilePathsT = FilePaths>
91 Threat& AddFilePaths(FilePathsT&& value) { m_filePathsHasBeenSet = true; m_filePaths.emplace_back(std::forward<FilePathsT>(value)); return *this; }
93 private:
94
95 Aws::String m_name;
96 bool m_nameHasBeenSet = false;
97
98 Aws::String m_severity;
99 bool m_severityHasBeenSet = false;
100
101 int m_itemCount{0};
102 bool m_itemCountHasBeenSet = false;
103
104 Aws::Vector<FilePaths> m_filePaths;
105 bool m_filePathsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace SecurityHub
110} // namespace Aws
bool FilePathsHasBeenSet() const
Definition Threat.h:85
Threat & WithFilePaths(FilePathsT &&value)
Definition Threat.h:89
void SetItemCount(int value)
Definition Threat.h:75
void SetFilePaths(FilePathsT &&value)
Definition Threat.h:87
const Aws::String & GetName() const
Definition Threat.h:48
void SetName(NameT &&value)
Definition Threat.h:51
AWS_SECURITYHUB_API Threat & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Threat()=default
const Aws::String & GetSeverity() const
Definition Threat.h:61
AWS_SECURITYHUB_API Threat(Aws::Utils::Json::JsonView jsonValue)
Threat & AddFilePaths(FilePathsT &&value)
Definition Threat.h:91
void SetSeverity(SeverityT &&value)
Definition Threat.h:64
bool SeverityHasBeenSet() const
Definition Threat.h:62
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Threat & WithItemCount(int value)
Definition Threat.h:76
const Aws::Vector< FilePaths > & GetFilePaths() const
Definition Threat.h:84
Threat & WithName(NameT &&value)
Definition Threat.h:53
Threat & WithSeverity(SeverityT &&value)
Definition Threat.h:66
bool ItemCountHasBeenSet() const
Definition Threat.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue