/* * 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 snapshot of an Amazon FSx for OpenZFS volume. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Snapshot implements Serializable, Cloneable, StructuredPojo { private String resourceARN; /** ** The ID of the snapshot. *
*/ private String snapshotId; /** ** The name of the snapshot. *
*/ private String name; /** ** The ID of the volume that the snapshot is of. *
*/ private String volumeId; private java.util.Date creationTime; /** ** The lifecycle status of the snapshot. *
*
* PENDING
- Amazon FSx hasn't started creating the snapshot.
*
* CREATING
- Amazon FSx is creating the snapshot.
*
* DELETING
- Amazon FSx is deleting the snapshot.
*
* AVAILABLE
- The snapshot is fully available.
*
* A list of administrative actions for the file system that are in process or waiting to be processed. * Administrative actions describe changes to the Amazon FSx system. *
*/ private java.util.List* The ID of the snapshot. *
* * @param snapshotId * The ID of the snapshot. */ public void setSnapshotId(String snapshotId) { this.snapshotId = snapshotId; } /** ** The ID of the snapshot. *
* * @return The ID of the snapshot. */ public String getSnapshotId() { return this.snapshotId; } /** ** The ID of the snapshot. *
* * @param snapshotId * The ID of the snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public Snapshot withSnapshotId(String snapshotId) { setSnapshotId(snapshotId); return this; } /** ** The name of the snapshot. *
* * @param name * The name of the snapshot. */ public void setName(String name) { this.name = name; } /** ** The name of the snapshot. *
* * @return The name of the snapshot. */ public String getName() { return this.name; } /** ** The name of the snapshot. *
* * @param name * The name of the snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public Snapshot withName(String name) { setName(name); return this; } /** ** The ID of the volume that the snapshot is of. *
* * @param volumeId * The ID of the volume that the snapshot is of. */ public void setVolumeId(String volumeId) { this.volumeId = volumeId; } /** ** The ID of the volume that the snapshot is of. *
* * @return The ID of the volume that the snapshot is of. */ public String getVolumeId() { return this.volumeId; } /** ** The ID of the volume that the snapshot is of. *
* * @param volumeId * The ID of the volume that the snapshot is of. * @return Returns a reference to this object so that method calls can be chained together. */ public Snapshot withVolumeId(String volumeId) { setVolumeId(volumeId); return this; } /** * @param creationTime */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** * @return */ public java.util.Date getCreationTime() { return this.creationTime; } /** * @param creationTime * @return Returns a reference to this object so that method calls can be chained together. */ public Snapshot withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The lifecycle status of the snapshot. *
*
* PENDING
- Amazon FSx hasn't started creating the snapshot.
*
* CREATING
- Amazon FSx is creating the snapshot.
*
* DELETING
- Amazon FSx is deleting the snapshot.
*
* AVAILABLE
- The snapshot is fully available.
*
* PENDING
- Amazon FSx hasn't started creating the snapshot.
*
* CREATING
- Amazon FSx is creating the snapshot.
*
* DELETING
- Amazon FSx is deleting the snapshot.
*
* AVAILABLE
- The snapshot is fully available.
*
* The lifecycle status of the snapshot. *
*
* PENDING
- Amazon FSx hasn't started creating the snapshot.
*
* CREATING
- Amazon FSx is creating the snapshot.
*
* DELETING
- Amazon FSx is deleting the snapshot.
*
* AVAILABLE
- The snapshot is fully available.
*
* PENDING
- Amazon FSx hasn't started creating the snapshot.
*
* CREATING
- Amazon FSx is creating the snapshot.
*
* DELETING
- Amazon FSx is deleting the snapshot.
*
* AVAILABLE
- The snapshot is fully available.
*
* The lifecycle status of the snapshot. *
*
* PENDING
- Amazon FSx hasn't started creating the snapshot.
*
* CREATING
- Amazon FSx is creating the snapshot.
*
* DELETING
- Amazon FSx is deleting the snapshot.
*
* AVAILABLE
- The snapshot is fully available.
*
* PENDING
- Amazon FSx hasn't started creating the snapshot.
*
* CREATING
- Amazon FSx is creating the snapshot.
*
* DELETING
- Amazon FSx is deleting the snapshot.
*
* AVAILABLE
- The snapshot is fully available.
*
* The lifecycle status of the snapshot. *
*
* PENDING
- Amazon FSx hasn't started creating the snapshot.
*
* CREATING
- Amazon FSx is creating the snapshot.
*
* DELETING
- Amazon FSx is deleting the snapshot.
*
* AVAILABLE
- The snapshot is fully available.
*
* PENDING
- Amazon FSx hasn't started creating the snapshot.
*
* CREATING
- Amazon FSx is creating the snapshot.
*
* DELETING
- Amazon FSx is deleting the snapshot.
*
* AVAILABLE
- The snapshot is fully available.
*
* 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 * @return Returns a reference to this object so that method calls can be chained together. */ public Snapshot withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A list of administrative actions for the file system that are in process or waiting to be processed. * Administrative actions describe changes to the Amazon FSx system. *
* * @return A list of administrative actions for the file system that are in process or waiting to be processed. * Administrative actions describe changes to the Amazon FSx system. */ public java.util.List* A list of administrative actions for the file system that are in process or waiting to be processed. * Administrative actions describe changes to the Amazon FSx system. *
* * @param administrativeActions * A list of administrative actions for the file system that are in process or waiting to be processed. * Administrative actions describe changes to the Amazon FSx system. */ public void setAdministrativeActions(java.util.Collection* A list of administrative actions for the file system that are in process or waiting to be processed. * Administrative actions describe changes to the Amazon FSx system. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAdministrativeActions(java.util.Collection)} or * {@link #withAdministrativeActions(java.util.Collection)} if you want to override the existing values. *
* * @param administrativeActions * A list of administrative actions for the file system that are in process or waiting to be processed. * Administrative actions describe changes to the Amazon FSx system. * @return Returns a reference to this object so that method calls can be chained together. */ public Snapshot withAdministrativeActions(AdministrativeAction... administrativeActions) { if (this.administrativeActions == null) { setAdministrativeActions(new java.util.ArrayList* A list of administrative actions for the file system that are in process or waiting to be processed. * Administrative actions describe changes to the Amazon FSx system. *
* * @param administrativeActions * A list of administrative actions for the file system that are in process or waiting to be processed. * Administrative actions describe changes to the Amazon FSx system. * @return Returns a reference to this object so that method calls can be chained together. */ public Snapshot withAdministrativeActions(java.util.Collection