AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Threat.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/FilePaths.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
30class Threat {
31 public:
32 AWS_SECURITYHUB_API Threat() = default;
33 AWS_SECURITYHUB_API Threat(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API Threat& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 Threat& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
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) {
65 m_severityHasBeenSet = true;
66 m_severity = std::forward<SeverityT>(value);
67 }
68 template <typename SeverityT = Aws::String>
69 Threat& WithSeverity(SeverityT&& value) {
70 SetSeverity(std::forward<SeverityT>(value));
71 return *this;
72 }
74
76
79 inline int GetItemCount() const { return m_itemCount; }
80 inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; }
81 inline void SetItemCount(int value) {
82 m_itemCountHasBeenSet = true;
83 m_itemCount = value;
84 }
85 inline Threat& WithItemCount(int value) {
86 SetItemCount(value);
87 return *this;
88 }
90
92
96 inline const Aws::Vector<FilePaths>& GetFilePaths() const { return m_filePaths; }
97 inline bool FilePathsHasBeenSet() const { return m_filePathsHasBeenSet; }
98 template <typename FilePathsT = Aws::Vector<FilePaths>>
99 void SetFilePaths(FilePathsT&& value) {
100 m_filePathsHasBeenSet = true;
101 m_filePaths = std::forward<FilePathsT>(value);
102 }
103 template <typename FilePathsT = Aws::Vector<FilePaths>>
104 Threat& WithFilePaths(FilePathsT&& value) {
105 SetFilePaths(std::forward<FilePathsT>(value));
106 return *this;
107 }
108 template <typename FilePathsT = FilePaths>
109 Threat& AddFilePaths(FilePathsT&& value) {
110 m_filePathsHasBeenSet = true;
111 m_filePaths.emplace_back(std::forward<FilePathsT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_name;
117
118 Aws::String m_severity;
119
120 int m_itemCount{0};
121
122 Aws::Vector<FilePaths> m_filePaths;
123 bool m_nameHasBeenSet = false;
124 bool m_severityHasBeenSet = false;
125 bool m_itemCountHasBeenSet = false;
126 bool m_filePathsHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace SecurityHub
131} // namespace Aws
bool FilePathsHasBeenSet() const
Definition Threat.h:97
Threat & WithFilePaths(FilePathsT &&value)
Definition Threat.h:104
void SetItemCount(int value)
Definition Threat.h:81
void SetFilePaths(FilePathsT &&value)
Definition Threat.h:99
const Aws::String & GetName() const
Definition Threat.h:42
void SetName(NameT &&value)
Definition Threat.h:45
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:109
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:85
const Aws::Vector< FilePaths > & GetFilePaths() const
Definition Threat.h:96
Threat & WithName(NameT &&value)
Definition Threat.h:50
Threat & WithSeverity(SeverityT &&value)
Definition Threat.h:69
bool ItemCountHasBeenSet() const
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