Class PutBackupVaultLockConfigurationRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<PutBackupVaultLockConfigurationRequest.Builder,PutBackupVaultLockConfigurationRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe Backup Vault Lock configuration that specifies the name of the backup vault it protects.builder()final LongThe Backup Vault Lock configuration that specifies the number of days before the lock date.final booleanfinal booleanequalsBySdkFields(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) Used to retrieve the value of a field from any class that extendsSdkRequest.final inthashCode()final LongThe Backup Vault Lock configuration that specifies the maximum retention period that the vault retains its recovery points.final LongThe Backup Vault Lock configuration that specifies the minimum retention period that the vault retains its recovery points.static Class<? extends PutBackupVaultLockConfigurationRequest.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
backupVaultName
The Backup Vault Lock configuration that specifies the name of the backup vault it protects.
- Returns:
- The Backup Vault Lock configuration that specifies the name of the backup vault it protects.
-
minRetentionDays
The Backup Vault Lock configuration that specifies the minimum retention period that the vault retains its recovery points. This setting can be useful if, for example, your organization's policies require you to retain certain data for at least seven years (2555 days).
This parameter is required when a vault lock is created through CloudFormation; otherwise, this parameter is optional. If this parameter is not specified, Vault Lock will not enforce a minimum retention period.
If this parameter is specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails that backup or copy job, and you should either modify your lifecycle settings or use a different vault. The shortest minimum retention period you can specify is 1 day. Recovery points already saved in the vault prior to Vault Lock are not affected.
- Returns:
- The Backup Vault Lock configuration that specifies the minimum retention period that the vault retains
its recovery points. This setting can be useful if, for example, your organization's policies require you
to retain certain data for at least seven years (2555 days).
This parameter is required when a vault lock is created through CloudFormation; otherwise, this parameter is optional. If this parameter is not specified, Vault Lock will not enforce a minimum retention period.
If this parameter is specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails that backup or copy job, and you should either modify your lifecycle settings or use a different vault. The shortest minimum retention period you can specify is 1 day. Recovery points already saved in the vault prior to Vault Lock are not affected.
-
maxRetentionDays
The Backup Vault Lock configuration that specifies the maximum retention period that the vault retains its recovery points. This setting can be useful if, for example, your organization's policies require you to destroy certain data after retaining it for four years (1460 days).
If this parameter is not included, Vault Lock does not enforce a maximum retention period on the recovery points in the vault. If this parameter is included without a value, Vault Lock will not enforce a maximum retention period.
If this parameter is specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job's retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. The longest maximum retention period you can specify is 36500 days (approximately 100 years). Recovery points already saved in the vault prior to Vault Lock are not affected.
- Returns:
- The Backup Vault Lock configuration that specifies the maximum retention period that the vault retains
its recovery points. This setting can be useful if, for example, your organization's policies require you
to destroy certain data after retaining it for four years (1460 days).
If this parameter is not included, Vault Lock does not enforce a maximum retention period on the recovery points in the vault. If this parameter is included without a value, Vault Lock will not enforce a maximum retention period.
If this parameter is specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job's retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. The longest maximum retention period you can specify is 36500 days (approximately 100 years). Recovery points already saved in the vault prior to Vault Lock are not affected.
-
changeableForDays
The Backup Vault Lock configuration that specifies the number of days before the lock date. For example, setting
ChangeableForDaysto 30 on Jan. 1, 2022 at 8pm UTC will set the lock date to Jan. 31, 2022 at 8pm UTC.Backup enforces a 72-hour cooling-off period before Vault Lock takes effect and becomes immutable. Therefore, you must set
ChangeableForDaysto 3 or greater.Before the lock date, you can delete Vault Lock from the vault using
DeleteBackupVaultLockConfigurationor change the Vault Lock configuration usingPutBackupVaultLockConfiguration. On and after the lock date, the Vault Lock becomes immutable and cannot be changed or deleted.If this parameter is not specified, you can delete Vault Lock from the vault using
DeleteBackupVaultLockConfigurationor change the Vault Lock configuration usingPutBackupVaultLockConfigurationat any time.- Returns:
- The Backup Vault Lock configuration that specifies the number of days before the lock date. For example,
setting
ChangeableForDaysto 30 on Jan. 1, 2022 at 8pm UTC will set the lock date to Jan. 31, 2022 at 8pm UTC.Backup enforces a 72-hour cooling-off period before Vault Lock takes effect and becomes immutable. Therefore, you must set
ChangeableForDaysto 3 or greater.Before the lock date, you can delete Vault Lock from the vault using
DeleteBackupVaultLockConfigurationor change the Vault Lock configuration usingPutBackupVaultLockConfiguration. On and after the lock date, the Vault Lock becomes immutable and cannot be changed or deleted.If this parameter is not specified, you can delete Vault Lock from the vault using
DeleteBackupVaultLockConfigurationor change the Vault Lock configuration usingPutBackupVaultLockConfigurationat any time.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<PutBackupVaultLockConfigurationRequest.Builder,PutBackupVaultLockConfigurationRequest> - Specified by:
toBuilderin classBackupRequest- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends PutBackupVaultLockConfigurationRequest.Builder> serializableBuilderClass() -
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-
getValueForField
Description copied from class:SdkRequestUsed to retrieve the value of a field from any class that extendsSdkRequest. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkRequest.getValueForField(String, Class)method will again be available.- Overrides:
getValueForFieldin classSdkRequest- Parameters:
fieldName- The name of the member to be retrieved.clazz- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-