AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
MalwareScanDetails.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/model/Threat.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GUARDDUTY_API MalwareScanDetails() = default;
37 AWS_GUARDDUTY_API MalwareScanDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<Threat>& GetThreats() const { return m_threats; }
48 inline bool ThreatsHasBeenSet() const { return m_threatsHasBeenSet; }
49 template<typename ThreatsT = Aws::Vector<Threat>>
50 void SetThreats(ThreatsT&& value) { m_threatsHasBeenSet = true; m_threats = std::forward<ThreatsT>(value); }
51 template<typename ThreatsT = Aws::Vector<Threat>>
52 MalwareScanDetails& WithThreats(ThreatsT&& value) { SetThreats(std::forward<ThreatsT>(value)); return *this;}
53 template<typename ThreatsT = Threat>
54 MalwareScanDetails& AddThreats(ThreatsT&& value) { m_threatsHasBeenSet = true; m_threats.emplace_back(std::forward<ThreatsT>(value)); return *this; }
56 private:
57
58 Aws::Vector<Threat> m_threats;
59 bool m_threatsHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace GuardDuty
64} // namespace Aws
AWS_GUARDDUTY_API MalwareScanDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
MalwareScanDetails & WithThreats(ThreatsT &&value)
const Aws::Vector< Threat > & GetThreats() const
AWS_GUARDDUTY_API MalwareScanDetails()=default
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API MalwareScanDetails(Aws::Utils::Json::JsonView jsonValue)
MalwareScanDetails & AddThreats(ThreatsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue