AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ThreatIntelIndicator.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/ThreatIntelIndicatorCategory.h>
10#include <aws/securityhub/model/ThreatIntelIndicatorType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
31 public:
32 AWS_SECURITYHUB_API ThreatIntelIndicator() = default;
33 AWS_SECURITYHUB_API ThreatIntelIndicator(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline ThreatIntelIndicatorType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(ThreatIntelIndicatorType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
48 SetType(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 template <typename ValueT = Aws::String>
61 void SetValue(ValueT&& value) {
62 m_valueHasBeenSet = true;
63 m_value = std::forward<ValueT>(value);
64 }
65 template <typename ValueT = Aws::String>
67 SetValue(std::forward<ValueT>(value));
68 return *this;
69 }
71
73
76 inline ThreatIntelIndicatorCategory GetCategory() const { return m_category; }
77 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
79 m_categoryHasBeenSet = true;
80 m_category = value;
81 }
83 SetCategory(value);
84 return *this;
85 }
87
89
95 inline const Aws::String& GetLastObservedAt() const { return m_lastObservedAt; }
96 inline bool LastObservedAtHasBeenSet() const { return m_lastObservedAtHasBeenSet; }
97 template <typename LastObservedAtT = Aws::String>
98 void SetLastObservedAt(LastObservedAtT&& value) {
99 m_lastObservedAtHasBeenSet = true;
100 m_lastObservedAt = std::forward<LastObservedAtT>(value);
101 }
102 template <typename LastObservedAtT = Aws::String>
103 ThreatIntelIndicator& WithLastObservedAt(LastObservedAtT&& value) {
104 SetLastObservedAt(std::forward<LastObservedAtT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetSource() const { return m_source; }
115 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
116 template <typename SourceT = Aws::String>
117 void SetSource(SourceT&& value) {
118 m_sourceHasBeenSet = true;
119 m_source = std::forward<SourceT>(value);
120 }
121 template <typename SourceT = Aws::String>
123 SetSource(std::forward<SourceT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetSourceUrl() const { return m_sourceUrl; }
134 inline bool SourceUrlHasBeenSet() const { return m_sourceUrlHasBeenSet; }
135 template <typename SourceUrlT = Aws::String>
136 void SetSourceUrl(SourceUrlT&& value) {
137 m_sourceUrlHasBeenSet = true;
138 m_sourceUrl = std::forward<SourceUrlT>(value);
139 }
140 template <typename SourceUrlT = Aws::String>
141 ThreatIntelIndicator& WithSourceUrl(SourceUrlT&& value) {
142 SetSourceUrl(std::forward<SourceUrlT>(value));
143 return *this;
144 }
146 private:
148
149 Aws::String m_value;
150
152
153 Aws::String m_lastObservedAt;
154
155 Aws::String m_source;
156
157 Aws::String m_sourceUrl;
158 bool m_typeHasBeenSet = false;
159 bool m_valueHasBeenSet = false;
160 bool m_categoryHasBeenSet = false;
161 bool m_lastObservedAtHasBeenSet = false;
162 bool m_sourceHasBeenSet = false;
163 bool m_sourceUrlHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace SecurityHub
168} // namespace Aws
AWS_SECURITYHUB_API ThreatIntelIndicator()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API ThreatIntelIndicator(Aws::Utils::Json::JsonView jsonValue)
ThreatIntelIndicator & WithSource(SourceT &&value)
void SetType(ThreatIntelIndicatorType value)
ThreatIntelIndicator & WithSourceUrl(SourceUrlT &&value)
ThreatIntelIndicator & WithValue(ValueT &&value)
void SetCategory(ThreatIntelIndicatorCategory value)
ThreatIntelIndicator & WithCategory(ThreatIntelIndicatorCategory value)
ThreatIntelIndicatorCategory GetCategory() const
ThreatIntelIndicator & WithType(ThreatIntelIndicatorType value)
ThreatIntelIndicator & WithLastObservedAt(LastObservedAtT &&value)
AWS_SECURITYHUB_API ThreatIntelIndicator & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue