com.amazonaws.services.fsx.model.DeleteFileSystemResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-fsx Show documentation
/*
* 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;
/**
*
* The response object for the DeleteFileSystem
operation.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DeleteFileSystemResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The ID of the file system that's being deleted.
*
*/
private String fileSystemId;
/**
*
* The file system lifecycle for the deletion request. If the DeleteFileSystem
operation is successful,
* this status is DELETING
.
*
*/
private String lifecycle;
private DeleteFileSystemWindowsResponse windowsResponse;
private DeleteFileSystemLustreResponse lustreResponse;
/**
*
* The response object for the OpenZFS file system that's being deleted in the DeleteFileSystem
* operation.
*
*/
private DeleteFileSystemOpenZFSResponse openZFSResponse;
/**
*
* The ID of the file system that's being deleted.
*
*
* @param fileSystemId
* The ID of the file system that's being deleted.
*/
public void setFileSystemId(String fileSystemId) {
this.fileSystemId = fileSystemId;
}
/**
*
* The ID of the file system that's being deleted.
*
*
* @return The ID of the file system that's being deleted.
*/
public String getFileSystemId() {
return this.fileSystemId;
}
/**
*
* The ID of the file system that's being deleted.
*
*
* @param fileSystemId
* The ID of the file system that's being deleted.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteFileSystemResult withFileSystemId(String fileSystemId) {
setFileSystemId(fileSystemId);
return this;
}
/**
*
* The file system lifecycle for the deletion request. If the DeleteFileSystem
operation is successful,
* this status is DELETING
.
*
*
* @param lifecycle
* The file system lifecycle for the deletion request. If the DeleteFileSystem
operation is
* successful, this status is DELETING
.
* @see FileSystemLifecycle
*/
public void setLifecycle(String lifecycle) {
this.lifecycle = lifecycle;
}
/**
*
* The file system lifecycle for the deletion request. If the DeleteFileSystem
operation is successful,
* this status is DELETING
.
*
*
* @return The file system lifecycle for the deletion request. If the DeleteFileSystem
operation is
* successful, this status is DELETING
.
* @see FileSystemLifecycle
*/
public String getLifecycle() {
return this.lifecycle;
}
/**
*
* The file system lifecycle for the deletion request. If the DeleteFileSystem
operation is successful,
* this status is DELETING
.
*
*
* @param lifecycle
* The file system lifecycle for the deletion request. If the DeleteFileSystem
operation is
* successful, this status is DELETING
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FileSystemLifecycle
*/
public DeleteFileSystemResult withLifecycle(String lifecycle) {
setLifecycle(lifecycle);
return this;
}
/**
*
* The file system lifecycle for the deletion request. If the DeleteFileSystem
operation is successful,
* this status is DELETING
.
*
*
* @param lifecycle
* The file system lifecycle for the deletion request. If the DeleteFileSystem
operation is
* successful, this status is DELETING
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FileSystemLifecycle
*/
public DeleteFileSystemResult withLifecycle(FileSystemLifecycle lifecycle) {
this.lifecycle = lifecycle.toString();
return this;
}
/**
* @param windowsResponse
*/
public void setWindowsResponse(DeleteFileSystemWindowsResponse windowsResponse) {
this.windowsResponse = windowsResponse;
}
/**
* @return
*/
public DeleteFileSystemWindowsResponse getWindowsResponse() {
return this.windowsResponse;
}
/**
* @param windowsResponse
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteFileSystemResult withWindowsResponse(DeleteFileSystemWindowsResponse windowsResponse) {
setWindowsResponse(windowsResponse);
return this;
}
/**
* @param lustreResponse
*/
public void setLustreResponse(DeleteFileSystemLustreResponse lustreResponse) {
this.lustreResponse = lustreResponse;
}
/**
* @return
*/
public DeleteFileSystemLustreResponse getLustreResponse() {
return this.lustreResponse;
}
/**
* @param lustreResponse
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteFileSystemResult withLustreResponse(DeleteFileSystemLustreResponse lustreResponse) {
setLustreResponse(lustreResponse);
return this;
}
/**
*
* The response object for the OpenZFS file system that's being deleted in the DeleteFileSystem
* operation.
*
*
* @param openZFSResponse
* The response object for the OpenZFS file system that's being deleted in the DeleteFileSystem
* operation.
*/
public void setOpenZFSResponse(DeleteFileSystemOpenZFSResponse openZFSResponse) {
this.openZFSResponse = openZFSResponse;
}
/**
*
* The response object for the OpenZFS file system that's being deleted in the DeleteFileSystem
* operation.
*
*
* @return The response object for the OpenZFS file system that's being deleted in the DeleteFileSystem
* operation.
*/
public DeleteFileSystemOpenZFSResponse getOpenZFSResponse() {
return this.openZFSResponse;
}
/**
*
* The response object for the OpenZFS file system that's being deleted in the DeleteFileSystem
* operation.
*
*
* @param openZFSResponse
* The response object for the OpenZFS file system that's being deleted in the DeleteFileSystem
* operation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteFileSystemResult withOpenZFSResponse(DeleteFileSystemOpenZFSResponse openZFSResponse) {
setOpenZFSResponse(openZFSResponse);
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 (getFileSystemId() != null)
sb.append("FileSystemId: ").append(getFileSystemId()).append(",");
if (getLifecycle() != null)
sb.append("Lifecycle: ").append(getLifecycle()).append(",");
if (getWindowsResponse() != null)
sb.append("WindowsResponse: ").append(getWindowsResponse()).append(",");
if (getLustreResponse() != null)
sb.append("LustreResponse: ").append(getLustreResponse()).append(",");
if (getOpenZFSResponse() != null)
sb.append("OpenZFSResponse: ").append(getOpenZFSResponse());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DeleteFileSystemResult == false)
return false;
DeleteFileSystemResult other = (DeleteFileSystemResult) obj;
if (other.getFileSystemId() == null ^ this.getFileSystemId() == null)
return false;
if (other.getFileSystemId() != null && other.getFileSystemId().equals(this.getFileSystemId()) == 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.getWindowsResponse() == null ^ this.getWindowsResponse() == null)
return false;
if (other.getWindowsResponse() != null && other.getWindowsResponse().equals(this.getWindowsResponse()) == false)
return false;
if (other.getLustreResponse() == null ^ this.getLustreResponse() == null)
return false;
if (other.getLustreResponse() != null && other.getLustreResponse().equals(this.getLustreResponse()) == false)
return false;
if (other.getOpenZFSResponse() == null ^ this.getOpenZFSResponse() == null)
return false;
if (other.getOpenZFSResponse() != null && other.getOpenZFSResponse().equals(this.getOpenZFSResponse()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getFileSystemId() == null) ? 0 : getFileSystemId().hashCode());
hashCode = prime * hashCode + ((getLifecycle() == null) ? 0 : getLifecycle().hashCode());
hashCode = prime * hashCode + ((getWindowsResponse() == null) ? 0 : getWindowsResponse().hashCode());
hashCode = prime * hashCode + ((getLustreResponse() == null) ? 0 : getLustreResponse().hashCode());
hashCode = prime * hashCode + ((getOpenZFSResponse() == null) ? 0 : getOpenZFSResponse().hashCode());
return hashCode;
}
@Override
public DeleteFileSystemResult clone() {
try {
return (DeleteFileSystemResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}