All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.macie2.model.GetSensitiveDataOccurrencesAvailabilityResult Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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 implements
        Serializable, Cloneable {

    /**
     * 

* 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. *

*/ private String code; /** *

* Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are: *

*
    *
  • *

    * ACCOUNT_NOT_IN_ORGANIZATION - The affected account isn't currently part of your organization. Or the account is * part of your organization but Macie isn't currently enabled for the account. You're not allowed to access the * affected S3 object by using Macie. *

    *
  • *
  • *

    * INVALID_CLASSIFICATION_RESULT - There isn't a corresponding sensitive data discovery result for the finding. Or * the corresponding sensitive data discovery result isn't available in the current Amazon Web Services Region, is * malformed or corrupted, or uses an unsupported storage format. Macie can't verify the location of the sensitive * data to retrieve. *

    *
  • *
  • *

    * INVALID_RESULT_SIGNATURE - The corresponding sensitive data discovery result is stored in an S3 object that * wasn't signed by Macie. Macie can't verify the integrity and authenticity of the sensitive data discovery result. * Therefore, Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * MEMBER_ROLE_TOO_PERMISSIVE - The trust or permissions policy for the IAM role in the affected member account * doesn't meet Macie requirements for restricting access to the role. Or the role's trust policy doesn't specify * the correct external ID for your organization. Macie can't assume the role to retrieve the sensitive data. *

    *
  • *
  • *

    * MISSING_GET_MEMBER_PERMISSION - You're not allowed to retrieve information about the association between your * account and the affected account. Macie can't determine whether you’re allowed to access the affected S3 object * as the delegated Macie administrator for the affected account. *

    *
  • *
  • *

    * OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving * occurrences of sensitive data from this type of file. *

    *
  • *
  • *

    * OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object was renamed, moved, deleted, or changed * after Macie created the finding. Or the object is encrypted with an KMS key that's currently disabled. *

    *
  • *
  • *

    * RESULT_NOT_SIGNED - The corresponding sensitive data discovery result is stored in an S3 object that hasn't been * signed. Macie can't verify the integrity and authenticity of the sensitive data discovery result. Therefore, * Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * ROLE_TOO_PERMISSIVE - Your account is configured to retrieve occurrences of sensitive data by using an IAM role * whose trust or permissions policy doesn't meet Macie requirements for restricting access to the role. Macie can’t * assume the role to retrieve the sensitive data. *

    *
  • *
  • *

    * 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. *

*/ private java.util.List reasons; /** *

* 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. *

* * @param code * 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. * @see AvailabilityCode */ public void setCode(String code) { this.code = code; } /** *

* 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. *

* * @return 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. * @see AvailabilityCode */ public String getCode() { return this.code; } /** *

* 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. *

* * @param code * 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. * @return Returns a reference to this object so that method calls can be chained together. * @see AvailabilityCode */ public GetSensitiveDataOccurrencesAvailabilityResult withCode(String code) { setCode(code); return this; } /** *

* 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. *

* * @param code * 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. * @return Returns a reference to this object so that method calls can be chained together. * @see AvailabilityCode */ public GetSensitiveDataOccurrencesAvailabilityResult withCode(AvailabilityCode code) { this.code = code.toString(); return this; } /** *

* Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are: *

*
    *
  • *

    * ACCOUNT_NOT_IN_ORGANIZATION - The affected account isn't currently part of your organization. Or the account is * part of your organization but Macie isn't currently enabled for the account. You're not allowed to access the * affected S3 object by using Macie. *

    *
  • *
  • *

    * INVALID_CLASSIFICATION_RESULT - There isn't a corresponding sensitive data discovery result for the finding. Or * the corresponding sensitive data discovery result isn't available in the current Amazon Web Services Region, is * malformed or corrupted, or uses an unsupported storage format. Macie can't verify the location of the sensitive * data to retrieve. *

    *
  • *
  • *

    * INVALID_RESULT_SIGNATURE - The corresponding sensitive data discovery result is stored in an S3 object that * wasn't signed by Macie. Macie can't verify the integrity and authenticity of the sensitive data discovery result. * Therefore, Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * MEMBER_ROLE_TOO_PERMISSIVE - The trust or permissions policy for the IAM role in the affected member account * doesn't meet Macie requirements for restricting access to the role. Or the role's trust policy doesn't specify * the correct external ID for your organization. Macie can't assume the role to retrieve the sensitive data. *

    *
  • *
  • *

    * MISSING_GET_MEMBER_PERMISSION - You're not allowed to retrieve information about the association between your * account and the affected account. Macie can't determine whether you’re allowed to access the affected S3 object * as the delegated Macie administrator for the affected account. *

    *
  • *
  • *

    * OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving * occurrences of sensitive data from this type of file. *

    *
  • *
  • *

    * OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object was renamed, moved, deleted, or changed * after Macie created the finding. Or the object is encrypted with an KMS key that's currently disabled. *

    *
  • *
  • *

    * RESULT_NOT_SIGNED - The corresponding sensitive data discovery result is stored in an S3 object that hasn't been * signed. Macie can't verify the integrity and authenticity of the sensitive data discovery result. Therefore, * Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * ROLE_TOO_PERMISSIVE - Your account is configured to retrieve occurrences of sensitive data by using an IAM role * whose trust or permissions policy doesn't meet Macie requirements for restricting access to the role. Macie can’t * assume the role to retrieve the sensitive data. *

    *
  • *
  • *

    * 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 Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are:

*
    *
  • *

    * ACCOUNT_NOT_IN_ORGANIZATION - The affected account isn't currently part of your organization. Or the * account is part of your organization but Macie isn't currently enabled for the account. You're not * allowed to access the affected S3 object by using Macie. *

    *
  • *
  • *

    * INVALID_CLASSIFICATION_RESULT - There isn't a corresponding sensitive data discovery result for the * finding. Or the corresponding sensitive data discovery result isn't available in the current Amazon Web * Services Region, is malformed or corrupted, or uses an unsupported storage format. Macie can't verify the * location of the sensitive data to retrieve. *

    *
  • *
  • *

    * INVALID_RESULT_SIGNATURE - The corresponding sensitive data discovery result is stored in an S3 object * that wasn't signed by Macie. Macie can't verify the integrity and authenticity of the sensitive data * discovery result. Therefore, Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * MEMBER_ROLE_TOO_PERMISSIVE - The trust or permissions policy for the IAM role in the affected member * account doesn't meet Macie requirements for restricting access to the role. Or the role's trust policy * doesn't specify the correct external ID for your organization. Macie can't assume the role to retrieve * the sensitive data. *

    *
  • *
  • *

    * MISSING_GET_MEMBER_PERMISSION - You're not allowed to retrieve information about the association between * your account and the affected account. Macie can't determine whether you’re allowed to access the * affected S3 object as the delegated Macie administrator for the affected account. *

    *
  • *
  • *

    * OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for * retrieving occurrences of sensitive data from this type of file. *

    *
  • *
  • *

    * OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object was renamed, moved, deleted, or * changed after Macie created the finding. Or the object is encrypted with an KMS key that's currently * disabled. *

    *
  • *
  • *

    * RESULT_NOT_SIGNED - The corresponding sensitive data discovery result is stored in an S3 object that * hasn't been signed. Macie can't verify the integrity and authenticity of the sensitive data discovery * result. Therefore, Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * ROLE_TOO_PERMISSIVE - Your account is configured to retrieve occurrences of sensitive data by using an * IAM role whose trust or permissions policy doesn't meet Macie requirements for restricting access to the * role. Macie can’t assume the role to retrieve the sensitive data. *

    *
  • *
  • *

    * 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 getReasons() { return reasons; } /** *

* Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are: *

*
    *
  • *

    * ACCOUNT_NOT_IN_ORGANIZATION - The affected account isn't currently part of your organization. Or the account is * part of your organization but Macie isn't currently enabled for the account. You're not allowed to access the * affected S3 object by using Macie. *

    *
  • *
  • *

    * INVALID_CLASSIFICATION_RESULT - There isn't a corresponding sensitive data discovery result for the finding. Or * the corresponding sensitive data discovery result isn't available in the current Amazon Web Services Region, is * malformed or corrupted, or uses an unsupported storage format. Macie can't verify the location of the sensitive * data to retrieve. *

    *
  • *
  • *

    * INVALID_RESULT_SIGNATURE - The corresponding sensitive data discovery result is stored in an S3 object that * wasn't signed by Macie. Macie can't verify the integrity and authenticity of the sensitive data discovery result. * Therefore, Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * MEMBER_ROLE_TOO_PERMISSIVE - The trust or permissions policy for the IAM role in the affected member account * doesn't meet Macie requirements for restricting access to the role. Or the role's trust policy doesn't specify * the correct external ID for your organization. Macie can't assume the role to retrieve the sensitive data. *

    *
  • *
  • *

    * MISSING_GET_MEMBER_PERMISSION - You're not allowed to retrieve information about the association between your * account and the affected account. Macie can't determine whether you’re allowed to access the affected S3 object * as the delegated Macie administrator for the affected account. *

    *
  • *
  • *

    * OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving * occurrences of sensitive data from this type of file. *

    *
  • *
  • *

    * OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object was renamed, moved, deleted, or changed * after Macie created the finding. Or the object is encrypted with an KMS key that's currently disabled. *

    *
  • *
  • *

    * RESULT_NOT_SIGNED - The corresponding sensitive data discovery result is stored in an S3 object that hasn't been * signed. Macie can't verify the integrity and authenticity of the sensitive data discovery result. Therefore, * Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * ROLE_TOO_PERMISSIVE - Your account is configured to retrieve occurrences of sensitive data by using an IAM role * whose trust or permissions policy doesn't meet Macie requirements for restricting access to the role. Macie can’t * assume the role to retrieve the sensitive data. *

    *
  • *
  • *

    * 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. *

* * @param reasons * Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are:

*
    *
  • *

    * ACCOUNT_NOT_IN_ORGANIZATION - The affected account isn't currently part of your organization. Or the * account is part of your organization but Macie isn't currently enabled for the account. You're not allowed * to access the affected S3 object by using Macie. *

    *
  • *
  • *

    * INVALID_CLASSIFICATION_RESULT - There isn't a corresponding sensitive data discovery result for the * finding. Or the corresponding sensitive data discovery result isn't available in the current Amazon Web * Services Region, is malformed or corrupted, or uses an unsupported storage format. Macie can't verify the * location of the sensitive data to retrieve. *

    *
  • *
  • *

    * INVALID_RESULT_SIGNATURE - The corresponding sensitive data discovery result is stored in an S3 object * that wasn't signed by Macie. Macie can't verify the integrity and authenticity of the sensitive data * discovery result. Therefore, Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * MEMBER_ROLE_TOO_PERMISSIVE - The trust or permissions policy for the IAM role in the affected member * account doesn't meet Macie requirements for restricting access to the role. Or the role's trust policy * doesn't specify the correct external ID for your organization. Macie can't assume the role to retrieve the * sensitive data. *

    *
  • *
  • *

    * MISSING_GET_MEMBER_PERMISSION - You're not allowed to retrieve information about the association between * your account and the affected account. Macie can't determine whether you’re allowed to access the affected * S3 object as the delegated Macie administrator for the affected account. *

    *
  • *
  • *

    * OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for * retrieving occurrences of sensitive data from this type of file. *

    *
  • *
  • *

    * OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object was renamed, moved, deleted, or * changed after Macie created the finding. Or the object is encrypted with an KMS key that's currently * disabled. *

    *
  • *
  • *

    * RESULT_NOT_SIGNED - The corresponding sensitive data discovery result is stored in an S3 object that * hasn't been signed. Macie can't verify the integrity and authenticity of the sensitive data discovery * result. Therefore, Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * ROLE_TOO_PERMISSIVE - Your account is configured to retrieve occurrences of sensitive data by using an IAM * role whose trust or permissions policy doesn't meet Macie requirements for restricting access to the role. * Macie can’t assume the role to retrieve the sensitive data. *

    *
  • *
  • *

    * 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 reasons) { if (reasons == null) { this.reasons = null; return; } this.reasons = new java.util.ArrayList(reasons); } /** *

* Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are: *

*
    *
  • *

    * ACCOUNT_NOT_IN_ORGANIZATION - The affected account isn't currently part of your organization. Or the account is * part of your organization but Macie isn't currently enabled for the account. You're not allowed to access the * affected S3 object by using Macie. *

    *
  • *
  • *

    * INVALID_CLASSIFICATION_RESULT - There isn't a corresponding sensitive data discovery result for the finding. Or * the corresponding sensitive data discovery result isn't available in the current Amazon Web Services Region, is * malformed or corrupted, or uses an unsupported storage format. Macie can't verify the location of the sensitive * data to retrieve. *

    *
  • *
  • *

    * INVALID_RESULT_SIGNATURE - The corresponding sensitive data discovery result is stored in an S3 object that * wasn't signed by Macie. Macie can't verify the integrity and authenticity of the sensitive data discovery result. * Therefore, Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * MEMBER_ROLE_TOO_PERMISSIVE - The trust or permissions policy for the IAM role in the affected member account * doesn't meet Macie requirements for restricting access to the role. Or the role's trust policy doesn't specify * the correct external ID for your organization. Macie can't assume the role to retrieve the sensitive data. *

    *
  • *
  • *

    * MISSING_GET_MEMBER_PERMISSION - You're not allowed to retrieve information about the association between your * account and the affected account. Macie can't determine whether you’re allowed to access the affected S3 object * as the delegated Macie administrator for the affected account. *

    *
  • *
  • *

    * OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving * occurrences of sensitive data from this type of file. *

    *
  • *
  • *

    * OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object was renamed, moved, deleted, or changed * after Macie created the finding. Or the object is encrypted with an KMS key that's currently disabled. *

    *
  • *
  • *

    * RESULT_NOT_SIGNED - The corresponding sensitive data discovery result is stored in an S3 object that hasn't been * signed. Macie can't verify the integrity and authenticity of the sensitive data discovery result. Therefore, * Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * ROLE_TOO_PERMISSIVE - Your account is configured to retrieve occurrences of sensitive data by using an IAM role * whose trust or permissions policy doesn't meet Macie requirements for restricting access to the role. Macie can’t * assume the role to retrieve the sensitive data. *

    *
  • *
  • *

    * 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. *

* * @param reasons * Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are:

*
    *
  • *

    * ACCOUNT_NOT_IN_ORGANIZATION - The affected account isn't currently part of your organization. Or the * account is part of your organization but Macie isn't currently enabled for the account. You're not allowed * to access the affected S3 object by using Macie. *

    *
  • *
  • *

    * INVALID_CLASSIFICATION_RESULT - There isn't a corresponding sensitive data discovery result for the * finding. Or the corresponding sensitive data discovery result isn't available in the current Amazon Web * Services Region, is malformed or corrupted, or uses an unsupported storage format. Macie can't verify the * location of the sensitive data to retrieve. *

    *
  • *
  • *

    * INVALID_RESULT_SIGNATURE - The corresponding sensitive data discovery result is stored in an S3 object * that wasn't signed by Macie. Macie can't verify the integrity and authenticity of the sensitive data * discovery result. Therefore, Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * MEMBER_ROLE_TOO_PERMISSIVE - The trust or permissions policy for the IAM role in the affected member * account doesn't meet Macie requirements for restricting access to the role. Or the role's trust policy * doesn't specify the correct external ID for your organization. Macie can't assume the role to retrieve the * sensitive data. *

    *
  • *
  • *

    * MISSING_GET_MEMBER_PERMISSION - You're not allowed to retrieve information about the association between * your account and the affected account. Macie can't determine whether you’re allowed to access the affected * S3 object as the delegated Macie administrator for the affected account. *

    *
  • *
  • *

    * OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for * retrieving occurrences of sensitive data from this type of file. *

    *
  • *
  • *

    * OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object was renamed, moved, deleted, or * changed after Macie created the finding. Or the object is encrypted with an KMS key that's currently * disabled. *

    *
  • *
  • *

    * RESULT_NOT_SIGNED - The corresponding sensitive data discovery result is stored in an S3 object that * hasn't been signed. Macie can't verify the integrity and authenticity of the sensitive data discovery * result. Therefore, Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * ROLE_TOO_PERMISSIVE - Your account is configured to retrieve occurrences of sensitive data by using an IAM * role whose trust or permissions policy doesn't meet Macie requirements for restricting access to the role. * Macie can’t assume the role to retrieve the sensitive data. *

    *
  • *
  • *

    * 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(reasons.length)); } for (String ele : reasons) { this.reasons.add(ele); } return this; } /** *

* Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are: *

*
    *
  • *

    * ACCOUNT_NOT_IN_ORGANIZATION - The affected account isn't currently part of your organization. Or the account is * part of your organization but Macie isn't currently enabled for the account. You're not allowed to access the * affected S3 object by using Macie. *

    *
  • *
  • *

    * INVALID_CLASSIFICATION_RESULT - There isn't a corresponding sensitive data discovery result for the finding. Or * the corresponding sensitive data discovery result isn't available in the current Amazon Web Services Region, is * malformed or corrupted, or uses an unsupported storage format. Macie can't verify the location of the sensitive * data to retrieve. *

    *
  • *
  • *

    * INVALID_RESULT_SIGNATURE - The corresponding sensitive data discovery result is stored in an S3 object that * wasn't signed by Macie. Macie can't verify the integrity and authenticity of the sensitive data discovery result. * Therefore, Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * MEMBER_ROLE_TOO_PERMISSIVE - The trust or permissions policy for the IAM role in the affected member account * doesn't meet Macie requirements for restricting access to the role. Or the role's trust policy doesn't specify * the correct external ID for your organization. Macie can't assume the role to retrieve the sensitive data. *

    *
  • *
  • *

    * MISSING_GET_MEMBER_PERMISSION - You're not allowed to retrieve information about the association between your * account and the affected account. Macie can't determine whether you’re allowed to access the affected S3 object * as the delegated Macie administrator for the affected account. *

    *
  • *
  • *

    * OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving * occurrences of sensitive data from this type of file. *

    *
  • *
  • *

    * OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object was renamed, moved, deleted, or changed * after Macie created the finding. Or the object is encrypted with an KMS key that's currently disabled. *

    *
  • *
  • *

    * RESULT_NOT_SIGNED - The corresponding sensitive data discovery result is stored in an S3 object that hasn't been * signed. Macie can't verify the integrity and authenticity of the sensitive data discovery result. Therefore, * Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * ROLE_TOO_PERMISSIVE - Your account is configured to retrieve occurrences of sensitive data by using an IAM role * whose trust or permissions policy doesn't meet Macie requirements for restricting access to the role. Macie can’t * assume the role to retrieve the sensitive data. *

    *
  • *
  • *

    * 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. *

* * @param reasons * Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are:

*
    *
  • *

    * ACCOUNT_NOT_IN_ORGANIZATION - The affected account isn't currently part of your organization. Or the * account is part of your organization but Macie isn't currently enabled for the account. You're not allowed * to access the affected S3 object by using Macie. *

    *
  • *
  • *

    * INVALID_CLASSIFICATION_RESULT - There isn't a corresponding sensitive data discovery result for the * finding. Or the corresponding sensitive data discovery result isn't available in the current Amazon Web * Services Region, is malformed or corrupted, or uses an unsupported storage format. Macie can't verify the * location of the sensitive data to retrieve. *

    *
  • *
  • *

    * INVALID_RESULT_SIGNATURE - The corresponding sensitive data discovery result is stored in an S3 object * that wasn't signed by Macie. Macie can't verify the integrity and authenticity of the sensitive data * discovery result. Therefore, Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * MEMBER_ROLE_TOO_PERMISSIVE - The trust or permissions policy for the IAM role in the affected member * account doesn't meet Macie requirements for restricting access to the role. Or the role's trust policy * doesn't specify the correct external ID for your organization. Macie can't assume the role to retrieve the * sensitive data. *

    *
  • *
  • *

    * MISSING_GET_MEMBER_PERMISSION - You're not allowed to retrieve information about the association between * your account and the affected account. Macie can't determine whether you’re allowed to access the affected * S3 object as the delegated Macie administrator for the affected account. *

    *
  • *
  • *

    * OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for * retrieving occurrences of sensitive data from this type of file. *

    *
  • *
  • *

    * OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object was renamed, moved, deleted, or * changed after Macie created the finding. Or the object is encrypted with an KMS key that's currently * disabled. *

    *
  • *
  • *

    * RESULT_NOT_SIGNED - The corresponding sensitive data discovery result is stored in an S3 object that * hasn't been signed. Macie can't verify the integrity and authenticity of the sensitive data discovery * result. Therefore, Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * ROLE_TOO_PERMISSIVE - Your account is configured to retrieve occurrences of sensitive data by using an IAM * role whose trust or permissions policy doesn't meet Macie requirements for restricting access to the role. * Macie can’t assume the role to retrieve the sensitive data. *

    *
  • *
  • *

    * 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 reasons) { setReasons(reasons); return this; } /** *

* Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are: *

*
    *
  • *

    * ACCOUNT_NOT_IN_ORGANIZATION - The affected account isn't currently part of your organization. Or the account is * part of your organization but Macie isn't currently enabled for the account. You're not allowed to access the * affected S3 object by using Macie. *

    *
  • *
  • *

    * INVALID_CLASSIFICATION_RESULT - There isn't a corresponding sensitive data discovery result for the finding. Or * the corresponding sensitive data discovery result isn't available in the current Amazon Web Services Region, is * malformed or corrupted, or uses an unsupported storage format. Macie can't verify the location of the sensitive * data to retrieve. *

    *
  • *
  • *

    * INVALID_RESULT_SIGNATURE - The corresponding sensitive data discovery result is stored in an S3 object that * wasn't signed by Macie. Macie can't verify the integrity and authenticity of the sensitive data discovery result. * Therefore, Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * MEMBER_ROLE_TOO_PERMISSIVE - The trust or permissions policy for the IAM role in the affected member account * doesn't meet Macie requirements for restricting access to the role. Or the role's trust policy doesn't specify * the correct external ID for your organization. Macie can't assume the role to retrieve the sensitive data. *

    *
  • *
  • *

    * MISSING_GET_MEMBER_PERMISSION - You're not allowed to retrieve information about the association between your * account and the affected account. Macie can't determine whether you’re allowed to access the affected S3 object * as the delegated Macie administrator for the affected account. *

    *
  • *
  • *

    * OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving * occurrences of sensitive data from this type of file. *

    *
  • *
  • *

    * OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object was renamed, moved, deleted, or changed * after Macie created the finding. Or the object is encrypted with an KMS key that's currently disabled. *

    *
  • *
  • *

    * RESULT_NOT_SIGNED - The corresponding sensitive data discovery result is stored in an S3 object that hasn't been * signed. Macie can't verify the integrity and authenticity of the sensitive data discovery result. Therefore, * Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * ROLE_TOO_PERMISSIVE - Your account is configured to retrieve occurrences of sensitive data by using an IAM role * whose trust or permissions policy doesn't meet Macie requirements for restricting access to the role. Macie can’t * assume the role to retrieve the sensitive data. *

    *
  • *
  • *

    * 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. *

* * @param reasons * Specifies why occurrences of sensitive data can't be retrieved for the finding. Possible values are:

*
    *
  • *

    * ACCOUNT_NOT_IN_ORGANIZATION - The affected account isn't currently part of your organization. Or the * account is part of your organization but Macie isn't currently enabled for the account. You're not allowed * to access the affected S3 object by using Macie. *

    *
  • *
  • *

    * INVALID_CLASSIFICATION_RESULT - There isn't a corresponding sensitive data discovery result for the * finding. Or the corresponding sensitive data discovery result isn't available in the current Amazon Web * Services Region, is malformed or corrupted, or uses an unsupported storage format. Macie can't verify the * location of the sensitive data to retrieve. *

    *
  • *
  • *

    * INVALID_RESULT_SIGNATURE - The corresponding sensitive data discovery result is stored in an S3 object * that wasn't signed by Macie. Macie can't verify the integrity and authenticity of the sensitive data * discovery result. Therefore, Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * MEMBER_ROLE_TOO_PERMISSIVE - The trust or permissions policy for the IAM role in the affected member * account doesn't meet Macie requirements for restricting access to the role. Or the role's trust policy * doesn't specify the correct external ID for your organization. Macie can't assume the role to retrieve the * sensitive data. *

    *
  • *
  • *

    * MISSING_GET_MEMBER_PERMISSION - You're not allowed to retrieve information about the association between * your account and the affected account. Macie can't determine whether you’re allowed to access the affected * S3 object as the delegated Macie administrator for the affected account. *

    *
  • *
  • *

    * OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for * retrieving occurrences of sensitive data from this type of file. *

    *
  • *
  • *

    * OBJECT_UNAVAILABLE - The affected S3 object isn't available. The object was renamed, moved, deleted, or * changed after Macie created the finding. Or the object is encrypted with an KMS key that's currently * disabled. *

    *
  • *
  • *

    * RESULT_NOT_SIGNED - The corresponding sensitive data discovery result is stored in an S3 object that * hasn't been signed. Macie can't verify the integrity and authenticity of the sensitive data discovery * result. Therefore, Macie can't verify the location of the sensitive data to retrieve. *

    *
  • *
  • *

    * ROLE_TOO_PERMISSIVE - Your account is configured to retrieve occurrences of sensitive data by using an IAM * role whose trust or permissions policy doesn't meet Macie requirements for restricting access to the role. * Macie can’t assume the role to retrieve the sensitive data. *

    *
  • *
  • *

    * 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 reasonsCopy = new java.util.ArrayList(reasons.length); for (UnavailabilityReasonCode value : reasons) { reasonsCopy.add(value.toString()); } if (getReasons() == null) { setReasons(reasonsCopy); } else { getReasons().addAll(reasonsCopy); } return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCode() != null) sb.append("Code: ").append(getCode()).append(","); if (getReasons() != null) sb.append("Reasons: ").append(getReasons()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetSensitiveDataOccurrencesAvailabilityResult == false) return false; GetSensitiveDataOccurrencesAvailabilityResult other = (GetSensitiveDataOccurrencesAvailabilityResult) obj; if (other.getCode() == null ^ this.getCode() == null) return false; if (other.getCode() != null && other.getCode().equals(this.getCode()) == false) return false; if (other.getReasons() == null ^ this.getReasons() == null) return false; if (other.getReasons() != null && other.getReasons().equals(this.getReasons()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCode() == null) ? 0 : getCode().hashCode()); hashCode = prime * hashCode + ((getReasons() == null) ? 0 : getReasons().hashCode()); return hashCode; } @Override public GetSensitiveDataOccurrencesAvailabilityResult clone() { try { return (GetSensitiveDataOccurrencesAvailabilityResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy