Class DeregistrationPolicy

java.lang.Object
software.amazon.awssdk.services.auditmanager.model.DeregistrationPolicy
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<DeregistrationPolicy.Builder,DeregistrationPolicy>

@Generated("software.amazon.awssdk:codegen") public final class DeregistrationPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DeregistrationPolicy.Builder,DeregistrationPolicy>

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 Also:
  • Method Details

    • deleteResources

      public final 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.

      If the service returns an enum value that is not available in the current SDK version, deleteResources will return DeleteResources.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from deleteResourcesAsString().

      Returns:
      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 Also:
    • deleteResourcesAsString

      public final String deleteResourcesAsString()

      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.

      If the service returns an enum value that is not available in the current SDK version, deleteResources will return DeleteResources.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from deleteResourcesAsString().

      Returns:
      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 Also:
    • toBuilder

      public DeregistrationPolicy.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<DeregistrationPolicy.Builder,DeregistrationPolicy>
      Returns:
      a builder for type T
    • builder

      public static DeregistrationPolicy.Builder builder()
    • serializableBuilderClass

      public static Class<? extends DeregistrationPolicy.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.