AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ThreatIntelIndicator.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/ThreatIntelIndicatorType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/model/ThreatIntelIndicatorCategory.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SECURITYHUB_API ThreatIntelIndicator() = default;
38 AWS_SECURITYHUB_API ThreatIntelIndicator(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline ThreatIntelIndicatorType GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(ThreatIntelIndicatorType value) { m_typeHasBeenSet = true; m_type = value; }
50 inline ThreatIntelIndicator& WithType(ThreatIntelIndicatorType value) { SetType(value); return *this;}
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) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
62 template<typename ValueT = Aws::String>
63 ThreatIntelIndicator& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
65
67
70 inline ThreatIntelIndicatorCategory GetCategory() const { return m_category; }
71 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
72 inline void SetCategory(ThreatIntelIndicatorCategory value) { m_categoryHasBeenSet = true; m_category = value; }
75
77
83 inline const Aws::String& GetLastObservedAt() const { return m_lastObservedAt; }
84 inline bool LastObservedAtHasBeenSet() const { return m_lastObservedAtHasBeenSet; }
85 template<typename LastObservedAtT = Aws::String>
86 void SetLastObservedAt(LastObservedAtT&& value) { m_lastObservedAtHasBeenSet = true; m_lastObservedAt = std::forward<LastObservedAtT>(value); }
87 template<typename LastObservedAtT = Aws::String>
88 ThreatIntelIndicator& WithLastObservedAt(LastObservedAtT&& value) { SetLastObservedAt(std::forward<LastObservedAtT>(value)); return *this;}
90
92
96 inline const Aws::String& GetSource() const { return m_source; }
97 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
98 template<typename SourceT = Aws::String>
99 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
100 template<typename SourceT = Aws::String>
101 ThreatIntelIndicator& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
103
105
109 inline const Aws::String& GetSourceUrl() const { return m_sourceUrl; }
110 inline bool SourceUrlHasBeenSet() const { return m_sourceUrlHasBeenSet; }
111 template<typename SourceUrlT = Aws::String>
112 void SetSourceUrl(SourceUrlT&& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = std::forward<SourceUrlT>(value); }
113 template<typename SourceUrlT = Aws::String>
114 ThreatIntelIndicator& WithSourceUrl(SourceUrlT&& value) { SetSourceUrl(std::forward<SourceUrlT>(value)); return *this;}
116 private:
117
119 bool m_typeHasBeenSet = false;
120
121 Aws::String m_value;
122 bool m_valueHasBeenSet = false;
123
125 bool m_categoryHasBeenSet = false;
126
127 Aws::String m_lastObservedAt;
128 bool m_lastObservedAtHasBeenSet = false;
129
130 Aws::String m_source;
131 bool m_sourceHasBeenSet = false;
132
133 Aws::String m_sourceUrl;
134 bool m_sourceUrlHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace SecurityHub
139} // 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