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

Provides information about the file paths that were affected by the threat. *

See Also:

AWS * API Reference

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

Path to the infected or suspicious file on the resource it was detected on. *

*/ inline const Aws::String& GetFilePath() const{ return m_filePath; } /** *

Path to the infected or suspicious file on the resource it was detected on. *

*/ inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; } /** *

Path to the infected or suspicious file on the resource it was detected on. *

*/ inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; } /** *

Path to the infected or suspicious file on the resource it was detected on. *

*/ inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); } /** *

Path to the infected or suspicious file on the resource it was detected on. *

*/ inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); } /** *

Path to the infected or suspicious file on the resource it was detected on. *

*/ inline FilePaths& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;} /** *

Path to the infected or suspicious file on the resource it was detected on. *

*/ inline FilePaths& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;} /** *

Path to the infected or suspicious file on the resource it was detected on. *

*/ inline FilePaths& WithFilePath(const char* value) { SetFilePath(value); return *this;} /** *

The name of the infected or suspicious file corresponding to the hash.

*/ inline const Aws::String& GetFileName() const{ return m_fileName; } /** *

The name of the infected or suspicious file corresponding to the hash.

*/ inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; } /** *

The name of the infected or suspicious file corresponding to the hash.

*/ inline void SetFileName(const Aws::String& value) { m_fileNameHasBeenSet = true; m_fileName = value; } /** *

The name of the infected or suspicious file corresponding to the hash.

*/ inline void SetFileName(Aws::String&& value) { m_fileNameHasBeenSet = true; m_fileName = std::move(value); } /** *

The name of the infected or suspicious file corresponding to the hash.

*/ inline void SetFileName(const char* value) { m_fileNameHasBeenSet = true; m_fileName.assign(value); } /** *

The name of the infected or suspicious file corresponding to the hash.

*/ inline FilePaths& WithFileName(const Aws::String& value) { SetFileName(value); return *this;} /** *

The name of the infected or suspicious file corresponding to the hash.

*/ inline FilePaths& WithFileName(Aws::String&& value) { SetFileName(std::move(value)); return *this;} /** *

The name of the infected or suspicious file corresponding to the hash.

*/ inline FilePaths& WithFileName(const char* value) { SetFileName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the resource on which the threat was * detected.

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The Amazon Resource Name (ARN) of the resource on which the threat was * detected.

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the resource on which the threat was * detected.

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The Amazon Resource Name (ARN) of the resource on which the threat was * detected.

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The Amazon Resource Name (ARN) of the resource on which the threat was * detected.

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The Amazon Resource Name (ARN) of the resource on which the threat was * detected.

*/ inline FilePaths& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the resource on which the threat was * detected.

*/ inline FilePaths& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the resource on which the threat was * detected.

*/ inline FilePaths& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *

The hash value for the infected or suspicious file.

*/ inline const Aws::String& GetHash() const{ return m_hash; } /** *

The hash value for the infected or suspicious file.

*/ inline bool HashHasBeenSet() const { return m_hashHasBeenSet; } /** *

The hash value for the infected or suspicious file.

*/ inline void SetHash(const Aws::String& value) { m_hashHasBeenSet = true; m_hash = value; } /** *

The hash value for the infected or suspicious file.

*/ inline void SetHash(Aws::String&& value) { m_hashHasBeenSet = true; m_hash = std::move(value); } /** *

The hash value for the infected or suspicious file.

*/ inline void SetHash(const char* value) { m_hashHasBeenSet = true; m_hash.assign(value); } /** *

The hash value for the infected or suspicious file.

*/ inline FilePaths& WithHash(const Aws::String& value) { SetHash(value); return *this;} /** *

The hash value for the infected or suspicious file.

*/ inline FilePaths& WithHash(Aws::String&& value) { SetHash(std::move(value)); return *this;} /** *

The hash value for the infected or suspicious file.

*/ inline FilePaths& WithHash(const char* value) { SetHash(value); return *this;} private: Aws::String m_filePath; bool m_filePathHasBeenSet = false; Aws::String m_fileName; bool m_fileNameHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; Aws::String m_hash; bool m_hashHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws