/** * 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 Macie2 { namespace Model { /** *

Provides information about a sensitive data finding and the details of the * finding.

See Also:

AWS * API Reference

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

The path to the folder or file in Amazon S3 that contains the corresponding * sensitive data discovery result for the finding. If a finding applies to a large * archive or compressed file, this value is the path to a folder. Otherwise, this * value is the path to a file.

*/ inline const Aws::String& GetDetailedResultsLocation() const{ return m_detailedResultsLocation; } /** *

The path to the folder or file in Amazon S3 that contains the corresponding * sensitive data discovery result for the finding. If a finding applies to a large * archive or compressed file, this value is the path to a folder. Otherwise, this * value is the path to a file.

*/ inline bool DetailedResultsLocationHasBeenSet() const { return m_detailedResultsLocationHasBeenSet; } /** *

The path to the folder or file in Amazon S3 that contains the corresponding * sensitive data discovery result for the finding. If a finding applies to a large * archive or compressed file, this value is the path to a folder. Otherwise, this * value is the path to a file.

*/ inline void SetDetailedResultsLocation(const Aws::String& value) { m_detailedResultsLocationHasBeenSet = true; m_detailedResultsLocation = value; } /** *

The path to the folder or file in Amazon S3 that contains the corresponding * sensitive data discovery result for the finding. If a finding applies to a large * archive or compressed file, this value is the path to a folder. Otherwise, this * value is the path to a file.

*/ inline void SetDetailedResultsLocation(Aws::String&& value) { m_detailedResultsLocationHasBeenSet = true; m_detailedResultsLocation = std::move(value); } /** *

The path to the folder or file in Amazon S3 that contains the corresponding * sensitive data discovery result for the finding. If a finding applies to a large * archive or compressed file, this value is the path to a folder. Otherwise, this * value is the path to a file.

*/ inline void SetDetailedResultsLocation(const char* value) { m_detailedResultsLocationHasBeenSet = true; m_detailedResultsLocation.assign(value); } /** *

The path to the folder or file in Amazon S3 that contains the corresponding * sensitive data discovery result for the finding. If a finding applies to a large * archive or compressed file, this value is the path to a folder. Otherwise, this * value is the path to a file.

*/ inline ClassificationDetails& WithDetailedResultsLocation(const Aws::String& value) { SetDetailedResultsLocation(value); return *this;} /** *

The path to the folder or file in Amazon S3 that contains the corresponding * sensitive data discovery result for the finding. If a finding applies to a large * archive or compressed file, this value is the path to a folder. Otherwise, this * value is the path to a file.

*/ inline ClassificationDetails& WithDetailedResultsLocation(Aws::String&& value) { SetDetailedResultsLocation(std::move(value)); return *this;} /** *

The path to the folder or file in Amazon S3 that contains the corresponding * sensitive data discovery result for the finding. If a finding applies to a large * archive or compressed file, this value is the path to a folder. Otherwise, this * value is the path to a file.

*/ inline ClassificationDetails& WithDetailedResultsLocation(const char* value) { SetDetailedResultsLocation(value); return *this;} /** *

The Amazon Resource Name (ARN) of the classification job that produced the * finding. This value is null if the origin of the finding (originType) is * AUTOMATED_SENSITIVE_DATA_DISCOVERY.

*/ inline const Aws::String& GetJobArn() const{ return m_jobArn; } /** *

The Amazon Resource Name (ARN) of the classification job that produced the * finding. This value is null if the origin of the finding (originType) is * AUTOMATED_SENSITIVE_DATA_DISCOVERY.

*/ inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the classification job that produced the * finding. This value is null if the origin of the finding (originType) is * AUTOMATED_SENSITIVE_DATA_DISCOVERY.

*/ inline void SetJobArn(const Aws::String& value) { m_jobArnHasBeenSet = true; m_jobArn = value; } /** *

The Amazon Resource Name (ARN) of the classification job that produced the * finding. This value is null if the origin of the finding (originType) is * AUTOMATED_SENSITIVE_DATA_DISCOVERY.

*/ inline void SetJobArn(Aws::String&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the classification job that produced the * finding. This value is null if the origin of the finding (originType) is * AUTOMATED_SENSITIVE_DATA_DISCOVERY.

*/ inline void SetJobArn(const char* value) { m_jobArnHasBeenSet = true; m_jobArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the classification job that produced the * finding. This value is null if the origin of the finding (originType) is * AUTOMATED_SENSITIVE_DATA_DISCOVERY.

*/ inline ClassificationDetails& WithJobArn(const Aws::String& value) { SetJobArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the classification job that produced the * finding. This value is null if the origin of the finding (originType) is * AUTOMATED_SENSITIVE_DATA_DISCOVERY.

*/ inline ClassificationDetails& WithJobArn(Aws::String&& value) { SetJobArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the classification job that produced the * finding. This value is null if the origin of the finding (originType) is * AUTOMATED_SENSITIVE_DATA_DISCOVERY.

*/ inline ClassificationDetails& WithJobArn(const char* value) { SetJobArn(value); return *this;} /** *

The unique identifier for the classification job that produced the finding. * This value is null if the origin of the finding (originType) is * AUTOMATED_SENSITIVE_DATA_DISCOVERY.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

The unique identifier for the classification job that produced the finding. * This value is null if the origin of the finding (originType) is * AUTOMATED_SENSITIVE_DATA_DISCOVERY.

*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *

The unique identifier for the classification job that produced the finding. * This value is null if the origin of the finding (originType) is * AUTOMATED_SENSITIVE_DATA_DISCOVERY.

*/ inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } /** *

The unique identifier for the classification job that produced the finding. * This value is null if the origin of the finding (originType) is * AUTOMATED_SENSITIVE_DATA_DISCOVERY.

*/ inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } /** *

The unique identifier for the classification job that produced the finding. * This value is null if the origin of the finding (originType) is * AUTOMATED_SENSITIVE_DATA_DISCOVERY.

*/ inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } /** *

The unique identifier for the classification job that produced the finding. * This value is null if the origin of the finding (originType) is * AUTOMATED_SENSITIVE_DATA_DISCOVERY.

*/ inline ClassificationDetails& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

The unique identifier for the classification job that produced the finding. * This value is null if the origin of the finding (originType) is * AUTOMATED_SENSITIVE_DATA_DISCOVERY.

*/ inline ClassificationDetails& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

The unique identifier for the classification job that produced the finding. * This value is null if the origin of the finding (originType) is * AUTOMATED_SENSITIVE_DATA_DISCOVERY.

*/ inline ClassificationDetails& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

Specifies how Amazon Macie found the sensitive data that produced the * finding. Possible values are: SENSITIVE_DATA_DISCOVERY_JOB, for a classification * job; and, AUTOMATED_SENSITIVE_DATA_DISCOVERY, for automated sensitive data * discovery.

*/ inline const OriginType& GetOriginType() const{ return m_originType; } /** *

Specifies how Amazon Macie found the sensitive data that produced the * finding. Possible values are: SENSITIVE_DATA_DISCOVERY_JOB, for a classification * job; and, AUTOMATED_SENSITIVE_DATA_DISCOVERY, for automated sensitive data * discovery.

*/ inline bool OriginTypeHasBeenSet() const { return m_originTypeHasBeenSet; } /** *

Specifies how Amazon Macie found the sensitive data that produced the * finding. Possible values are: SENSITIVE_DATA_DISCOVERY_JOB, for a classification * job; and, AUTOMATED_SENSITIVE_DATA_DISCOVERY, for automated sensitive data * discovery.

*/ inline void SetOriginType(const OriginType& value) { m_originTypeHasBeenSet = true; m_originType = value; } /** *

Specifies how Amazon Macie found the sensitive data that produced the * finding. Possible values are: SENSITIVE_DATA_DISCOVERY_JOB, for a classification * job; and, AUTOMATED_SENSITIVE_DATA_DISCOVERY, for automated sensitive data * discovery.

*/ inline void SetOriginType(OriginType&& value) { m_originTypeHasBeenSet = true; m_originType = std::move(value); } /** *

Specifies how Amazon Macie found the sensitive data that produced the * finding. Possible values are: SENSITIVE_DATA_DISCOVERY_JOB, for a classification * job; and, AUTOMATED_SENSITIVE_DATA_DISCOVERY, for automated sensitive data * discovery.

*/ inline ClassificationDetails& WithOriginType(const OriginType& value) { SetOriginType(value); return *this;} /** *

Specifies how Amazon Macie found the sensitive data that produced the * finding. Possible values are: SENSITIVE_DATA_DISCOVERY_JOB, for a classification * job; and, AUTOMATED_SENSITIVE_DATA_DISCOVERY, for automated sensitive data * discovery.

*/ inline ClassificationDetails& WithOriginType(OriginType&& value) { SetOriginType(std::move(value)); return *this;} /** *

The status and other details of the finding.

*/ inline const ClassificationResult& GetResult() const{ return m_result; } /** *

The status and other details of the finding.

*/ inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; } /** *

The status and other details of the finding.

*/ inline void SetResult(const ClassificationResult& value) { m_resultHasBeenSet = true; m_result = value; } /** *

The status and other details of the finding.

*/ inline void SetResult(ClassificationResult&& value) { m_resultHasBeenSet = true; m_result = std::move(value); } /** *

The status and other details of the finding.

*/ inline ClassificationDetails& WithResult(const ClassificationResult& value) { SetResult(value); return *this;} /** *

The status and other details of the finding.

*/ inline ClassificationDetails& WithResult(ClassificationResult&& value) { SetResult(std::move(value)); return *this;} private: Aws::String m_detailedResultsLocation; bool m_detailedResultsLocationHasBeenSet = false; Aws::String m_jobArn; bool m_jobArnHasBeenSet = false; Aws::String m_jobId; bool m_jobIdHasBeenSet = false; OriginType m_originType; bool m_originTypeHasBeenSet = false; ClassificationResult m_result; bool m_resultHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws