AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ThreatIntelligenceDetail.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 ThreatIntelligenceDetail() = default;
39 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetThreatListName() const { return m_threatListName; }
47 inline bool ThreatListNameHasBeenSet() const { return m_threatListNameHasBeenSet; }
48 template<typename ThreatListNameT = Aws::String>
49 void SetThreatListName(ThreatListNameT&& value) { m_threatListNameHasBeenSet = true; m_threatListName = std::forward<ThreatListNameT>(value); }
50 template<typename ThreatListNameT = Aws::String>
51 ThreatIntelligenceDetail& WithThreatListName(ThreatListNameT&& value) { SetThreatListName(std::forward<ThreatListNameT>(value)); return *this;}
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) { m_threatNamesHasBeenSet = true; m_threatNames = std::forward<ThreatNamesT>(value); }
63 template<typename ThreatNamesT = Aws::Vector<Aws::String>>
64 ThreatIntelligenceDetail& WithThreatNames(ThreatNamesT&& value) { SetThreatNames(std::forward<ThreatNamesT>(value)); return *this;}
65 template<typename ThreatNamesT = Aws::String>
66 ThreatIntelligenceDetail& AddThreatNames(ThreatNamesT&& value) { m_threatNamesHasBeenSet = true; m_threatNames.emplace_back(std::forward<ThreatNamesT>(value)); return *this; }
68
70
73 inline const Aws::String& GetThreatFileSha256() const { return m_threatFileSha256; }
74 inline bool ThreatFileSha256HasBeenSet() const { return m_threatFileSha256HasBeenSet; }
75 template<typename ThreatFileSha256T = Aws::String>
76 void SetThreatFileSha256(ThreatFileSha256T&& value) { m_threatFileSha256HasBeenSet = true; m_threatFileSha256 = std::forward<ThreatFileSha256T>(value); }
77 template<typename ThreatFileSha256T = Aws::String>
78 ThreatIntelligenceDetail& WithThreatFileSha256(ThreatFileSha256T&& value) { SetThreatFileSha256(std::forward<ThreatFileSha256T>(value)); return *this;}
80 private:
81
82 Aws::String m_threatListName;
83 bool m_threatListNameHasBeenSet = false;
84
85 Aws::Vector<Aws::String> m_threatNames;
86 bool m_threatNamesHasBeenSet = false;
87
88 Aws::String m_threatFileSha256;
89 bool m_threatFileSha256HasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace GuardDuty
94} // 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