/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.fsx.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* A backup of an Amazon FSx for Windows File Server, Amazon FSx for Lustre file system, Amazon FSx for NetApp ONTAP * volume, or Amazon FSx for OpenZFS file system. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Backup implements Serializable, Cloneable, StructuredPojo { /** *

* The ID of the backup. *

*/ private String backupId; /** *

* The lifecycle status of the backup. *

* */ private String lifecycle; /** *

* Details explaining any failures that occurred when creating a backup. *

*/ private BackupFailureDetails failureDetails; /** *

* The type of the file-system backup. *

*/ private String type; private Integer progressPercent; /** *

* The time when a particular backup was created. *

*/ private java.util.Date creationTime; /** *

* The ID of the Key Management Service (KMS) key used to encrypt the backup of the Amazon FSx file system's data at * rest. *

*/ private String kmsKeyId; /** *

* The Amazon Resource Name (ARN) for the backup resource. *

*/ private String resourceARN; /** *

* The tags associated with a particular file system. *

*/ private java.util.List tags; /** *

* The metadata of the file system associated with the backup. This metadata is persisted even if the file system is * deleted. *

*/ private FileSystem fileSystem; /** *

* The configuration of the self-managed Microsoft Active Directory directory to which the Windows File Server * instance is joined. *

*/ private ActiveDirectoryBackupAttributes directoryInformation; private String ownerId; private String sourceBackupId; /** *

* The source Region of the backup. Specifies the Region from where this backup is copied. *

*/ private String sourceBackupRegion; /** *

* Specifies the resource type that's backed up. *

*/ private String resourceType; private Volume volume; /** *

* The ID of the backup. *

* * @param backupId * The ID of the backup. */ public void setBackupId(String backupId) { this.backupId = backupId; } /** *

* The ID of the backup. *

* * @return The ID of the backup. */ public String getBackupId() { return this.backupId; } /** *

* The ID of the backup. *

* * @param backupId * The ID of the backup. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withBackupId(String backupId) { setBackupId(backupId); return this; } /** *

* The lifecycle status of the backup. *

* * * @param lifecycle * The lifecycle status of the backup.

*