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

com.amazonaws.services.storagegateway.model.FileSystemAssociationSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Storage Gateway module holds the client classes that are used for communicating with AWS Storage Gateway Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2017-2022 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.storagegateway.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Gets the summary returned by ListFileSystemAssociation, which is a summary of a created file system * association. *

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

* The ID of the file system association. *

*/ private String fileSystemAssociationId; /** *

* The Amazon Resource Name (ARN) of the file system association. *

*/ private String fileSystemAssociationARN; /** *

* The status of the file share. Valid Values: AVAILABLE | CREATING | * DELETING | FORCE_DELETING | UPDATING | ERROR *

*/ private String fileSystemAssociationStatus; private String gatewayARN; /** *

* The ID of the file system association. *

* * @param fileSystemAssociationId * The ID of the file system association. */ public void setFileSystemAssociationId(String fileSystemAssociationId) { this.fileSystemAssociationId = fileSystemAssociationId; } /** *

* The ID of the file system association. *

* * @return The ID of the file system association. */ public String getFileSystemAssociationId() { return this.fileSystemAssociationId; } /** *

* The ID of the file system association. *

* * @param fileSystemAssociationId * The ID of the file system association. * @return Returns a reference to this object so that method calls can be chained together. */ public FileSystemAssociationSummary withFileSystemAssociationId(String fileSystemAssociationId) { setFileSystemAssociationId(fileSystemAssociationId); return this; } /** *

* The Amazon Resource Name (ARN) of the file system association. *

* * @param fileSystemAssociationARN * The Amazon Resource Name (ARN) of the file system association. */ public void setFileSystemAssociationARN(String fileSystemAssociationARN) { this.fileSystemAssociationARN = fileSystemAssociationARN; } /** *

* The Amazon Resource Name (ARN) of the file system association. *

* * @return The Amazon Resource Name (ARN) of the file system association. */ public String getFileSystemAssociationARN() { return this.fileSystemAssociationARN; } /** *

* The Amazon Resource Name (ARN) of the file system association. *

* * @param fileSystemAssociationARN * The Amazon Resource Name (ARN) of the file system association. * @return Returns a reference to this object so that method calls can be chained together. */ public FileSystemAssociationSummary withFileSystemAssociationARN(String fileSystemAssociationARN) { setFileSystemAssociationARN(fileSystemAssociationARN); return this; } /** *

* The status of the file share. Valid Values: AVAILABLE | CREATING | * DELETING | FORCE_DELETING | UPDATING | ERROR *

* * @param fileSystemAssociationStatus * The status of the file share. Valid Values: AVAILABLE | CREATING | * DELETING | FORCE_DELETING | UPDATING | ERROR */ public void setFileSystemAssociationStatus(String fileSystemAssociationStatus) { this.fileSystemAssociationStatus = fileSystemAssociationStatus; } /** *

* The status of the file share. Valid Values: AVAILABLE | CREATING | * DELETING | FORCE_DELETING | UPDATING | ERROR *

* * @return The status of the file share. Valid Values: AVAILABLE | CREATING | * DELETING | FORCE_DELETING | UPDATING | ERROR */ public String getFileSystemAssociationStatus() { return this.fileSystemAssociationStatus; } /** *

* The status of the file share. Valid Values: AVAILABLE | CREATING | * DELETING | FORCE_DELETING | UPDATING | ERROR *

* * @param fileSystemAssociationStatus * The status of the file share. Valid Values: AVAILABLE | CREATING | * DELETING | FORCE_DELETING | UPDATING | ERROR * @return Returns a reference to this object so that method calls can be chained together. */ public FileSystemAssociationSummary withFileSystemAssociationStatus(String fileSystemAssociationStatus) { setFileSystemAssociationStatus(fileSystemAssociationStatus); return this; } /** * @param gatewayARN */ public void setGatewayARN(String gatewayARN) { this.gatewayARN = gatewayARN; } /** * @return */ public String getGatewayARN() { return this.gatewayARN; } /** * @param gatewayARN * @return Returns a reference to this object so that method calls can be chained together. */ public FileSystemAssociationSummary withGatewayARN(String gatewayARN) { setGatewayARN(gatewayARN); 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 (getFileSystemAssociationId() != null) sb.append("FileSystemAssociationId: ").append(getFileSystemAssociationId()).append(","); if (getFileSystemAssociationARN() != null) sb.append("FileSystemAssociationARN: ").append(getFileSystemAssociationARN()).append(","); if (getFileSystemAssociationStatus() != null) sb.append("FileSystemAssociationStatus: ").append(getFileSystemAssociationStatus()).append(","); if (getGatewayARN() != null) sb.append("GatewayARN: ").append(getGatewayARN()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FileSystemAssociationSummary == false) return false; FileSystemAssociationSummary other = (FileSystemAssociationSummary) obj; if (other.getFileSystemAssociationId() == null ^ this.getFileSystemAssociationId() == null) return false; if (other.getFileSystemAssociationId() != null && other.getFileSystemAssociationId().equals(this.getFileSystemAssociationId()) == false) return false; if (other.getFileSystemAssociationARN() == null ^ this.getFileSystemAssociationARN() == null) return false; if (other.getFileSystemAssociationARN() != null && other.getFileSystemAssociationARN().equals(this.getFileSystemAssociationARN()) == false) return false; if (other.getFileSystemAssociationStatus() == null ^ this.getFileSystemAssociationStatus() == null) return false; if (other.getFileSystemAssociationStatus() != null && other.getFileSystemAssociationStatus().equals(this.getFileSystemAssociationStatus()) == false) return false; if (other.getGatewayARN() == null ^ this.getGatewayARN() == null) return false; if (other.getGatewayARN() != null && other.getGatewayARN().equals(this.getGatewayARN()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFileSystemAssociationId() == null) ? 0 : getFileSystemAssociationId().hashCode()); hashCode = prime * hashCode + ((getFileSystemAssociationARN() == null) ? 0 : getFileSystemAssociationARN().hashCode()); hashCode = prime * hashCode + ((getFileSystemAssociationStatus() == null) ? 0 : getFileSystemAssociationStatus().hashCode()); hashCode = prime * hashCode + ((getGatewayARN() == null) ? 0 : getGatewayARN().hashCode()); return hashCode; } @Override public FileSystemAssociationSummary clone() { try { return (FileSystemAssociationSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.storagegateway.model.transform.FileSystemAssociationSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy