All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.fsx.model.Backup Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon FSx module holds the client classes that are used for communicating with Amazon FSx Service

The newest version!
/*
 * Copyright 2019-2024 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. *

*
    *
  • *

    * 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. *

    *
  • *
*/ 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. *

*
    *
  • *

    * 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. *

    *
  • *
* * @param 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. *

    *
  • * @see BackupLifecycle */ public void setLifecycle(String lifecycle) { this.lifecycle = 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. *

      *
    • *
    * * @return 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. *

      *
    • * @see BackupLifecycle */ public String getLifecycle() { return this.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. *

        *
      • *
      * * @param 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. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see BackupLifecycle */ public Backup withLifecycle(String lifecycle) { setLifecycle(lifecycle); return this; } /** *

        * 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. *

          *
        • *
        * * @param 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. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see BackupLifecycle */ public Backup withLifecycle(BackupLifecycle lifecycle) { this.lifecycle = lifecycle.toString(); return this; } /** *

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

          * * @param failureDetails * Details explaining any failures that occurred when creating a backup. */ public void setFailureDetails(BackupFailureDetails failureDetails) { this.failureDetails = failureDetails; } /** *

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

          * * @return Details explaining any failures that occurred when creating a backup. */ public BackupFailureDetails getFailureDetails() { return this.failureDetails; } /** *

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

          * * @param failureDetails * Details explaining any failures that occurred when creating a backup. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withFailureDetails(BackupFailureDetails failureDetails) { setFailureDetails(failureDetails); return this; } /** *

          * The type of the file-system backup. *

          * * @param type * The type of the file-system backup. * @see BackupType */ public void setType(String type) { this.type = type; } /** *

          * The type of the file-system backup. *

          * * @return The type of the file-system backup. * @see BackupType */ public String getType() { return this.type; } /** *

          * The type of the file-system backup. *

          * * @param type * The type of the file-system backup. * @return Returns a reference to this object so that method calls can be chained together. * @see BackupType */ public Backup withType(String type) { setType(type); return this; } /** *

          * The type of the file-system backup. *

          * * @param type * The type of the file-system backup. * @return Returns a reference to this object so that method calls can be chained together. * @see BackupType */ public Backup withType(BackupType type) { this.type = type.toString(); return this; } /** * @param progressPercent */ public void setProgressPercent(Integer progressPercent) { this.progressPercent = progressPercent; } /** * @return */ public Integer getProgressPercent() { return this.progressPercent; } /** * @param progressPercent * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withProgressPercent(Integer progressPercent) { setProgressPercent(progressPercent); return this; } /** *

          * The time when a particular backup was created. *

          * * @param creationTime * The time when a particular backup was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

          * The time when a particular backup was created. *

          * * @return The time when a particular backup was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

          * The time when a particular backup was created. *

          * * @param creationTime * The time when a particular backup was created. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

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

          * * @param 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. */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = 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. *

          * * @return The ID of the Key Management Service (KMS) key used to encrypt the backup of the Amazon FSx file system's * data at rest. */ public String getKmsKeyId() { return this.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. *

          * * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withKmsKeyId(String kmsKeyId) { setKmsKeyId(kmsKeyId); return this; } /** *

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

          * * @param resourceARN * The Amazon Resource Name (ARN) for the backup resource. */ public void setResourceARN(String resourceARN) { this.resourceARN = resourceARN; } /** *

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

          * * @return The Amazon Resource Name (ARN) for the backup resource. */ public String getResourceARN() { return this.resourceARN; } /** *

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

          * * @param resourceARN * The Amazon Resource Name (ARN) for the backup resource. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withResourceARN(String resourceARN) { setResourceARN(resourceARN); return this; } /** *

          * The tags associated with a particular file system. *

          * * @return The tags associated with a particular file system. */ public java.util.List getTags() { return tags; } /** *

          * The tags associated with a particular file system. *

          * * @param tags * The tags associated with a particular file system. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

          * The tags associated with a particular file system. *

          *

          * NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *

          * * @param tags * The tags associated with a particular file system. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

          * The tags associated with a particular file system. *

          * * @param tags * The tags associated with a particular file system. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

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

          * * @param fileSystem * The metadata of the file system associated with the backup. This metadata is persisted even if the file * system is deleted. */ public void setFileSystem(FileSystem fileSystem) { this.fileSystem = fileSystem; } /** *

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

          * * @return The metadata of the file system associated with the backup. This metadata is persisted even if the file * system is deleted. */ public FileSystem getFileSystem() { return this.fileSystem; } /** *

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

          * * @param fileSystem * The metadata of the file system associated with the backup. This metadata is persisted even if the file * system is deleted. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withFileSystem(FileSystem fileSystem) { setFileSystem(fileSystem); return this; } /** *

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

          * * @param directoryInformation * The configuration of the self-managed Microsoft Active Directory directory to which the Windows File * Server instance is joined. */ public void setDirectoryInformation(ActiveDirectoryBackupAttributes directoryInformation) { this.directoryInformation = directoryInformation; } /** *

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

          * * @return The configuration of the self-managed Microsoft Active Directory directory to which the Windows File * Server instance is joined. */ public ActiveDirectoryBackupAttributes getDirectoryInformation() { return this.directoryInformation; } /** *

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

          * * @param directoryInformation * The configuration of the self-managed Microsoft Active Directory directory to which the Windows File * Server instance is joined. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withDirectoryInformation(ActiveDirectoryBackupAttributes directoryInformation) { setDirectoryInformation(directoryInformation); return this; } /** * @param ownerId */ public void setOwnerId(String ownerId) { this.ownerId = ownerId; } /** * @return */ public String getOwnerId() { return this.ownerId; } /** * @param ownerId * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withOwnerId(String ownerId) { setOwnerId(ownerId); return this; } /** * @param sourceBackupId */ public void setSourceBackupId(String sourceBackupId) { this.sourceBackupId = sourceBackupId; } /** * @return */ public String getSourceBackupId() { return this.sourceBackupId; } /** * @param sourceBackupId * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withSourceBackupId(String sourceBackupId) { setSourceBackupId(sourceBackupId); return this; } /** *

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

          * * @param sourceBackupRegion * The source Region of the backup. Specifies the Region from where this backup is copied. */ public void setSourceBackupRegion(String sourceBackupRegion) { this.sourceBackupRegion = sourceBackupRegion; } /** *

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

          * * @return The source Region of the backup. Specifies the Region from where this backup is copied. */ public String getSourceBackupRegion() { return this.sourceBackupRegion; } /** *

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

          * * @param sourceBackupRegion * The source Region of the backup. Specifies the Region from where this backup is copied. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withSourceBackupRegion(String sourceBackupRegion) { setSourceBackupRegion(sourceBackupRegion); return this; } /** *

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

          * * @param resourceType * Specifies the resource type that's backed up. * @see ResourceType */ public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** *

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

          * * @return Specifies the resource type that's backed up. * @see ResourceType */ public String getResourceType() { return this.resourceType; } /** *

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

          * * @param resourceType * Specifies the resource type that's backed up. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceType */ public Backup withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** *

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

          * * @param resourceType * Specifies the resource type that's backed up. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceType */ public Backup withResourceType(ResourceType resourceType) { this.resourceType = resourceType.toString(); return this; } /** * @param volume */ public void setVolume(Volume volume) { this.volume = volume; } /** * @return */ public Volume getVolume() { return this.volume; } /** * @param volume * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withVolume(Volume volume) { setVolume(volume); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getBackupId() != null) sb.append("BackupId: ").append(getBackupId()).append(","); if (getLifecycle() != null) sb.append("Lifecycle: ").append(getLifecycle()).append(","); if (getFailureDetails() != null) sb.append("FailureDetails: ").append(getFailureDetails()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getProgressPercent() != null) sb.append("ProgressPercent: ").append(getProgressPercent()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getKmsKeyId() != null) sb.append("KmsKeyId: ").append(getKmsKeyId()).append(","); if (getResourceARN() != null) sb.append("ResourceARN: ").append(getResourceARN()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getFileSystem() != null) sb.append("FileSystem: ").append(getFileSystem()).append(","); if (getDirectoryInformation() != null) sb.append("DirectoryInformation: ").append(getDirectoryInformation()).append(","); if (getOwnerId() != null) sb.append("OwnerId: ").append(getOwnerId()).append(","); if (getSourceBackupId() != null) sb.append("SourceBackupId: ").append(getSourceBackupId()).append(","); if (getSourceBackupRegion() != null) sb.append("SourceBackupRegion: ").append(getSourceBackupRegion()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()).append(","); if (getVolume() != null) sb.append("Volume: ").append(getVolume()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Backup == false) return false; Backup other = (Backup) obj; if (other.getBackupId() == null ^ this.getBackupId() == null) return false; if (other.getBackupId() != null && other.getBackupId().equals(this.getBackupId()) == false) return false; if (other.getLifecycle() == null ^ this.getLifecycle() == null) return false; if (other.getLifecycle() != null && other.getLifecycle().equals(this.getLifecycle()) == false) return false; if (other.getFailureDetails() == null ^ this.getFailureDetails() == null) return false; if (other.getFailureDetails() != null && other.getFailureDetails().equals(this.getFailureDetails()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getProgressPercent() == null ^ this.getProgressPercent() == null) return false; if (other.getProgressPercent() != null && other.getProgressPercent().equals(this.getProgressPercent()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null) return false; if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false) return false; if (other.getResourceARN() == null ^ this.getResourceARN() == null) return false; if (other.getResourceARN() != null && other.getResourceARN().equals(this.getResourceARN()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getFileSystem() == null ^ this.getFileSystem() == null) return false; if (other.getFileSystem() != null && other.getFileSystem().equals(this.getFileSystem()) == false) return false; if (other.getDirectoryInformation() == null ^ this.getDirectoryInformation() == null) return false; if (other.getDirectoryInformation() != null && other.getDirectoryInformation().equals(this.getDirectoryInformation()) == false) return false; if (other.getOwnerId() == null ^ this.getOwnerId() == null) return false; if (other.getOwnerId() != null && other.getOwnerId().equals(this.getOwnerId()) == false) return false; if (other.getSourceBackupId() == null ^ this.getSourceBackupId() == null) return false; if (other.getSourceBackupId() != null && other.getSourceBackupId().equals(this.getSourceBackupId()) == false) return false; if (other.getSourceBackupRegion() == null ^ this.getSourceBackupRegion() == null) return false; if (other.getSourceBackupRegion() != null && other.getSourceBackupRegion().equals(this.getSourceBackupRegion()) == false) return false; if (other.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getVolume() == null ^ this.getVolume() == null) return false; if (other.getVolume() != null && other.getVolume().equals(this.getVolume()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupId() == null) ? 0 : getBackupId().hashCode()); hashCode = prime * hashCode + ((getLifecycle() == null) ? 0 : getLifecycle().hashCode()); hashCode = prime * hashCode + ((getFailureDetails() == null) ? 0 : getFailureDetails().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getProgressPercent() == null) ? 0 : getProgressPercent().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getResourceARN() == null) ? 0 : getResourceARN().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getFileSystem() == null) ? 0 : getFileSystem().hashCode()); hashCode = prime * hashCode + ((getDirectoryInformation() == null) ? 0 : getDirectoryInformation().hashCode()); hashCode = prime * hashCode + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode()); hashCode = prime * hashCode + ((getSourceBackupId() == null) ? 0 : getSourceBackupId().hashCode()); hashCode = prime * hashCode + ((getSourceBackupRegion() == null) ? 0 : getSourceBackupRegion().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getVolume() == null) ? 0 : getVolume().hashCode()); return hashCode; } @Override public Backup clone() { try { return (Backup) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.fsx.model.transform.BackupMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy