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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDeregistrationPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeregistrationPolicy.Builderbuilder()DeleteResourcesdeleteResources()Specifies which Audit Manager data will be deleted when you deregister Audit Manager.StringdeleteResourcesAsString()Specifies which Audit Manager data will be deleted when you deregister Audit Manager.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends DeregistrationPolicy.Builder>serializableBuilderClass()DeregistrationPolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
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,
deleteResourceswill returnDeleteResources.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdeleteResourcesAsString().- 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:
DeleteResources
-
-
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,
deleteResourceswill returnDeleteResources.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdeleteResourcesAsString().- 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:
DeleteResources
-
-
toBuilder
public DeregistrationPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DeregistrationPolicy.Builder,DeregistrationPolicy>
-
builder
public static DeregistrationPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends DeregistrationPolicy.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
-