/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Details about the threat intelligence related to a finding.

See * Also:

AWS * API Reference

*/ class ThreatIntelIndicator { public: AWS_SECURITYHUB_API ThreatIntelIndicator(); AWS_SECURITYHUB_API ThreatIntelIndicator(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API ThreatIntelIndicator& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The type of threat intelligence indicator.

*/ inline const ThreatIntelIndicatorType& GetType() const{ return m_type; } /** *

The type of threat intelligence indicator.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of threat intelligence indicator.

*/ inline void SetType(const ThreatIntelIndicatorType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of threat intelligence indicator.

*/ inline void SetType(ThreatIntelIndicatorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of threat intelligence indicator.

*/ inline ThreatIntelIndicator& WithType(const ThreatIntelIndicatorType& value) { SetType(value); return *this;} /** *

The type of threat intelligence indicator.

*/ inline ThreatIntelIndicator& WithType(ThreatIntelIndicatorType&& value) { SetType(std::move(value)); return *this;} /** *

The value of a threat intelligence indicator.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value of a threat intelligence indicator.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of a threat intelligence indicator.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of a threat intelligence indicator.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value of a threat intelligence indicator.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value of a threat intelligence indicator.

*/ inline ThreatIntelIndicator& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The value of a threat intelligence indicator.

*/ inline ThreatIntelIndicator& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value of a threat intelligence indicator.

*/ inline ThreatIntelIndicator& WithValue(const char* value) { SetValue(value); return *this;} /** *

The category of a threat intelligence indicator.

*/ inline const ThreatIntelIndicatorCategory& GetCategory() const{ return m_category; } /** *

The category of a threat intelligence indicator.

*/ inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; } /** *

The category of a threat intelligence indicator.

*/ inline void SetCategory(const ThreatIntelIndicatorCategory& value) { m_categoryHasBeenSet = true; m_category = value; } /** *

The category of a threat intelligence indicator.

*/ inline void SetCategory(ThreatIntelIndicatorCategory&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); } /** *

The category of a threat intelligence indicator.

*/ inline ThreatIntelIndicator& WithCategory(const ThreatIntelIndicatorCategory& value) { SetCategory(value); return *this;} /** *

The category of a threat intelligence indicator.

*/ inline ThreatIntelIndicator& WithCategory(ThreatIntelIndicatorCategory&& value) { SetCategory(std::move(value)); return *this;} /** *

Indicates when the most recent instance of a threat intelligence indicator * was observed.

Uses the date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline const Aws::String& GetLastObservedAt() const{ return m_lastObservedAt; } /** *

Indicates when the most recent instance of a threat intelligence indicator * was observed.

Uses the date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline bool LastObservedAtHasBeenSet() const { return m_lastObservedAtHasBeenSet; } /** *

Indicates when the most recent instance of a threat intelligence indicator * was observed.

Uses the date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetLastObservedAt(const Aws::String& value) { m_lastObservedAtHasBeenSet = true; m_lastObservedAt = value; } /** *

Indicates when the most recent instance of a threat intelligence indicator * was observed.

Uses the date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetLastObservedAt(Aws::String&& value) { m_lastObservedAtHasBeenSet = true; m_lastObservedAt = std::move(value); } /** *

Indicates when the most recent instance of a threat intelligence indicator * was observed.

Uses the date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetLastObservedAt(const char* value) { m_lastObservedAtHasBeenSet = true; m_lastObservedAt.assign(value); } /** *

Indicates when the most recent instance of a threat intelligence indicator * was observed.

Uses the date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline ThreatIntelIndicator& WithLastObservedAt(const Aws::String& value) { SetLastObservedAt(value); return *this;} /** *

Indicates when the most recent instance of a threat intelligence indicator * was observed.

Uses the date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline ThreatIntelIndicator& WithLastObservedAt(Aws::String&& value) { SetLastObservedAt(std::move(value)); return *this;} /** *

Indicates when the most recent instance of a threat intelligence indicator * was observed.

Uses the date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline ThreatIntelIndicator& WithLastObservedAt(const char* value) { SetLastObservedAt(value); return *this;} /** *

The source of the threat intelligence indicator.

*/ inline const Aws::String& GetSource() const{ return m_source; } /** *

The source of the threat intelligence indicator.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The source of the threat intelligence indicator.

*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The source of the threat intelligence indicator.

*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The source of the threat intelligence indicator.

*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *

The source of the threat intelligence indicator.

*/ inline ThreatIntelIndicator& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *

The source of the threat intelligence indicator.

*/ inline ThreatIntelIndicator& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *

The source of the threat intelligence indicator.

*/ inline ThreatIntelIndicator& WithSource(const char* value) { SetSource(value); return *this;} /** *

The URL to the page or site where you can get more information about the * threat intelligence indicator.

*/ inline const Aws::String& GetSourceUrl() const{ return m_sourceUrl; } /** *

The URL to the page or site where you can get more information about the * threat intelligence indicator.

*/ inline bool SourceUrlHasBeenSet() const { return m_sourceUrlHasBeenSet; } /** *

The URL to the page or site where you can get more information about the * threat intelligence indicator.

*/ inline void SetSourceUrl(const Aws::String& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = value; } /** *

The URL to the page or site where you can get more information about the * threat intelligence indicator.

*/ inline void SetSourceUrl(Aws::String&& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = std::move(value); } /** *

The URL to the page or site where you can get more information about the * threat intelligence indicator.

*/ inline void SetSourceUrl(const char* value) { m_sourceUrlHasBeenSet = true; m_sourceUrl.assign(value); } /** *

The URL to the page or site where you can get more information about the * threat intelligence indicator.

*/ inline ThreatIntelIndicator& WithSourceUrl(const Aws::String& value) { SetSourceUrl(value); return *this;} /** *

The URL to the page or site where you can get more information about the * threat intelligence indicator.

*/ inline ThreatIntelIndicator& WithSourceUrl(Aws::String&& value) { SetSourceUrl(std::move(value)); return *this;} /** *

The URL to the page or site where you can get more information about the * threat intelligence indicator.

*/ inline ThreatIntelIndicator& WithSourceUrl(const char* value) { SetSourceUrl(value); return *this;} private: ThreatIntelIndicatorType m_type; bool m_typeHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; ThreatIntelIndicatorCategory m_category; bool m_categoryHasBeenSet = false; Aws::String m_lastObservedAt; bool m_lastObservedAtHasBeenSet = false; Aws::String m_source; bool m_sourceHasBeenSet = false; Aws::String m_sourceUrl; bool m_sourceUrlHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws