Class DeregistrationPolicy
- All Implemented Interfaces:
Serializable
,SdkPojo
,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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DeregistrationPolicy.Builder
builder()
final DeleteResources
Specifies which Audit Manager data will be deleted when you deregister Audit Manager.final String
Specifies which Audit Manager data will be deleted when you deregister Audit Manager.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
static Class
<? extends DeregistrationPolicy.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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 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:
-
-
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 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:
-
-
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 interfaceToCopyableBuilder<DeregistrationPolicy.Builder,
DeregistrationPolicy> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
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 anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
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. -
getValueForField
-
sdkFields
-