/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about the threat detected in a security finding and the
* file paths that were affected by the threat. See Also:
AWS
* API Reference
The name of the threat.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the threat.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the threat.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the threat.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the threat.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the threat.
*/ inline Threat& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the threat.
*/ inline Threat& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the threat.
*/ inline Threat& WithName(const char* value) { SetName(value); return *this;} /** *The severity of the threat.
*/ inline const Aws::String& GetSeverity() const{ return m_severity; } /** *The severity of the threat.
*/ inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; } /** *The severity of the threat.
*/ inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; } /** *The severity of the threat.
*/ inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); } /** *The severity of the threat.
*/ inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); } /** *The severity of the threat.
*/ inline Threat& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;} /** *The severity of the threat.
*/ inline Threat& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;} /** *The severity of the threat.
*/ inline Threat& WithSeverity(const char* value) { SetSeverity(value); return *this;} /** *This total number of items in which the threat has been detected.
*/ inline int GetItemCount() const{ return m_itemCount; } /** *This total number of items in which the threat has been detected.
*/ inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; } /** *This total number of items in which the threat has been detected.
*/ inline void SetItemCount(int value) { m_itemCountHasBeenSet = true; m_itemCount = value; } /** *This total number of items in which the threat has been detected.
*/ inline Threat& WithItemCount(int value) { SetItemCount(value); return *this;} /** *Provides information about the file paths that were affected by the threat. *
*/ inline const Aws::VectorProvides information about the file paths that were affected by the threat. *
*/ inline bool FilePathsHasBeenSet() const { return m_filePathsHasBeenSet; } /** *Provides information about the file paths that were affected by the threat. *
*/ inline void SetFilePaths(const Aws::VectorProvides information about the file paths that were affected by the threat. *
*/ inline void SetFilePaths(Aws::VectorProvides information about the file paths that were affected by the threat. *
*/ inline Threat& WithFilePaths(const Aws::VectorProvides information about the file paths that were affected by the threat. *
*/ inline Threat& WithFilePaths(Aws::VectorProvides information about the file paths that were affected by the threat. *
*/ inline Threat& AddFilePaths(const FilePaths& value) { m_filePathsHasBeenSet = true; m_filePaths.push_back(value); return *this; } /** *Provides information about the file paths that were affected by the threat. *
*/ inline Threat& AddFilePaths(FilePaths&& value) { m_filePathsHasBeenSet = true; m_filePaths.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_severity; bool m_severityHasBeenSet = false; int m_itemCount; bool m_itemCountHasBeenSet = false; Aws::Vector