Interface DescribeBackupPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeBackupPolicyResponse.Builder,
,DescribeBackupPolicyResponse> EfsResponse.Builder
,SdkBuilder<DescribeBackupPolicyResponse.Builder,
,DescribeBackupPolicyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeBackupPolicyResponse
public static interface DescribeBackupPolicyResponse.Builder
extends EfsResponse.Builder, SdkPojo, CopyableBuilder<DescribeBackupPolicyResponse.Builder,DescribeBackupPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionbackupPolicy
(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
default DescribeBackupPolicyResponse.Builder backupPolicy(Consumer<BackupPolicy.Builder> 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:
-