/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.macie2.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetSensitiveDataOccurrencesAvailabilityResult extends com.amazonaws.AmazonWebServiceResult
* Specifies whether occurrences of sensitive data can be retrieved for the finding. Possible values are: AVAILABLE,
* the sensitive data can be retrieved; and, UNAVAILABLE, the sensitive data can't be retrieved. If this value is
* UNAVAILABLE, the reasons array indicates why the data can't be retrieved.
*
* Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are:
*
* INVALID_CLASSIFICATION_RESULT - Amazon Macie can't verify the location of the sensitive data to retrieve. There
* isn't a corresponding sensitive data discovery result for the finding. Or the sensitive data discovery result
* specified by the classificationDetails.detailedResultsLocation field of the finding isn't available, is malformed
* or corrupted, or uses an unsupported storage format.
*
* OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving
* occurrences of sensitive data.
*
* OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object might have been renamed, moved, or
* deleted. Or the object was changed after Macie created the finding.
*
* UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data finding.
*
* UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a file or storage format that Macie doesn't support for
* retrieving occurrences of sensitive data.
*
* This value is null if sensitive data can be retrieved for the finding.
*
* Specifies whether occurrences of sensitive data can be retrieved for the finding. Possible values are: AVAILABLE,
* the sensitive data can be retrieved; and, UNAVAILABLE, the sensitive data can't be retrieved. If this value is
* UNAVAILABLE, the reasons array indicates why the data can't be retrieved.
*
* Specifies whether occurrences of sensitive data can be retrieved for the finding. Possible values are: AVAILABLE,
* the sensitive data can be retrieved; and, UNAVAILABLE, the sensitive data can't be retrieved. If this value is
* UNAVAILABLE, the reasons array indicates why the data can't be retrieved.
*
* Specifies whether occurrences of sensitive data can be retrieved for the finding. Possible values are: AVAILABLE,
* the sensitive data can be retrieved; and, UNAVAILABLE, the sensitive data can't be retrieved. If this value is
* UNAVAILABLE, the reasons array indicates why the data can't be retrieved.
*
* Specifies whether occurrences of sensitive data can be retrieved for the finding. Possible values are: AVAILABLE,
* the sensitive data can be retrieved; and, UNAVAILABLE, the sensitive data can't be retrieved. If this value is
* UNAVAILABLE, the reasons array indicates why the data can't be retrieved.
*
* Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are:
*
* INVALID_CLASSIFICATION_RESULT - Amazon Macie can't verify the location of the sensitive data to retrieve. There
* isn't a corresponding sensitive data discovery result for the finding. Or the sensitive data discovery result
* specified by the classificationDetails.detailedResultsLocation field of the finding isn't available, is malformed
* or corrupted, or uses an unsupported storage format.
*
* OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving
* occurrences of sensitive data.
*
* OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object might have been renamed, moved, or
* deleted. Or the object was changed after Macie created the finding.
*
* UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data finding.
*
* UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a file or storage format that Macie doesn't support for
* retrieving occurrences of sensitive data.
*
* This value is null if sensitive data can be retrieved for the finding.
*
*
*
*
*
* INVALID_CLASSIFICATION_RESULT - Amazon Macie can't verify the location of the sensitive data to retrieve. * There isn't a corresponding sensitive data discovery result for the finding. Or the sensitive data * discovery result specified by the classificationDetails.detailedResultsLocation field of the finding * isn't available, is malformed or corrupted, or uses an unsupported storage format. *
** OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for * retrieving occurrences of sensitive data. *
** OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object might have been renamed, moved, * or deleted. Or the object was changed after Macie created the finding. *
** UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data finding. *
** UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a file or storage format that Macie doesn't support * for retrieving occurrences of sensitive data. *
*
* This value is null if sensitive data can be retrieved for the finding.
* @see UnavailabilityReasonCode
*/
public java.util.List
* Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are:
*
* INVALID_CLASSIFICATION_RESULT - Amazon Macie can't verify the location of the sensitive data to retrieve. There
* isn't a corresponding sensitive data discovery result for the finding. Or the sensitive data discovery result
* specified by the classificationDetails.detailedResultsLocation field of the finding isn't available, is malformed
* or corrupted, or uses an unsupported storage format.
*
* OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving
* occurrences of sensitive data.
*
* OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object might have been renamed, moved, or
* deleted. Or the object was changed after Macie created the finding.
*
* UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data finding.
*
* UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a file or storage format that Macie doesn't support for
* retrieving occurrences of sensitive data.
*
* This value is null if sensitive data can be retrieved for the finding.
*
*
*
* INVALID_CLASSIFICATION_RESULT - Amazon Macie can't verify the location of the sensitive data to retrieve. * There isn't a corresponding sensitive data discovery result for the finding. Or the sensitive data * discovery result specified by the classificationDetails.detailedResultsLocation field of the finding isn't * available, is malformed or corrupted, or uses an unsupported storage format. *
** OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for * retrieving occurrences of sensitive data. *
** OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object might have been renamed, moved, or * deleted. Or the object was changed after Macie created the finding. *
** UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data finding. *
** UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a file or storage format that Macie doesn't support * for retrieving occurrences of sensitive data. *
*
* This value is null if sensitive data can be retrieved for the finding.
* @see UnavailabilityReasonCode
*/
public void setReasons(java.util.Collection
* Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are:
*
* INVALID_CLASSIFICATION_RESULT - Amazon Macie can't verify the location of the sensitive data to retrieve. There
* isn't a corresponding sensitive data discovery result for the finding. Or the sensitive data discovery result
* specified by the classificationDetails.detailedResultsLocation field of the finding isn't available, is malformed
* or corrupted, or uses an unsupported storage format.
*
* OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving
* occurrences of sensitive data.
*
* OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object might have been renamed, moved, or
* deleted. Or the object was changed after Macie created the finding.
*
* UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data finding.
*
* UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a file or storage format that Macie doesn't support for
* retrieving occurrences of sensitive data.
*
* This value is null if sensitive data can be retrieved for the finding.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setReasons(java.util.Collection)} or {@link #withReasons(java.util.Collection)} if you want to override
* the existing values.
*
*
*
* INVALID_CLASSIFICATION_RESULT - Amazon Macie can't verify the location of the sensitive data to retrieve. * There isn't a corresponding sensitive data discovery result for the finding. Or the sensitive data * discovery result specified by the classificationDetails.detailedResultsLocation field of the finding isn't * available, is malformed or corrupted, or uses an unsupported storage format. *
** OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for * retrieving occurrences of sensitive data. *
** OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object might have been renamed, moved, or * deleted. Or the object was changed after Macie created the finding. *
** UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data finding. *
** UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a file or storage format that Macie doesn't support * for retrieving occurrences of sensitive data. *
*
* This value is null if sensitive data can be retrieved for the finding.
* @return Returns a reference to this object so that method calls can be chained together.
* @see UnavailabilityReasonCode
*/
public GetSensitiveDataOccurrencesAvailabilityResult withReasons(String... reasons) {
if (this.reasons == null) {
setReasons(new java.util.ArrayList
* Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are:
*
* INVALID_CLASSIFICATION_RESULT - Amazon Macie can't verify the location of the sensitive data to retrieve. There
* isn't a corresponding sensitive data discovery result for the finding. Or the sensitive data discovery result
* specified by the classificationDetails.detailedResultsLocation field of the finding isn't available, is malformed
* or corrupted, or uses an unsupported storage format.
*
* OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving
* occurrences of sensitive data.
*
* OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object might have been renamed, moved, or
* deleted. Or the object was changed after Macie created the finding.
*
* UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data finding.
*
* UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a file or storage format that Macie doesn't support for
* retrieving occurrences of sensitive data.
*
* This value is null if sensitive data can be retrieved for the finding.
*
*
*
* INVALID_CLASSIFICATION_RESULT - Amazon Macie can't verify the location of the sensitive data to retrieve. * There isn't a corresponding sensitive data discovery result for the finding. Or the sensitive data * discovery result specified by the classificationDetails.detailedResultsLocation field of the finding isn't * available, is malformed or corrupted, or uses an unsupported storage format. *
** OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for * retrieving occurrences of sensitive data. *
** OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object might have been renamed, moved, or * deleted. Or the object was changed after Macie created the finding. *
** UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data finding. *
** UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a file or storage format that Macie doesn't support * for retrieving occurrences of sensitive data. *
*
* This value is null if sensitive data can be retrieved for the finding.
* @return Returns a reference to this object so that method calls can be chained together.
* @see UnavailabilityReasonCode
*/
public GetSensitiveDataOccurrencesAvailabilityResult withReasons(java.util.Collection
* Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are:
*
* INVALID_CLASSIFICATION_RESULT - Amazon Macie can't verify the location of the sensitive data to retrieve. There
* isn't a corresponding sensitive data discovery result for the finding. Or the sensitive data discovery result
* specified by the classificationDetails.detailedResultsLocation field of the finding isn't available, is malformed
* or corrupted, or uses an unsupported storage format.
*
* OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving
* occurrences of sensitive data.
*
* OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object might have been renamed, moved, or
* deleted. Or the object was changed after Macie created the finding.
*
* UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data finding.
*
* UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a file or storage format that Macie doesn't support for
* retrieving occurrences of sensitive data.
*
* This value is null if sensitive data can be retrieved for the finding.
*
*
*
* INVALID_CLASSIFICATION_RESULT - Amazon Macie can't verify the location of the sensitive data to retrieve. * There isn't a corresponding sensitive data discovery result for the finding. Or the sensitive data * discovery result specified by the classificationDetails.detailedResultsLocation field of the finding isn't * available, is malformed or corrupted, or uses an unsupported storage format. *
** OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for * retrieving occurrences of sensitive data. *
** OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object might have been renamed, moved, or * deleted. Or the object was changed after Macie created the finding. *
** UNSUPPORTED_FINDING_TYPE - The specified finding isn't a sensitive data finding. *
** UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a file or storage format that Macie doesn't support * for retrieving occurrences of sensitive data. *
*
* This value is null if sensitive data can be retrieved for the finding.
* @return Returns a reference to this object so that method calls can be chained together.
* @see UnavailabilityReasonCode
*/
public GetSensitiveDataOccurrencesAvailabilityResult withReasons(UnavailabilityReasonCode... reasons) {
java.util.ArrayList