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

com.amazonaws.services.fsx.model.DeleteVolumeRequest 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.AmazonWebServiceRequest;

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

    private String clientRequestToken;
    /**
     * 

* The ID of the volume that you are deleting. *

*/ private String volumeId; /** *

* For Amazon FSx for ONTAP volumes, specify whether to take a final backup of the volume and apply tags to the * backup. To apply tags to the backup, you must have the fsx:TagResource permission. *

*/ private DeleteVolumeOntapConfiguration ontapConfiguration; /** *

* For Amazon FSx for OpenZFS volumes, specify whether to delete all child volumes and snapshots. *

*/ private DeleteVolumeOpenZFSConfiguration openZFSConfiguration; /** * @param clientRequestToken */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** * @return */ public String getClientRequestToken() { return this.clientRequestToken; } /** * @param clientRequestToken * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteVolumeRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** *

* The ID of the volume that you are deleting. *

* * @param volumeId * The ID of the volume that you are deleting. */ public void setVolumeId(String volumeId) { this.volumeId = volumeId; } /** *

* The ID of the volume that you are deleting. *

* * @return The ID of the volume that you are deleting. */ public String getVolumeId() { return this.volumeId; } /** *

* The ID of the volume that you are deleting. *

* * @param volumeId * The ID of the volume that you are deleting. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteVolumeRequest withVolumeId(String volumeId) { setVolumeId(volumeId); return this; } /** *

* For Amazon FSx for ONTAP volumes, specify whether to take a final backup of the volume and apply tags to the * backup. To apply tags to the backup, you must have the fsx:TagResource permission. *

* * @param ontapConfiguration * For Amazon FSx for ONTAP volumes, specify whether to take a final backup of the volume and apply tags to * the backup. To apply tags to the backup, you must have the fsx:TagResource permission. */ public void setOntapConfiguration(DeleteVolumeOntapConfiguration ontapConfiguration) { this.ontapConfiguration = ontapConfiguration; } /** *

* For Amazon FSx for ONTAP volumes, specify whether to take a final backup of the volume and apply tags to the * backup. To apply tags to the backup, you must have the fsx:TagResource permission. *

* * @return For Amazon FSx for ONTAP volumes, specify whether to take a final backup of the volume and apply tags to * the backup. To apply tags to the backup, you must have the fsx:TagResource permission. */ public DeleteVolumeOntapConfiguration getOntapConfiguration() { return this.ontapConfiguration; } /** *

* For Amazon FSx for ONTAP volumes, specify whether to take a final backup of the volume and apply tags to the * backup. To apply tags to the backup, you must have the fsx:TagResource permission. *

* * @param ontapConfiguration * For Amazon FSx for ONTAP volumes, specify whether to take a final backup of the volume and apply tags to * the backup. To apply tags to the backup, you must have the fsx:TagResource permission. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteVolumeRequest withOntapConfiguration(DeleteVolumeOntapConfiguration ontapConfiguration) { setOntapConfiguration(ontapConfiguration); return this; } /** *

* For Amazon FSx for OpenZFS volumes, specify whether to delete all child volumes and snapshots. *

* * @param openZFSConfiguration * For Amazon FSx for OpenZFS volumes, specify whether to delete all child volumes and snapshots. */ public void setOpenZFSConfiguration(DeleteVolumeOpenZFSConfiguration openZFSConfiguration) { this.openZFSConfiguration = openZFSConfiguration; } /** *

* For Amazon FSx for OpenZFS volumes, specify whether to delete all child volumes and snapshots. *

* * @return For Amazon FSx for OpenZFS volumes, specify whether to delete all child volumes and snapshots. */ public DeleteVolumeOpenZFSConfiguration getOpenZFSConfiguration() { return this.openZFSConfiguration; } /** *

* For Amazon FSx for OpenZFS volumes, specify whether to delete all child volumes and snapshots. *

* * @param openZFSConfiguration * For Amazon FSx for OpenZFS volumes, specify whether to delete all child volumes and snapshots. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteVolumeRequest withOpenZFSConfiguration(DeleteVolumeOpenZFSConfiguration openZFSConfiguration) { setOpenZFSConfiguration(openZFSConfiguration); 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 (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()).append(","); if (getVolumeId() != null) sb.append("VolumeId: ").append(getVolumeId()).append(","); if (getOntapConfiguration() != null) sb.append("OntapConfiguration: ").append(getOntapConfiguration()).append(","); if (getOpenZFSConfiguration() != null) sb.append("OpenZFSConfiguration: ").append(getOpenZFSConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteVolumeRequest == false) return false; DeleteVolumeRequest other = (DeleteVolumeRequest) obj; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; if (other.getVolumeId() == null ^ this.getVolumeId() == null) return false; if (other.getVolumeId() != null && other.getVolumeId().equals(this.getVolumeId()) == false) return false; if (other.getOntapConfiguration() == null ^ this.getOntapConfiguration() == null) return false; if (other.getOntapConfiguration() != null && other.getOntapConfiguration().equals(this.getOntapConfiguration()) == false) return false; if (other.getOpenZFSConfiguration() == null ^ this.getOpenZFSConfiguration() == null) return false; if (other.getOpenZFSConfiguration() != null && other.getOpenZFSConfiguration().equals(this.getOpenZFSConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); hashCode = prime * hashCode + ((getVolumeId() == null) ? 0 : getVolumeId().hashCode()); hashCode = prime * hashCode + ((getOntapConfiguration() == null) ? 0 : getOntapConfiguration().hashCode()); hashCode = prime * hashCode + ((getOpenZFSConfiguration() == null) ? 0 : getOpenZFSConfiguration().hashCode()); return hashCode; } @Override public DeleteVolumeRequest clone() { return (DeleteVolumeRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy