Interface UpdateRecoveryPointLifecycleResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BackupResponse.Builder,Buildable,CopyableBuilder<UpdateRecoveryPointLifecycleResponse.Builder,,UpdateRecoveryPointLifecycleResponse> SdkBuilder<UpdateRecoveryPointLifecycleResponse.Builder,,UpdateRecoveryPointLifecycleResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
UpdateRecoveryPointLifecycleResponse
-
Method Summary
Modifier and TypeMethodDescriptionbackupVaultArn(String backupVaultArn) An ARN that uniquely identifies a backup vault; for example,arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.calculatedLifecycle(Consumer<CalculatedLifecycle.Builder> calculatedLifecycle) ACalculatedLifecycleobject containingDeleteAtandMoveToColdStorageAttimestamps.calculatedLifecycle(CalculatedLifecycle calculatedLifecycle) ACalculatedLifecycleobject containingDeleteAtandMoveToColdStorageAttimestamps.lifecycle(Consumer<Lifecycle.Builder> lifecycle) The lifecycle defines when a protected resource is transitioned to cold storage and when it expires.The lifecycle defines when a protected resource is transitioned to cold storage and when it expires.recoveryPointArn(String recoveryPointArn) An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example,arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.Methods inherited from interface software.amazon.awssdk.services.backup.model.BackupResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
backupVaultArn
An ARN that uniquely identifies a backup vault; for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.- Parameters:
backupVaultArn- An ARN that uniquely identifies a backup vault; for example,arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recoveryPointArn
An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.- Parameters:
recoveryPointArn- An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example,arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecycle
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
- Parameters:
lifecycle- The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecycle
default UpdateRecoveryPointLifecycleResponse.Builder lifecycle(Consumer<Lifecycle.Builder> lifecycle) The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.
This is a convenience method that creates an instance of theLifecycle.Builderavoiding the need to create one manually viaLifecycle.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolifecycle(Lifecycle).- Parameters:
lifecycle- a consumer that will call methods onLifecycle.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
calculatedLifecycle
UpdateRecoveryPointLifecycleResponse.Builder calculatedLifecycle(CalculatedLifecycle calculatedLifecycle) A
CalculatedLifecycleobject containingDeleteAtandMoveToColdStorageAttimestamps.- Parameters:
calculatedLifecycle- ACalculatedLifecycleobject containingDeleteAtandMoveToColdStorageAttimestamps.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
calculatedLifecycle
default UpdateRecoveryPointLifecycleResponse.Builder calculatedLifecycle(Consumer<CalculatedLifecycle.Builder> calculatedLifecycle) A
This is a convenience method that creates an instance of theCalculatedLifecycleobject containingDeleteAtandMoveToColdStorageAttimestamps.CalculatedLifecycle.Builderavoiding the need to create one manually viaCalculatedLifecycle.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocalculatedLifecycle(CalculatedLifecycle).- Parameters:
calculatedLifecycle- a consumer that will call methods onCalculatedLifecycle.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-