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

* */ private String lifecycle; private LifecycleTransitionReason lifecycleTransitionReason; private java.util.List tags; /** *

* 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 administrativeActions; /** * @param resourceARN */ public void setResourceARN(String resourceARN) { this.resourceARN = resourceARN; } /** * @return */ public String getResourceARN() { return this.resourceARN; } /** * @param resourceARN * @return Returns a reference to this object so that method calls can be chained together. */ public Snapshot withResourceARN(String resourceARN) { setResourceARN(resourceARN); return this; } /** *

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

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

*