Interface AwsBackupBackupPlanRuleDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsBackupBackupPlanRuleDetails.Builder,AwsBackupBackupPlanRuleDetails>,SdkBuilder<AwsBackupBackupPlanRuleDetails.Builder,AwsBackupBackupPlanRuleDetails>,SdkPojo
- Enclosing class:
- AwsBackupBackupPlanRuleDetails
public static interface AwsBackupBackupPlanRuleDetails.Builder extends SdkPojo, CopyableBuilder<AwsBackupBackupPlanRuleDetails.Builder,AwsBackupBackupPlanRuleDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AwsBackupBackupPlanRuleDetails.BuildercompletionWindowMinutes(Long completionWindowMinutes)A value in minutes after a backup job is successfully started before it must be completed, or it is canceled by Backup.AwsBackupBackupPlanRuleDetails.BuildercopyActions(Collection<AwsBackupBackupPlanRuleCopyActionsDetails> copyActions)An array ofCopyActionobjects, each of which contains details of the copy operation.AwsBackupBackupPlanRuleDetails.BuildercopyActions(Consumer<AwsBackupBackupPlanRuleCopyActionsDetails.Builder>... copyActions)An array ofCopyActionobjects, each of which contains details of the copy operation.AwsBackupBackupPlanRuleDetails.BuildercopyActions(AwsBackupBackupPlanRuleCopyActionsDetails... copyActions)An array ofCopyActionobjects, each of which contains details of the copy operation.AwsBackupBackupPlanRuleDetails.BuilderenableContinuousBackup(Boolean enableContinuousBackup)Specifies whether Backup creates continuous backups capable of point-in-time restore (PITR).default AwsBackupBackupPlanRuleDetails.Builderlifecycle(Consumer<AwsBackupBackupPlanLifecycleDetails.Builder> lifecycle)Defines when a protected resource is transitioned to cold storage and when it expires.AwsBackupBackupPlanRuleDetails.Builderlifecycle(AwsBackupBackupPlanLifecycleDetails lifecycle)Defines when a protected resource is transitioned to cold storage and when it expires.AwsBackupBackupPlanRuleDetails.BuilderruleId(String ruleId)Uniquely identifies a rule that is used to schedule the backup of a selection of resources.AwsBackupBackupPlanRuleDetails.BuilderruleName(String ruleName)A display name for a backup rule.AwsBackupBackupPlanRuleDetails.BuilderscheduleExpression(String scheduleExpression)A cron expression in UTC specifying when Backup initiates a backup job.AwsBackupBackupPlanRuleDetails.BuilderstartWindowMinutes(Long startWindowMinutes)A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully.AwsBackupBackupPlanRuleDetails.BuildertargetBackupVault(String targetBackupVault)The name of a logical container where backups are stored.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
targetBackupVault
AwsBackupBackupPlanRuleDetails.Builder targetBackupVault(String targetBackupVault)
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the Amazon Web Services account used to create them and the Amazon Web Services Region where they are created. They consist of letters, numbers, and hyphens.
- Parameters:
targetBackupVault- The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the Amazon Web Services account used to create them and the Amazon Web Services Region where they are created. They consist of letters, numbers, and hyphens.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startWindowMinutes
AwsBackupBackupPlanRuleDetails.Builder startWindowMinutes(Long startWindowMinutes)
A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully.
- Parameters:
startWindowMinutes- A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduleExpression
AwsBackupBackupPlanRuleDetails.Builder scheduleExpression(String scheduleExpression)
A cron expression in UTC specifying when Backup initiates a backup job.
- Parameters:
scheduleExpression- A cron expression in UTC specifying when Backup initiates a backup job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleName
AwsBackupBackupPlanRuleDetails.Builder ruleName(String ruleName)
A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.
- Parameters:
ruleName- A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleId
AwsBackupBackupPlanRuleDetails.Builder ruleId(String ruleId)
Uniquely identifies a rule that is used to schedule the backup of a selection of resources.
- Parameters:
ruleId- Uniquely identifies a rule that is used to schedule the backup of a selection of resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enableContinuousBackup
AwsBackupBackupPlanRuleDetails.Builder enableContinuousBackup(Boolean enableContinuousBackup)
Specifies whether Backup creates continuous backups capable of point-in-time restore (PITR).
- Parameters:
enableContinuousBackup- Specifies whether Backup creates continuous backups capable of point-in-time restore (PITR).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
completionWindowMinutes
AwsBackupBackupPlanRuleDetails.Builder completionWindowMinutes(Long completionWindowMinutes)
A value in minutes after a backup job is successfully started before it must be completed, or it is canceled by Backup.
- Parameters:
completionWindowMinutes- A value in minutes after a backup job is successfully started before it must be completed, or it is canceled by Backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
copyActions
AwsBackupBackupPlanRuleDetails.Builder copyActions(Collection<AwsBackupBackupPlanRuleCopyActionsDetails> copyActions)
An array of
CopyActionobjects, each of which contains details of the copy operation.- Parameters:
copyActions- An array ofCopyActionobjects, each of which contains details of the copy operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
copyActions
AwsBackupBackupPlanRuleDetails.Builder copyActions(AwsBackupBackupPlanRuleCopyActionsDetails... copyActions)
An array of
CopyActionobjects, each of which contains details of the copy operation.- Parameters:
copyActions- An array ofCopyActionobjects, each of which contains details of the copy operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
copyActions
AwsBackupBackupPlanRuleDetails.Builder copyActions(Consumer<AwsBackupBackupPlanRuleCopyActionsDetails.Builder>... copyActions)
An array of
This is a convenience method that creates an instance of theCopyActionobjects, each of which contains details of the copy operation.AwsBackupBackupPlanRuleCopyActionsDetails.Builderavoiding the need to create one manually viaAwsBackupBackupPlanRuleCopyActionsDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#copyActions(List.) - Parameters:
copyActions- a consumer that will call methods onAwsBackupBackupPlanRuleCopyActionsDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#copyActions(java.util.Collection)
-
lifecycle
AwsBackupBackupPlanRuleDetails.Builder lifecycle(AwsBackupBackupPlanLifecycleDetails 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. If you do not specify a lifecycle, Backup applies the lifecycle policy of the source backup to the destination backup.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days.
- Parameters:
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. If you do not specify a lifecycle, Backup applies the lifecycle policy of the source backup to the destination backup.Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecycle
default AwsBackupBackupPlanRuleDetails.Builder lifecycle(Consumer<AwsBackupBackupPlanLifecycleDetails.Builder> 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. If you do not specify a lifecycle, Backup applies the lifecycle policy of the source backup to the destination backup.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days.
This is a convenience method that creates an instance of theAwsBackupBackupPlanLifecycleDetails.Builderavoiding the need to create one manually viaAwsBackupBackupPlanLifecycleDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolifecycle(AwsBackupBackupPlanLifecycleDetails).- Parameters:
lifecycle- a consumer that will call methods onAwsBackupBackupPlanLifecycleDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
lifecycle(AwsBackupBackupPlanLifecycleDetails)
-
-