AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ThreatIntelligenceDetail.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/guardduty/GuardDuty_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
30 public:
31 AWS_GUARDDUTY_API ThreatIntelligenceDetail() = default;
34 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetThreatListName() const { return m_threatListName; }
41 inline bool ThreatListNameHasBeenSet() const { return m_threatListNameHasBeenSet; }
42 template <typename ThreatListNameT = Aws::String>
43 void SetThreatListName(ThreatListNameT&& value) {
44 m_threatListNameHasBeenSet = true;
45 m_threatListName = std::forward<ThreatListNameT>(value);
46 }
47 template <typename ThreatListNameT = Aws::String>
48 ThreatIntelligenceDetail& WithThreatListName(ThreatListNameT&& value) {
49 SetThreatListName(std::forward<ThreatListNameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<Aws::String>& GetThreatNames() const { return m_threatNames; }
60 inline bool ThreatNamesHasBeenSet() const { return m_threatNamesHasBeenSet; }
61 template <typename ThreatNamesT = Aws::Vector<Aws::String>>
62 void SetThreatNames(ThreatNamesT&& value) {
63 m_threatNamesHasBeenSet = true;
64 m_threatNames = std::forward<ThreatNamesT>(value);
65 }
66 template <typename ThreatNamesT = Aws::Vector<Aws::String>>
68 SetThreatNames(std::forward<ThreatNamesT>(value));
69 return *this;
70 }
71 template <typename ThreatNamesT = Aws::String>
73 m_threatNamesHasBeenSet = true;
74 m_threatNames.emplace_back(std::forward<ThreatNamesT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetThreatFileSha256() const { return m_threatFileSha256; }
84 inline bool ThreatFileSha256HasBeenSet() const { return m_threatFileSha256HasBeenSet; }
85 template <typename ThreatFileSha256T = Aws::String>
86 void SetThreatFileSha256(ThreatFileSha256T&& value) {
87 m_threatFileSha256HasBeenSet = true;
88 m_threatFileSha256 = std::forward<ThreatFileSha256T>(value);
89 }
90 template <typename ThreatFileSha256T = Aws::String>
91 ThreatIntelligenceDetail& WithThreatFileSha256(ThreatFileSha256T&& value) {
92 SetThreatFileSha256(std::forward<ThreatFileSha256T>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_threatListName;
98
99 Aws::Vector<Aws::String> m_threatNames;
100
101 Aws::String m_threatFileSha256;
102 bool m_threatListNameHasBeenSet = false;
103 bool m_threatNamesHasBeenSet = false;
104 bool m_threatFileSha256HasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace GuardDuty
109} // namespace Aws
ThreatIntelligenceDetail & WithThreatListName(ThreatListNameT &&value)
const Aws::Vector< Aws::String > & GetThreatNames() const
ThreatIntelligenceDetail & WithThreatNames(ThreatNamesT &&value)
ThreatIntelligenceDetail & WithThreatFileSha256(ThreatFileSha256T &&value)
AWS_GUARDDUTY_API ThreatIntelligenceDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API ThreatIntelligenceDetail()=default
AWS_GUARDDUTY_API ThreatIntelligenceDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
ThreatIntelligenceDetail & AddThreatNames(ThreatNamesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue