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

com.amazonaws.services.auditmanager.model.DeregistrationPolicy Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Audit Manager module holds the client classes that are used for communicating with AWS Audit Manager Service

The newest version!
/*
 * 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.auditmanager.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The deregistration policy for the data that's stored in Audit Manager. You can use this attribute to determine how * your data is handled when you deregister Audit * Manager. *

*

* By default, Audit Manager retains evidence data for two years from the time of its creation. Other Audit Manager * resources (including assessments, custom controls, and custom frameworks) remain in Audit Manager indefinitely, and * are available if you re-register Audit * Manager in the future. For more information about data retention, see Data Protection in the * Audit Manager User Guide. *

* *

* If you choose to delete all data, this action permanently deletes all evidence data in your account within seven * days. It also deletes all of the Audit Manager resources that you created, including assessments, custom controls, * and custom frameworks. Your data will not be available if you re-register Audit Manager in the future. *

*
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DeregistrationPolicy implements Serializable, Cloneable, StructuredPojo { /** *

* Specifies which Audit Manager data will be deleted when you deregister Audit Manager. *

*
    *
  • *

    * If you set the value to ALL, all of your data is deleted within seven days of deregistration. *

    *
  • *
  • *

    * If you set the value to DEFAULT, none of your data is deleted at the time of deregistration. * However, keep in mind that the Audit Manager data retention policy still applies. As a result, any evidence data * will be deleted two years after its creation date. Your other Audit Manager resources will continue to exist * indefinitely. *

    *
  • *
*/ private String deleteResources; /** *

* Specifies which Audit Manager data will be deleted when you deregister Audit Manager. *

*
    *
  • *

    * If you set the value to ALL, all of your data is deleted within seven days of deregistration. *

    *
  • *
  • *

    * If you set the value to DEFAULT, none of your data is deleted at the time of deregistration. * However, keep in mind that the Audit Manager data retention policy still applies. As a result, any evidence data * will be deleted two years after its creation date. Your other Audit Manager resources will continue to exist * indefinitely. *

    *
  • *
* * @param deleteResources * Specifies which Audit Manager data will be deleted when you deregister Audit Manager.

*
    *
  • *

    * If you set the value to ALL, all of your data is deleted within seven days of deregistration. *

    *
  • *
  • *

    * If you set the value to DEFAULT, none of your data is deleted at the time of deregistration. * However, keep in mind that the Audit Manager data retention policy still applies. As a result, any * evidence data will be deleted two years after its creation date. Your other Audit Manager resources will * continue to exist indefinitely. *

    *
  • * @see DeleteResources */ public void setDeleteResources(String deleteResources) { this.deleteResources = deleteResources; } /** *

    * Specifies which Audit Manager data will be deleted when you deregister Audit Manager. *

    *
      *
    • *

      * If you set the value to ALL, all of your data is deleted within seven days of deregistration. *

      *
    • *
    • *

      * If you set the value to DEFAULT, none of your data is deleted at the time of deregistration. * However, keep in mind that the Audit Manager data retention policy still applies. As a result, any evidence data * will be deleted two years after its creation date. Your other Audit Manager resources will continue to exist * indefinitely. *

      *
    • *
    * * @return Specifies which Audit Manager data will be deleted when you deregister Audit Manager.

    *
      *
    • *

      * If you set the value to ALL, all of your data is deleted within seven days of * deregistration. *

      *
    • *
    • *

      * If you set the value to DEFAULT, none of your data is deleted at the time of deregistration. * However, keep in mind that the Audit Manager data retention policy still applies. As a result, any * evidence data will be deleted two years after its creation date. Your other Audit Manager resources will * continue to exist indefinitely. *

      *
    • * @see DeleteResources */ public String getDeleteResources() { return this.deleteResources; } /** *

      * Specifies which Audit Manager data will be deleted when you deregister Audit Manager. *

      *
        *
      • *

        * If you set the value to ALL, all of your data is deleted within seven days of deregistration. *

        *
      • *
      • *

        * If you set the value to DEFAULT, none of your data is deleted at the time of deregistration. * However, keep in mind that the Audit Manager data retention policy still applies. As a result, any evidence data * will be deleted two years after its creation date. Your other Audit Manager resources will continue to exist * indefinitely. *

        *
      • *
      * * @param deleteResources * Specifies which Audit Manager data will be deleted when you deregister Audit Manager.

      *
        *
      • *

        * If you set the value to ALL, all of your data is deleted within seven days of deregistration. *

        *
      • *
      • *

        * If you set the value to DEFAULT, none of your data is deleted at the time of deregistration. * However, keep in mind that the Audit Manager data retention policy still applies. As a result, any * evidence data will be deleted two years after its creation date. Your other Audit Manager resources will * continue to exist indefinitely. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see DeleteResources */ public DeregistrationPolicy withDeleteResources(String deleteResources) { setDeleteResources(deleteResources); return this; } /** *

        * Specifies which Audit Manager data will be deleted when you deregister Audit Manager. *

        *
          *
        • *

          * If you set the value to ALL, all of your data is deleted within seven days of deregistration. *

          *
        • *
        • *

          * If you set the value to DEFAULT, none of your data is deleted at the time of deregistration. * However, keep in mind that the Audit Manager data retention policy still applies. As a result, any evidence data * will be deleted two years after its creation date. Your other Audit Manager resources will continue to exist * indefinitely. *

          *
        • *
        * * @param deleteResources * Specifies which Audit Manager data will be deleted when you deregister Audit Manager.

        *
          *
        • *

          * If you set the value to ALL, all of your data is deleted within seven days of deregistration. *

          *
        • *
        • *

          * If you set the value to DEFAULT, none of your data is deleted at the time of deregistration. * However, keep in mind that the Audit Manager data retention policy still applies. As a result, any * evidence data will be deleted two years after its creation date. Your other Audit Manager resources will * continue to exist indefinitely. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see DeleteResources */ public DeregistrationPolicy withDeleteResources(DeleteResources deleteResources) { this.deleteResources = deleteResources.toString(); 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 (getDeleteResources() != null) sb.append("DeleteResources: ").append(getDeleteResources()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeregistrationPolicy == false) return false; DeregistrationPolicy other = (DeregistrationPolicy) obj; if (other.getDeleteResources() == null ^ this.getDeleteResources() == null) return false; if (other.getDeleteResources() != null && other.getDeleteResources().equals(this.getDeleteResources()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDeleteResources() == null) ? 0 : getDeleteResources().hashCode()); return hashCode; } @Override public DeregistrationPolicy clone() { try { return (DeregistrationPolicy) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.auditmanager.model.transform.DeregistrationPolicyMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy