AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ThreatIntelIndicatorType& GetType() const{ return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(const ThreatIntelIndicatorType& value) { m_typeHasBeenSet = true; m_type = value; }
50 inline void SetType(ThreatIntelIndicatorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
51 inline ThreatIntelIndicator& WithType(const ThreatIntelIndicatorType& value) { SetType(value); return *this;}
52 inline ThreatIntelIndicator& WithType(ThreatIntelIndicatorType&& value) { SetType(std::move(value)); return *this;}
54
56
60 inline const Aws::String& GetValue() const{ return m_value; }
61 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
62 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
63 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
64 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
65 inline ThreatIntelIndicator& WithValue(const Aws::String& value) { SetValue(value); return *this;}
66 inline ThreatIntelIndicator& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
67 inline ThreatIntelIndicator& WithValue(const char* value) { SetValue(value); return *this;}
69
71
74 inline const ThreatIntelIndicatorCategory& GetCategory() const{ return m_category; }
75 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
76 inline void SetCategory(const ThreatIntelIndicatorCategory& value) { m_categoryHasBeenSet = true; m_category = value; }
77 inline void SetCategory(ThreatIntelIndicatorCategory&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
78 inline ThreatIntelIndicator& WithCategory(const ThreatIntelIndicatorCategory& value) { SetCategory(value); return *this;}
79 inline ThreatIntelIndicator& WithCategory(ThreatIntelIndicatorCategory&& value) { SetCategory(std::move(value)); return *this;}
81
83
100 inline const Aws::String& GetLastObservedAt() const{ return m_lastObservedAt; }
101 inline bool LastObservedAtHasBeenSet() const { return m_lastObservedAtHasBeenSet; }
102 inline void SetLastObservedAt(const Aws::String& value) { m_lastObservedAtHasBeenSet = true; m_lastObservedAt = value; }
103 inline void SetLastObservedAt(Aws::String&& value) { m_lastObservedAtHasBeenSet = true; m_lastObservedAt = std::move(value); }
104 inline void SetLastObservedAt(const char* value) { m_lastObservedAtHasBeenSet = true; m_lastObservedAt.assign(value); }
105 inline ThreatIntelIndicator& WithLastObservedAt(const Aws::String& value) { SetLastObservedAt(value); return *this;}
106 inline ThreatIntelIndicator& WithLastObservedAt(Aws::String&& value) { SetLastObservedAt(std::move(value)); return *this;}
107 inline ThreatIntelIndicator& WithLastObservedAt(const char* value) { SetLastObservedAt(value); return *this;}
109
111
115 inline const Aws::String& GetSource() const{ return m_source; }
116 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
117 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
118 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
119 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
120 inline ThreatIntelIndicator& WithSource(const Aws::String& value) { SetSource(value); return *this;}
121 inline ThreatIntelIndicator& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
122 inline ThreatIntelIndicator& WithSource(const char* value) { SetSource(value); return *this;}
124
126
130 inline const Aws::String& GetSourceUrl() const{ return m_sourceUrl; }
131 inline bool SourceUrlHasBeenSet() const { return m_sourceUrlHasBeenSet; }
132 inline void SetSourceUrl(const Aws::String& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = value; }
133 inline void SetSourceUrl(Aws::String&& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = std::move(value); }
134 inline void SetSourceUrl(const char* value) { m_sourceUrlHasBeenSet = true; m_sourceUrl.assign(value); }
135 inline ThreatIntelIndicator& WithSourceUrl(const Aws::String& value) { SetSourceUrl(value); return *this;}
136 inline ThreatIntelIndicator& WithSourceUrl(Aws::String&& value) { SetSourceUrl(std::move(value)); return *this;}
137 inline ThreatIntelIndicator& WithSourceUrl(const char* value) { SetSourceUrl(value); return *this;}
139 private:
140
142 bool m_typeHasBeenSet = false;
143
144 Aws::String m_value;
145 bool m_valueHasBeenSet = false;
146
148 bool m_categoryHasBeenSet = false;
149
150 Aws::String m_lastObservedAt;
151 bool m_lastObservedAtHasBeenSet = false;
152
153 Aws::String m_source;
154 bool m_sourceHasBeenSet = false;
155
156 Aws::String m_sourceUrl;
157 bool m_sourceUrlHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace SecurityHub
162} // namespace Aws
ThreatIntelIndicator & WithLastObservedAt(const Aws::String &value)
ThreatIntelIndicator & WithType(const ThreatIntelIndicatorType &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API ThreatIntelIndicator(Aws::Utils::Json::JsonView jsonValue)
const ThreatIntelIndicatorCategory & GetCategory() const
void SetType(ThreatIntelIndicatorType &&value)
ThreatIntelIndicator & WithSourceUrl(Aws::String &&value)
void SetCategory(const ThreatIntelIndicatorCategory &value)
void SetType(const ThreatIntelIndicatorType &value)
ThreatIntelIndicator & WithLastObservedAt(const char *value)
void SetCategory(ThreatIntelIndicatorCategory &&value)
ThreatIntelIndicator & WithCategory(const ThreatIntelIndicatorCategory &value)
ThreatIntelIndicator & WithSourceUrl(const Aws::String &value)
ThreatIntelIndicator & WithCategory(ThreatIntelIndicatorCategory &&value)
ThreatIntelIndicator & WithLastObservedAt(Aws::String &&value)
ThreatIntelIndicator & WithSource(const char *value)
ThreatIntelIndicator & WithSource(Aws::String &&value)
ThreatIntelIndicator & WithValue(Aws::String &&value)
ThreatIntelIndicator & WithValue(const char *value)
ThreatIntelIndicator & WithValue(const Aws::String &value)
const ThreatIntelIndicatorType & GetType() const
ThreatIntelIndicator & WithSourceUrl(const char *value)
ThreatIntelIndicator & WithType(ThreatIntelIndicatorType &&value)
ThreatIntelIndicator & WithSource(const Aws::String &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