Class LocalBackupConfiguration
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LocalBackupConfiguration.Builder,LocalBackupConfiguration>
Specifies how Backup handles backups of resources that you register with a backup appliance. Backups of these resources are stored in the local backup vault of the appliance. By default, Backup then copies each backup to the target backup vault of the backup rule.
Retention that you set here applies only to the backup in the local backup vault. It doesn't apply to copies in other vaults. Local backup vaults don't support cold storage.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanIf the value is true, Backup stores backups only in the local backup vault of the appliance and doesn't copy them to the target backup vault of the backup rule.builder()final LongThe number of days after creation that a backup in the local backup vault is deleted.final BooleanIf the value is true, Backup deletes a backup in the local backup vault only when both of the following are true: a newer backup of the same resource exists in the same local backup vault, and the scheduled copy of the backup to the target backup vault has completed successfully.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) final inthashCode()static Class<? extends LocalBackupConfiguration.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 interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
backupToLocalVaultOnly
If the value is true, Backup stores backups only in the local backup vault of the appliance and doesn't copy them to the target backup vault of the backup rule. The default is false.
- Returns:
- If the value is true, Backup stores backups only in the local backup vault of the appliance and doesn't copy them to the target backup vault of the backup rule. The default is false.
-
deleteAfterDays
The number of days after creation that a backup in the local backup vault is deleted. This retention period applies only to the local backup, not to its copies in other backup vaults.
- Returns:
- The number of days after creation that a backup in the local backup vault is deleted. This retention period applies only to the local backup, not to its copies in other backup vaults.
-
deleteAfterNextBackup
If the value is true, Backup deletes a backup in the local backup vault only when both of the following are true: a newer backup of the same resource exists in the same local backup vault, and the scheduled copy of the backup to the target backup vault has completed successfully. If
BackupToLocalVaultOnlyis true, there is no copy, so only the first condition applies. The backup is also deleted when theDeleteAfterDaysretention period ends, whichever happens first.This setting applies only to snapshot backups. Log backups follow the
DeleteAfterDaysretention period.- Returns:
- If the value is true, Backup deletes a backup in the local backup vault only when both of the following
are true: a newer backup of the same resource exists in the same local backup vault, and the scheduled
copy of the backup to the target backup vault has completed successfully. If
BackupToLocalVaultOnlyis true, there is no copy, so only the first condition applies. The backup is also deleted when theDeleteAfterDaysretention period ends, whichever happens first.This setting applies only to snapshot backups. Log backups follow the
DeleteAfterDaysretention period.
-
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<LocalBackupConfiguration.Builder,LocalBackupConfiguration> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
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
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-