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/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();
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 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
63 inline const Aws::String& GetSeverity() const{ return m_severity; }
64 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
65 inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
66 inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
67 inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
68 inline Threat& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
69 inline Threat& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
70 inline Threat& WithSeverity(const char* value) { SetSeverity(value); return *this;}
72
74
77 inline int GetItemCount() const{ return m_itemCount; }
78 inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; }
79 inline void SetItemCount(int value) { m_itemCountHasBeenSet = true; m_itemCount = value; }
80 inline Threat& WithItemCount(int value) { SetItemCount(value); return *this;}
82
84
88 inline const Aws::Vector<FilePaths>& GetFilePaths() const{ return m_filePaths; }
89 inline bool FilePathsHasBeenSet() const { return m_filePathsHasBeenSet; }
90 inline void SetFilePaths(const Aws::Vector<FilePaths>& value) { m_filePathsHasBeenSet = true; m_filePaths = value; }
91 inline void SetFilePaths(Aws::Vector<FilePaths>&& value) { m_filePathsHasBeenSet = true; m_filePaths = std::move(value); }
92 inline Threat& WithFilePaths(const Aws::Vector<FilePaths>& value) { SetFilePaths(value); return *this;}
93 inline Threat& WithFilePaths(Aws::Vector<FilePaths>&& value) { SetFilePaths(std::move(value)); return *this;}
94 inline Threat& AddFilePaths(const FilePaths& value) { m_filePathsHasBeenSet = true; m_filePaths.push_back(value); return *this; }
95 inline Threat& AddFilePaths(FilePaths&& value) { m_filePathsHasBeenSet = true; m_filePaths.push_back(std::move(value)); return *this; }
97 private:
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
102 Aws::String m_severity;
103 bool m_severityHasBeenSet = false;
104
105 int m_itemCount;
106 bool m_itemCountHasBeenSet = false;
107
108 Aws::Vector<FilePaths> m_filePaths;
109 bool m_filePathsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SecurityHub
114} // namespace Aws
bool FilePathsHasBeenSet() const
Definition Threat.h:89
void SetName(const char *value)
Definition Threat.h:52
Threat & WithName(Aws::String &&value)
Definition Threat.h:54
Threat & WithName(const char *value)
Definition Threat.h:55
void SetItemCount(int value)
Definition Threat.h:79
Threat & AddFilePaths(FilePaths &&value)
Definition Threat.h:95
const Aws::String & GetName() const
Definition Threat.h:48
void SetSeverity(const Aws::String &value)
Definition Threat.h:65
Threat & WithFilePaths(const Aws::Vector< FilePaths > &value)
Definition Threat.h:92
AWS_SECURITYHUB_API Threat & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
Definition Threat.h:51
const Aws::String & GetSeverity() const
Definition Threat.h:63
void SetFilePaths(const Aws::Vector< FilePaths > &value)
Definition Threat.h:90
AWS_SECURITYHUB_API Threat()
AWS_SECURITYHUB_API Threat(Aws::Utils::Json::JsonView jsonValue)
bool SeverityHasBeenSet() const
Definition Threat.h:64
Threat & WithSeverity(const char *value)
Definition Threat.h:70
void SetSeverity(const char *value)
Definition Threat.h:67
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSeverity(Aws::String &&value)
Definition Threat.h:66
Threat & WithItemCount(int value)
Definition Threat.h:80
Threat & AddFilePaths(const FilePaths &value)
Definition Threat.h:94
Threat & WithSeverity(const Aws::String &value)
Definition Threat.h:68
Threat & WithFilePaths(Aws::Vector< FilePaths > &&value)
Definition Threat.h:93
void SetName(const Aws::String &value)
Definition Threat.h:50
const Aws::Vector< FilePaths > & GetFilePaths() const
Definition Threat.h:88
void SetFilePaths(Aws::Vector< FilePaths > &&value)
Definition Threat.h:91
Threat & WithSeverity(Aws::String &&value)
Definition Threat.h:69
Threat & WithName(const Aws::String &value)
Definition Threat.h:53
bool ItemCountHasBeenSet() const
Definition Threat.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue