AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
MalwareThreat.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
29 public:
30 AWS_GUARDDUTY_API MalwareThreat() = default;
31 AWS_GUARDDUTY_API MalwareThreat(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GUARDDUTY_API MalwareThreat& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 MalwareThreat& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetSeverity() const { return m_severity; }
58 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
59 template <typename SeverityT = Aws::String>
60 void SetSeverity(SeverityT&& value) {
61 m_severityHasBeenSet = true;
62 m_severity = std::forward<SeverityT>(value);
63 }
64 template <typename SeverityT = Aws::String>
65 MalwareThreat& WithSeverity(SeverityT&& value) {
66 SetSeverity(std::forward<SeverityT>(value));
67 return *this;
68 }
70
72
75 inline long long GetInfectedFileCount() const { return m_infectedFileCount; }
76 inline bool InfectedFileCountHasBeenSet() const { return m_infectedFileCountHasBeenSet; }
77 inline void SetInfectedFileCount(long long value) {
78 m_infectedFileCountHasBeenSet = true;
79 m_infectedFileCount = value;
80 }
81 inline MalwareThreat& WithInfectedFileCount(long long value) {
83 return *this;
84 }
86
88
91 inline const Aws::String& GetSampleFiles() const { return m_sampleFiles; }
92 inline bool SampleFilesHasBeenSet() const { return m_sampleFilesHasBeenSet; }
93 template <typename SampleFilesT = Aws::String>
94 void SetSampleFiles(SampleFilesT&& value) {
95 m_sampleFilesHasBeenSet = true;
96 m_sampleFiles = std::forward<SampleFilesT>(value);
97 }
98 template <typename SampleFilesT = Aws::String>
99 MalwareThreat& WithSampleFiles(SampleFilesT&& value) {
100 SetSampleFiles(std::forward<SampleFilesT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_name;
106
107 Aws::String m_severity;
108
109 long long m_infectedFileCount{0};
110
111 Aws::String m_sampleFiles;
112 bool m_nameHasBeenSet = false;
113 bool m_severityHasBeenSet = false;
114 bool m_infectedFileCountHasBeenSet = false;
115 bool m_sampleFilesHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace GuardDuty
120} // namespace Aws
const Aws::String & GetName() const
MalwareThreat & WithSampleFiles(SampleFilesT &&value)
MalwareThreat & WithName(NameT &&value)
const Aws::String & GetSeverity() const
const Aws::String & GetSampleFiles() const
void SetSampleFiles(SampleFilesT &&value)
AWS_GUARDDUTY_API MalwareThreat(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSeverity(SeverityT &&value)
MalwareThreat & WithInfectedFileCount(long long value)
MalwareThreat & WithSeverity(SeverityT &&value)
AWS_GUARDDUTY_API MalwareThreat & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API MalwareThreat()=default
void SetInfectedFileCount(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue