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

An instance of a threat intelligence detail that constitutes evidence for the * finding.

See Also:

AWS * API Reference

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

The name of the threat intelligence list that triggered the finding.

*/ inline const Aws::String& GetThreatListName() const{ return m_threatListName; } /** *

The name of the threat intelligence list that triggered the finding.

*/ inline bool ThreatListNameHasBeenSet() const { return m_threatListNameHasBeenSet; } /** *

The name of the threat intelligence list that triggered the finding.

*/ inline void SetThreatListName(const Aws::String& value) { m_threatListNameHasBeenSet = true; m_threatListName = value; } /** *

The name of the threat intelligence list that triggered the finding.

*/ inline void SetThreatListName(Aws::String&& value) { m_threatListNameHasBeenSet = true; m_threatListName = std::move(value); } /** *

The name of the threat intelligence list that triggered the finding.

*/ inline void SetThreatListName(const char* value) { m_threatListNameHasBeenSet = true; m_threatListName.assign(value); } /** *

The name of the threat intelligence list that triggered the finding.

*/ inline ThreatIntelligenceDetail& WithThreatListName(const Aws::String& value) { SetThreatListName(value); return *this;} /** *

The name of the threat intelligence list that triggered the finding.

*/ inline ThreatIntelligenceDetail& WithThreatListName(Aws::String&& value) { SetThreatListName(std::move(value)); return *this;} /** *

The name of the threat intelligence list that triggered the finding.

*/ inline ThreatIntelligenceDetail& WithThreatListName(const char* value) { SetThreatListName(value); return *this;} /** *

A list of names of the threats in the threat intelligence list that triggered * the finding.

*/ inline const Aws::Vector& GetThreatNames() const{ return m_threatNames; } /** *

A list of names of the threats in the threat intelligence list that triggered * the finding.

*/ inline bool ThreatNamesHasBeenSet() const { return m_threatNamesHasBeenSet; } /** *

A list of names of the threats in the threat intelligence list that triggered * the finding.

*/ inline void SetThreatNames(const Aws::Vector& value) { m_threatNamesHasBeenSet = true; m_threatNames = value; } /** *

A list of names of the threats in the threat intelligence list that triggered * the finding.

*/ inline void SetThreatNames(Aws::Vector&& value) { m_threatNamesHasBeenSet = true; m_threatNames = std::move(value); } /** *

A list of names of the threats in the threat intelligence list that triggered * the finding.

*/ inline ThreatIntelligenceDetail& WithThreatNames(const Aws::Vector& value) { SetThreatNames(value); return *this;} /** *

A list of names of the threats in the threat intelligence list that triggered * the finding.

*/ inline ThreatIntelligenceDetail& WithThreatNames(Aws::Vector&& value) { SetThreatNames(std::move(value)); return *this;} /** *

A list of names of the threats in the threat intelligence list that triggered * the finding.

*/ inline ThreatIntelligenceDetail& AddThreatNames(const Aws::String& value) { m_threatNamesHasBeenSet = true; m_threatNames.push_back(value); return *this; } /** *

A list of names of the threats in the threat intelligence list that triggered * the finding.

*/ inline ThreatIntelligenceDetail& AddThreatNames(Aws::String&& value) { m_threatNamesHasBeenSet = true; m_threatNames.push_back(std::move(value)); return *this; } /** *

A list of names of the threats in the threat intelligence list that triggered * the finding.

*/ inline ThreatIntelligenceDetail& AddThreatNames(const char* value) { m_threatNamesHasBeenSet = true; m_threatNames.push_back(value); return *this; } private: Aws::String m_threatListName; bool m_threatListNameHasBeenSet = false; Aws::Vector m_threatNames; bool m_threatNamesHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws