AWS SDK for C++  1.9.130
AWS SDK for C++
ThreatIntelIndicator.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace SecurityHub
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const ThreatIntelIndicatorType& GetType() const{ return m_type; }
47 
51  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
52 
56  inline void SetType(const ThreatIntelIndicatorType& value) { m_typeHasBeenSet = true; m_type = value; }
57 
61  inline void SetType(ThreatIntelIndicatorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
62 
66  inline ThreatIntelIndicator& WithType(const ThreatIntelIndicatorType& value) { SetType(value); return *this;}
67 
71  inline ThreatIntelIndicator& WithType(ThreatIntelIndicatorType&& value) { SetType(std::move(value)); return *this;}
72 
73 
77  inline const Aws::String& GetValue() const{ return m_value; }
78 
82  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
83 
87  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
88 
92  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
93 
97  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
98 
102  inline ThreatIntelIndicator& WithValue(const Aws::String& value) { SetValue(value); return *this;}
103 
107  inline ThreatIntelIndicator& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
108 
112  inline ThreatIntelIndicator& WithValue(const char* value) { SetValue(value); return *this;}
113 
114 
118  inline const ThreatIntelIndicatorCategory& GetCategory() const{ return m_category; }
119 
123  inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
124 
128  inline void SetCategory(const ThreatIntelIndicatorCategory& value) { m_categoryHasBeenSet = true; m_category = value; }
129 
133  inline void SetCategory(ThreatIntelIndicatorCategory&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
134 
138  inline ThreatIntelIndicator& WithCategory(const ThreatIntelIndicatorCategory& value) { SetCategory(value); return *this;}
139 
143  inline ThreatIntelIndicator& WithCategory(ThreatIntelIndicatorCategory&& value) { SetCategory(std::move(value)); return *this;}
144 
145 
153  inline const Aws::String& GetLastObservedAt() const{ return m_lastObservedAt; }
154 
162  inline bool LastObservedAtHasBeenSet() const { return m_lastObservedAtHasBeenSet; }
163 
171  inline void SetLastObservedAt(const Aws::String& value) { m_lastObservedAtHasBeenSet = true; m_lastObservedAt = value; }
172 
180  inline void SetLastObservedAt(Aws::String&& value) { m_lastObservedAtHasBeenSet = true; m_lastObservedAt = std::move(value); }
181 
189  inline void SetLastObservedAt(const char* value) { m_lastObservedAtHasBeenSet = true; m_lastObservedAt.assign(value); }
190 
198  inline ThreatIntelIndicator& WithLastObservedAt(const Aws::String& value) { SetLastObservedAt(value); return *this;}
199 
207  inline ThreatIntelIndicator& WithLastObservedAt(Aws::String&& value) { SetLastObservedAt(std::move(value)); return *this;}
208 
216  inline ThreatIntelIndicator& WithLastObservedAt(const char* value) { SetLastObservedAt(value); return *this;}
217 
218 
222  inline const Aws::String& GetSource() const{ return m_source; }
223 
227  inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
228 
232  inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
233 
237  inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
238 
242  inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
243 
247  inline ThreatIntelIndicator& WithSource(const Aws::String& value) { SetSource(value); return *this;}
248 
252  inline ThreatIntelIndicator& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
253 
257  inline ThreatIntelIndicator& WithSource(const char* value) { SetSource(value); return *this;}
258 
259 
264  inline const Aws::String& GetSourceUrl() const{ return m_sourceUrl; }
265 
270  inline bool SourceUrlHasBeenSet() const { return m_sourceUrlHasBeenSet; }
271 
276  inline void SetSourceUrl(const Aws::String& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = value; }
277 
282  inline void SetSourceUrl(Aws::String&& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = std::move(value); }
283 
288  inline void SetSourceUrl(const char* value) { m_sourceUrlHasBeenSet = true; m_sourceUrl.assign(value); }
289 
294  inline ThreatIntelIndicator& WithSourceUrl(const Aws::String& value) { SetSourceUrl(value); return *this;}
295 
300  inline ThreatIntelIndicator& WithSourceUrl(Aws::String&& value) { SetSourceUrl(std::move(value)); return *this;}
301 
306  inline ThreatIntelIndicator& WithSourceUrl(const char* value) { SetSourceUrl(value); return *this;}
307 
308  private:
309 
311  bool m_typeHasBeenSet;
312 
313  Aws::String m_value;
314  bool m_valueHasBeenSet;
315 
316  ThreatIntelIndicatorCategory m_category;
317  bool m_categoryHasBeenSet;
318 
319  Aws::String m_lastObservedAt;
320  bool m_lastObservedAtHasBeenSet;
321 
322  Aws::String m_source;
323  bool m_sourceHasBeenSet;
324 
325  Aws::String m_sourceUrl;
326  bool m_sourceUrlHasBeenSet;
327  };
328 
329 } // namespace Model
330 } // namespace SecurityHub
331 } // namespace Aws
Aws::SecurityHub::Model::ThreatIntelIndicator::SetType
void SetType(ThreatIntelIndicatorType &&value)
Definition: ThreatIntelIndicator.h:61
Aws::SecurityHub::Model::ThreatIntelIndicator::SourceUrlHasBeenSet
bool SourceUrlHasBeenSet() const
Definition: ThreatIntelIndicator.h:270
Aws::SecurityHub::Model::ThreatIntelIndicator::WithCategory
ThreatIntelIndicator & WithCategory(ThreatIntelIndicatorCategory &&value)
Definition: ThreatIntelIndicator.h:143
Aws::SecurityHub::Model::ThreatIntelIndicator::ThreatIntelIndicator
ThreatIntelIndicator()
Aws::SecurityHub::Model::ThreatIntelIndicator::WithLastObservedAt
ThreatIntelIndicator & WithLastObservedAt(Aws::String &&value)
Definition: ThreatIntelIndicator.h:207
Aws::SecurityHub::Model::ThreatIntelIndicator::SetSourceUrl
void SetSourceUrl(const char *value)
Definition: ThreatIntelIndicator.h:288
Aws::SecurityHub::Model::ThreatIntelIndicator::SetCategory
void SetCategory(ThreatIntelIndicatorCategory &&value)
Definition: ThreatIntelIndicator.h:133
Aws::SecurityHub::Model::ThreatIntelIndicator::SetValue
void SetValue(const char *value)
Definition: ThreatIntelIndicator.h:97
Aws::SecurityHub::Model::ThreatIntelIndicator::GetCategory
const ThreatIntelIndicatorCategory & GetCategory() const
Definition: ThreatIntelIndicator.h:118
Aws::SecurityHub::Model::ThreatIntelIndicator::SetType
void SetType(const ThreatIntelIndicatorType &value)
Definition: ThreatIntelIndicator.h:56
Aws::SecurityHub::Model::ThreatIntelIndicator::WithLastObservedAt
ThreatIntelIndicator & WithLastObservedAt(const Aws::String &value)
Definition: ThreatIntelIndicator.h:198
Aws::SecurityHub::Model::ThreatIntelIndicator::WithSource
ThreatIntelIndicator & WithSource(const Aws::String &value)
Definition: ThreatIntelIndicator.h:247
Aws::SecurityHub::Model::ThreatIntelIndicator::WithSourceUrl
ThreatIntelIndicator & WithSourceUrl(Aws::String &&value)
Definition: ThreatIntelIndicator.h:300
Aws::SecurityHub::Model::ThreatIntelIndicator::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: ThreatIntelIndicator.h:82
Aws::SecurityHub::Model::ThreatIntelIndicator::WithType
ThreatIntelIndicator & WithType(ThreatIntelIndicatorType &&value)
Definition: ThreatIntelIndicator.h:71
Aws::SecurityHub::Model::ThreatIntelIndicator::WithValue
ThreatIntelIndicator & WithValue(const char *value)
Definition: ThreatIntelIndicator.h:112
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::ThreatIntelIndicatorCategory
ThreatIntelIndicatorCategory
Definition: ThreatIntelIndicatorCategory.h:17
Aws::SecurityHub::Model::ThreatIntelIndicator::SetValue
void SetValue(Aws::String &&value)
Definition: ThreatIntelIndicator.h:92
Aws::SecurityHub::Model::ThreatIntelIndicator::SetSource
void SetSource(const char *value)
Definition: ThreatIntelIndicator.h:242
Aws::SecurityHub::Model::ThreatIntelIndicator::SetSource
void SetSource(Aws::String &&value)
Definition: ThreatIntelIndicator.h:237
Aws::SecurityHub::Model::ThreatIntelIndicator::SetSource
void SetSource(const Aws::String &value)
Definition: ThreatIntelIndicator.h:232
Aws::SecurityHub::Model::ThreatIntelIndicator::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ThreatIntelIndicator.h:51
Aws::SecurityHub::Model::ThreatIntelIndicator::SetSourceUrl
void SetSourceUrl(Aws::String &&value)
Definition: ThreatIntelIndicator.h:282
Aws::SecurityHub::Model::ThreatIntelIndicator::WithSource
ThreatIntelIndicator & WithSource(Aws::String &&value)
Definition: ThreatIntelIndicator.h:252
Aws::SecurityHub::Model::ThreatIntelIndicator::WithLastObservedAt
ThreatIntelIndicator & WithLastObservedAt(const char *value)
Definition: ThreatIntelIndicator.h:216
Aws::SecurityHub::Model::ThreatIntelIndicator::SetValue
void SetValue(const Aws::String &value)
Definition: ThreatIntelIndicator.h:87
ThreatIntelIndicatorType.h
Aws::SecurityHub::Model::ThreatIntelIndicator::GetType
const ThreatIntelIndicatorType & GetType() const
Definition: ThreatIntelIndicator.h:46
Aws::SecurityHub::Model::ThreatIntelIndicator::WithValue
ThreatIntelIndicator & WithValue(Aws::String &&value)
Definition: ThreatIntelIndicator.h:107
Aws::SecurityHub::Model::ThreatIntelIndicator::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::SecurityHub::Model::ThreatIntelIndicator
Definition: ThreatIntelIndicator.h:35
Aws::SecurityHub::Model::ThreatIntelIndicatorType
ThreatIntelIndicatorType
Definition: ThreatIntelIndicatorType.h:17
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::ThreatIntelIndicator::SetLastObservedAt
void SetLastObservedAt(const char *value)
Definition: ThreatIntelIndicator.h:189
Aws::SecurityHub::Model::ThreatIntelIndicator::GetSourceUrl
const Aws::String & GetSourceUrl() const
Definition: ThreatIntelIndicator.h:264
Aws::SecurityHub::Model::ThreatIntelIndicator::WithType
ThreatIntelIndicator & WithType(const ThreatIntelIndicatorType &value)
Definition: ThreatIntelIndicator.h:66
Aws::SecurityHub::Model::ThreatIntelIndicator::SetLastObservedAt
void SetLastObservedAt(Aws::String &&value)
Definition: ThreatIntelIndicator.h:180
Aws::SecurityHub::Model::ThreatIntelIndicator::GetSource
const Aws::String & GetSource() const
Definition: ThreatIntelIndicator.h:222
Aws::SecurityHub::Model::ThreatIntelIndicator::WithSourceUrl
ThreatIntelIndicator & WithSourceUrl(const char *value)
Definition: ThreatIntelIndicator.h:306
Aws::SecurityHub::Model::ThreatIntelIndicator::CategoryHasBeenSet
bool CategoryHasBeenSet() const
Definition: ThreatIntelIndicator.h:123
Aws::SecurityHub::Model::ThreatIntelIndicator::WithSourceUrl
ThreatIntelIndicator & WithSourceUrl(const Aws::String &value)
Definition: ThreatIntelIndicator.h:294
Aws::SecurityHub::Model::ThreatIntelIndicator::operator=
ThreatIntelIndicator & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::ThreatIntelIndicator::WithSource
ThreatIntelIndicator & WithSource(const char *value)
Definition: ThreatIntelIndicator.h:257
Aws::SecurityHub::Model::ThreatIntelIndicator::GetValue
const Aws::String & GetValue() const
Definition: ThreatIntelIndicator.h:77
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecurityHub::Model::ThreatIntelIndicator::GetLastObservedAt
const Aws::String & GetLastObservedAt() const
Definition: ThreatIntelIndicator.h:153
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::ThreatIntelIndicator::LastObservedAtHasBeenSet
bool LastObservedAtHasBeenSet() const
Definition: ThreatIntelIndicator.h:162
Aws::SecurityHub::Model::ThreatIntelIndicator::WithCategory
ThreatIntelIndicator & WithCategory(const ThreatIntelIndicatorCategory &value)
Definition: ThreatIntelIndicator.h:138
Aws::SecurityHub::Model::ThreatIntelIndicator::SetCategory
void SetCategory(const ThreatIntelIndicatorCategory &value)
Definition: ThreatIntelIndicator.h:128
Aws::SecurityHub::Model::ThreatIntelIndicator::ThreatIntelIndicator
ThreatIntelIndicator(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::ThreatIntelIndicator::WithValue
ThreatIntelIndicator & WithValue(const Aws::String &value)
Definition: ThreatIntelIndicator.h:102
Aws::SecurityHub::Model::ThreatIntelIndicator::SetSourceUrl
void SetSourceUrl(const Aws::String &value)
Definition: ThreatIntelIndicator.h:276
Aws::SecurityHub::Model::ThreatIntelIndicator::SourceHasBeenSet
bool SourceHasBeenSet() const
Definition: ThreatIntelIndicator.h:227
Aws::SecurityHub::Model::ThreatIntelIndicator::SetLastObservedAt
void SetLastObservedAt(const Aws::String &value)
Definition: ThreatIntelIndicator.h:171
ThreatIntelIndicatorCategory.h