Interface Backup.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Backup.Builder,Backup>,SdkBuilder<Backup.Builder,Backup>,SdkPojo
- Enclosing class:
- Backup
public static interface Backup.Builder extends SdkPojo, CopyableBuilder<Backup.Builder,Backup>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Backup.BuilderbackupId(String backupId)The ID of the backup.Backup.BuildercreationTime(Instant creationTime)The time when a particular backup was created.default Backup.BuilderdirectoryInformation(Consumer<ActiveDirectoryBackupAttributes.Builder> directoryInformation)The configuration of the self-managed Microsoft Active Directory directory to which the Windows File Server instance is joined.Backup.BuilderdirectoryInformation(ActiveDirectoryBackupAttributes directoryInformation)The configuration of the self-managed Microsoft Active Directory directory to which the Windows File Server instance is joined.default Backup.BuilderfailureDetails(Consumer<BackupFailureDetails.Builder> failureDetails)Details explaining any failures that occurred when creating a backup.Backup.BuilderfailureDetails(BackupFailureDetails failureDetails)Details explaining any failures that occurred when creating a backup.default Backup.BuilderfileSystem(Consumer<FileSystem.Builder> fileSystem)The metadata of the file system associated with the backup.Backup.BuilderfileSystem(FileSystem fileSystem)The metadata of the file system associated with the backup.Backup.BuilderkmsKeyId(String kmsKeyId)The ID of the Key Management Service (KMS) key used to encrypt the backup of the Amazon FSx file system's data at rest.Backup.Builderlifecycle(String lifecycle)The lifecycle status of the backup.Backup.Builderlifecycle(BackupLifecycle lifecycle)The lifecycle status of the backup.Backup.BuilderownerId(String ownerId)Sets the value of the OwnerId property for this object.Backup.BuilderprogressPercent(Integer progressPercent)Sets the value of the ProgressPercent property for this object.Backup.BuilderresourceARN(String resourceARN)The Amazon Resource Name (ARN) for the backup resource.Backup.BuilderresourceType(String resourceType)Specifies the resource type that's backed up.Backup.BuilderresourceType(ResourceType resourceType)Specifies the resource type that's backed up.Backup.BuildersizeInBytes(Long sizeInBytes)The size of the backup in bytes.Backup.BuildersourceBackupId(String sourceBackupId)Sets the value of the SourceBackupId property for this object.Backup.BuildersourceBackupRegion(String sourceBackupRegion)The source Region of the backup.Backup.Buildertags(Collection<Tag> tags)The tags associated with a particular file system.Backup.Buildertags(Consumer<Tag.Builder>... tags)The tags associated with a particular file system.Backup.Buildertags(Tag... tags)The tags associated with a particular file system.Backup.Buildertype(String type)The type of the file-system backup.Backup.Buildertype(BackupType type)The type of the file-system backup.default Backup.Buildervolume(Consumer<Volume.Builder> volume)Sets the value of the Volume property for this object.Backup.Buildervolume(Volume volume)Sets the value of the Volume property for this object.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
backupId
Backup.Builder backupId(String backupId)
The ID of the backup.
- Parameters:
backupId- The ID of the backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecycle
Backup.Builder lifecycle(String lifecycle)
The lifecycle status of the backup.
-
AVAILABLE- The backup is fully available. -
PENDING- For user-initiated backups on Lustre file systems only; Amazon FSx hasn't started creating the backup. -
CREATING- Amazon FSx is creating the backup. -
TRANSFERRING- For user-initiated backups on Lustre file systems only; Amazon FSx is transferring the backup to Amazon S3. -
COPYING- Amazon FSx is copying the backup. -
DELETED- Amazon FSx deleted the backup and it's no longer available. -
FAILED- Amazon FSx couldn't finish the backup.
- Parameters:
lifecycle- The lifecycle status of the backup.-
AVAILABLE- The backup is fully available. -
PENDING- For user-initiated backups on Lustre file systems only; Amazon FSx hasn't started creating the backup. -
CREATING- Amazon FSx is creating the backup. -
TRANSFERRING- For user-initiated backups on Lustre file systems only; Amazon FSx is transferring the backup to Amazon S3. -
COPYING- Amazon FSx is copying the backup. -
DELETED- Amazon FSx deleted the backup and it's no longer available. -
FAILED- Amazon FSx couldn't finish the backup.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
BackupLifecycle,BackupLifecycle
-
-
lifecycle
Backup.Builder lifecycle(BackupLifecycle lifecycle)
The lifecycle status of the backup.
-
AVAILABLE- The backup is fully available. -
PENDING- For user-initiated backups on Lustre file systems only; Amazon FSx hasn't started creating the backup. -
CREATING- Amazon FSx is creating the backup. -
TRANSFERRING- For user-initiated backups on Lustre file systems only; Amazon FSx is transferring the backup to Amazon S3. -
COPYING- Amazon FSx is copying the backup. -
DELETED- Amazon FSx deleted the backup and it's no longer available. -
FAILED- Amazon FSx couldn't finish the backup.
- Parameters:
lifecycle- The lifecycle status of the backup.-
AVAILABLE- The backup is fully available. -
PENDING- For user-initiated backups on Lustre file systems only; Amazon FSx hasn't started creating the backup. -
CREATING- Amazon FSx is creating the backup. -
TRANSFERRING- For user-initiated backups on Lustre file systems only; Amazon FSx is transferring the backup to Amazon S3. -
COPYING- Amazon FSx is copying the backup. -
DELETED- Amazon FSx deleted the backup and it's no longer available. -
FAILED- Amazon FSx couldn't finish the backup.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
BackupLifecycle,BackupLifecycle
-
-
failureDetails
Backup.Builder failureDetails(BackupFailureDetails failureDetails)
Details explaining any failures that occurred when creating a backup.
- Parameters:
failureDetails- Details explaining any failures that occurred when creating a backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureDetails
default Backup.Builder failureDetails(Consumer<BackupFailureDetails.Builder> failureDetails)
Details explaining any failures that occurred when creating a backup.
This is a convenience method that creates an instance of theBackupFailureDetails.Builderavoiding the need to create one manually viaBackupFailureDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofailureDetails(BackupFailureDetails).- Parameters:
failureDetails- a consumer that will call methods onBackupFailureDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
failureDetails(BackupFailureDetails)
-
type
Backup.Builder type(String type)
The type of the file-system backup.
- Parameters:
type- The type of the file-system backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
BackupType,BackupType
-
type
Backup.Builder type(BackupType type)
The type of the file-system backup.
- Parameters:
type- The type of the file-system backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
BackupType,BackupType
-
progressPercent
Backup.Builder progressPercent(Integer progressPercent)
Sets the value of the ProgressPercent property for this object.- Parameters:
progressPercent- The new value for the ProgressPercent property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
Backup.Builder creationTime(Instant creationTime)
The time when a particular backup was created.
- Parameters:
creationTime- The time when a particular backup was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
Backup.Builder kmsKeyId(String kmsKeyId)
The ID of the Key Management Service (KMS) key used to encrypt the backup of the Amazon FSx file system's data at rest.
- Parameters:
kmsKeyId- The ID of the Key Management Service (KMS) key used to encrypt the backup of the Amazon FSx file system's data at rest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceARN
Backup.Builder resourceARN(String resourceARN)
The Amazon Resource Name (ARN) for the backup resource.
- Parameters:
resourceARN- The Amazon Resource Name (ARN) for the backup resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Backup.Builder tags(Collection<Tag> tags)
The tags associated with a particular file system.
- Parameters:
tags- The tags associated with a particular file system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Backup.Builder tags(Tag... tags)
The tags associated with a particular file system.
- Parameters:
tags- The tags associated with a particular file system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Backup.Builder tags(Consumer<Tag.Builder>... tags)
The tags associated with a particular file system.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
fileSystem
Backup.Builder fileSystem(FileSystem fileSystem)
The metadata of the file system associated with the backup. This metadata is persisted even if the file system is deleted.
- Parameters:
fileSystem- The metadata of the file system associated with the backup. This metadata is persisted even if the file system is deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileSystem
default Backup.Builder fileSystem(Consumer<FileSystem.Builder> fileSystem)
The metadata of the file system associated with the backup. This metadata is persisted even if the file system is deleted.
This is a convenience method that creates an instance of theFileSystem.Builderavoiding the need to create one manually viaFileSystem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofileSystem(FileSystem).- Parameters:
fileSystem- a consumer that will call methods onFileSystem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
fileSystem(FileSystem)
-
directoryInformation
Backup.Builder directoryInformation(ActiveDirectoryBackupAttributes directoryInformation)
The configuration of the self-managed Microsoft Active Directory directory to which the Windows File Server instance is joined.
- Parameters:
directoryInformation- The configuration of the self-managed Microsoft Active Directory directory to which the Windows File Server instance is joined.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
directoryInformation
default Backup.Builder directoryInformation(Consumer<ActiveDirectoryBackupAttributes.Builder> directoryInformation)
The configuration of the self-managed Microsoft Active Directory directory to which the Windows File Server instance is joined.
This is a convenience method that creates an instance of theActiveDirectoryBackupAttributes.Builderavoiding the need to create one manually viaActiveDirectoryBackupAttributes.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todirectoryInformation(ActiveDirectoryBackupAttributes).- Parameters:
directoryInformation- a consumer that will call methods onActiveDirectoryBackupAttributes.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
directoryInformation(ActiveDirectoryBackupAttributes)
-
ownerId
Backup.Builder ownerId(String ownerId)
Sets the value of the OwnerId property for this object.- Parameters:
ownerId- The new value for the OwnerId property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceBackupId
Backup.Builder sourceBackupId(String sourceBackupId)
Sets the value of the SourceBackupId property for this object.- Parameters:
sourceBackupId- The new value for the SourceBackupId property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceBackupRegion
Backup.Builder sourceBackupRegion(String sourceBackupRegion)
The source Region of the backup. Specifies the Region from where this backup is copied.
- Parameters:
sourceBackupRegion- The source Region of the backup. Specifies the Region from where this backup is copied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
Backup.Builder resourceType(String resourceType)
Specifies the resource type that's backed up.
- Parameters:
resourceType- Specifies the resource type that's backed up.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
resourceType
Backup.Builder resourceType(ResourceType resourceType)
Specifies the resource type that's backed up.
- Parameters:
resourceType- Specifies the resource type that's backed up.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
volume
Backup.Builder volume(Volume volume)
Sets the value of the Volume property for this object.- Parameters:
volume- The new value for the Volume property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volume
default Backup.Builder volume(Consumer<Volume.Builder> volume)
Sets the value of the Volume property for this object. This is a convenience method that creates an instance of theVolume.Builderavoiding the need to create one manually viaVolume.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovolume(Volume).- Parameters:
volume- a consumer that will call methods onVolume.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
volume(Volume)
-
sizeInBytes
Backup.Builder sizeInBytes(Long sizeInBytes)
The size of the backup in bytes. This represents the amount of data that the file system would contain if you restore this backup.
- Parameters:
sizeInBytes- The size of the backup in bytes. This represents the amount of data that the file system would contain if you restore this backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-