/* * 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; /** *
* The configuration object for the Amazon FSx for OpenZFS file system used in the DeleteFileSystem
* operation.
*
* By default, Amazon FSx for OpenZFS takes a final backup on your behalf when the DeleteFileSystem
* operation is invoked. Doing this helps protect you from data loss, and we highly recommend taking the final
* backup. If you want to skip taking a final backup, set this value to true
.
*
* A list of tags to apply to the file system's final backup. *
*/ private java.util.List
* To delete a file system if there are child volumes present below the root volume, use the string
* DELETE_CHILD_VOLUMES_AND_SNAPSHOTS
. If your file system has child volumes and you don't use this
* option, the delete request will fail.
*
* By default, Amazon FSx for OpenZFS takes a final backup on your behalf when the DeleteFileSystem
* operation is invoked. Doing this helps protect you from data loss, and we highly recommend taking the final
* backup. If you want to skip taking a final backup, set this value to true
.
*
DeleteFileSystem
operation is invoked. Doing this helps protect you from data loss, and we
* highly recommend taking the final backup. If you want to skip taking a final backup, set this value to
* true
.
*/
public void setSkipFinalBackup(Boolean skipFinalBackup) {
this.skipFinalBackup = skipFinalBackup;
}
/**
*
* By default, Amazon FSx for OpenZFS takes a final backup on your behalf when the DeleteFileSystem
* operation is invoked. Doing this helps protect you from data loss, and we highly recommend taking the final
* backup. If you want to skip taking a final backup, set this value to true
.
*
DeleteFileSystem
operation is invoked. Doing this helps protect you from data loss, and we
* highly recommend taking the final backup. If you want to skip taking a final backup, set this value to
* true
.
*/
public Boolean getSkipFinalBackup() {
return this.skipFinalBackup;
}
/**
*
* By default, Amazon FSx for OpenZFS takes a final backup on your behalf when the DeleteFileSystem
* operation is invoked. Doing this helps protect you from data loss, and we highly recommend taking the final
* backup. If you want to skip taking a final backup, set this value to true
.
*
DeleteFileSystem
operation is invoked. Doing this helps protect you from data loss, and we
* highly recommend taking the final backup. If you want to skip taking a final backup, set this value to
* true
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteFileSystemOpenZFSConfiguration withSkipFinalBackup(Boolean skipFinalBackup) {
setSkipFinalBackup(skipFinalBackup);
return this;
}
/**
*
* By default, Amazon FSx for OpenZFS takes a final backup on your behalf when the DeleteFileSystem
* operation is invoked. Doing this helps protect you from data loss, and we highly recommend taking the final
* backup. If you want to skip taking a final backup, set this value to true
.
*
DeleteFileSystem
operation is invoked. Doing this helps protect you from data loss, and we
* highly recommend taking the final backup. If you want to skip taking a final backup, set this value to
* true
.
*/
public Boolean isSkipFinalBackup() {
return this.skipFinalBackup;
}
/**
* * A list of tags to apply to the file system's final backup. *
* * @return A list of tags to apply to the file system's final backup. */ public java.util.List* A list of tags to apply to the file system's final backup. *
* * @param finalBackupTags * A list of tags to apply to the file system's final backup. */ public void setFinalBackupTags(java.util.Collection* A list of tags to apply to the file system's final backup. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFinalBackupTags(java.util.Collection)} or {@link #withFinalBackupTags(java.util.Collection)} if you * want to override the existing values. *
* * @param finalBackupTags * A list of tags to apply to the file system's final backup. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteFileSystemOpenZFSConfiguration withFinalBackupTags(Tag... finalBackupTags) { if (this.finalBackupTags == null) { setFinalBackupTags(new java.util.ArrayList* A list of tags to apply to the file system's final backup. *
* * @param finalBackupTags * A list of tags to apply to the file system's final backup. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteFileSystemOpenZFSConfiguration withFinalBackupTags(java.util.Collection
* To delete a file system if there are child volumes present below the root volume, use the string
* DELETE_CHILD_VOLUMES_AND_SNAPSHOTS
. If your file system has child volumes and you don't use this
* option, the delete request will fail.
*
DELETE_CHILD_VOLUMES_AND_SNAPSHOTS
. If your file system has child volumes and you don't use
* this option, the delete request will fail.
* @see DeleteFileSystemOpenZFSOption
*/
public java.util.List
* To delete a file system if there are child volumes present below the root volume, use the string
* DELETE_CHILD_VOLUMES_AND_SNAPSHOTS
. If your file system has child volumes and you don't use this
* option, the delete request will fail.
*
DELETE_CHILD_VOLUMES_AND_SNAPSHOTS
. If your file system has child volumes and you don't use
* this option, the delete request will fail.
* @see DeleteFileSystemOpenZFSOption
*/
public void setOptions(java.util.Collection
* To delete a file system if there are child volumes present below the root volume, use the string
* DELETE_CHILD_VOLUMES_AND_SNAPSHOTS
. If your file system has child volumes and you don't use this
* option, the delete request will fail.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setOptions(java.util.Collection)} or {@link #withOptions(java.util.Collection)} if you want to override * the existing values. *
* * @param options * To delete a file system if there are child volumes present below the root volume, use the string *DELETE_CHILD_VOLUMES_AND_SNAPSHOTS
. If your file system has child volumes and you don't use
* this option, the delete request will fail.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DeleteFileSystemOpenZFSOption
*/
public DeleteFileSystemOpenZFSConfiguration withOptions(String... options) {
if (this.options == null) {
setOptions(new java.util.ArrayList
* To delete a file system if there are child volumes present below the root volume, use the string
* DELETE_CHILD_VOLUMES_AND_SNAPSHOTS
. If your file system has child volumes and you don't use this
* option, the delete request will fail.
*
DELETE_CHILD_VOLUMES_AND_SNAPSHOTS
. If your file system has child volumes and you don't use
* this option, the delete request will fail.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DeleteFileSystemOpenZFSOption
*/
public DeleteFileSystemOpenZFSConfiguration withOptions(java.util.Collection
* To delete a file system if there are child volumes present below the root volume, use the string
* DELETE_CHILD_VOLUMES_AND_SNAPSHOTS
. If your file system has child volumes and you don't use this
* option, the delete request will fail.
*
DELETE_CHILD_VOLUMES_AND_SNAPSHOTS
. If your file system has child volumes and you don't use
* this option, the delete request will fail.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DeleteFileSystemOpenZFSOption
*/
public DeleteFileSystemOpenZFSConfiguration withOptions(DeleteFileSystemOpenZFSOption... options) {
java.util.ArrayList