Interface PutBackupPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<PutBackupPolicyResponse.Builder,
,PutBackupPolicyResponse> EfsResponse.Builder
,SdkBuilder<PutBackupPolicyResponse.Builder,
,PutBackupPolicyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
PutBackupPolicyResponse
public static interface PutBackupPolicyResponse.Builder
extends EfsResponse.Builder, SdkPojo, CopyableBuilder<PutBackupPolicyResponse.Builder,PutBackupPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PutBackupPolicyResponse.Builder
backupPolicy
(Consumer<BackupPolicy.Builder> backupPolicy) Describes the file system's backup policy, indicating whether automatic backups are turned on or off.backupPolicy
(BackupPolicy backupPolicy) Describes the file system's backup policy, indicating whether automatic backups are turned on or off.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.efs.model.EfsResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
backupPolicy
Describes the file system's backup policy, indicating whether automatic backups are turned on or off.
- Parameters:
backupPolicy
- Describes the file system's backup policy, indicating whether automatic backups are turned on or off.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backupPolicy
Describes the file system's backup policy, indicating whether automatic backups are turned on or off.
This is a convenience method that creates an instance of theBackupPolicy.Builder
avoiding the need to create one manually viaBackupPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobackupPolicy(BackupPolicy)
.- Parameters:
backupPolicy
- a consumer that will call methods onBackupPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-