com.amazonaws.services.storagegateway.model.FileSystemAssociationInfo Maven / Gradle / Ivy
Show all versions of aws-java-sdk-storagegateway Show documentation
/*
* 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;
/**
*
* Describes the object returned by DescribeFileSystemAssociations
that describes a created file system
* association.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class FileSystemAssociationInfo implements Serializable, Cloneable, StructuredPojo {
/**
*
* The Amazon Resource Name (ARN) of the file system association.
*
*/
private String fileSystemAssociationARN;
/**
*
* The ARN of the backend Amazon FSx file system used for storing file data. For information, see FileSystem in the Amazon
* FSx API Reference.
*
*/
private String locationARN;
/**
*
* The status of the file system association. Valid Values: AVAILABLE
| CREATING
|
* DELETING
| FORCE_DELETING
| UPDATING
| ERROR
*
*/
private String fileSystemAssociationStatus;
/**
*
* The Amazon Resource Name (ARN) of the storage used for the audit logs.
*
*/
private String auditDestinationARN;
private String gatewayARN;
/**
*
* A list of up to 50 tags assigned to the SMB file share, sorted alphabetically by key name. Each tag is a
* key-value pair.
*
*/
private com.amazonaws.internal.SdkInternalList tags;
private CacheAttributes cacheAttributes;
/**
*
* Specifies network configuration information for the gateway associated with the Amazon FSx file system.
*
*
*
* If multiple file systems are associated with this gateway, this parameter's IpAddresses
field is
* required.
*
*
*/
private EndpointNetworkConfiguration endpointNetworkConfiguration;
/**
*
* An array containing the FileSystemAssociationStatusDetail data type, which provides detailed information on file
* system association status.
*
*/
private com.amazonaws.internal.SdkInternalList fileSystemAssociationStatusDetails;
/**
*
* 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 FileSystemAssociationInfo withFileSystemAssociationARN(String fileSystemAssociationARN) {
setFileSystemAssociationARN(fileSystemAssociationARN);
return this;
}
/**
*
* The ARN of the backend Amazon FSx file system used for storing file data. For information, see FileSystem in the Amazon
* FSx API Reference.
*
*
* @param locationARN
* The ARN of the backend Amazon FSx file system used for storing file data. For information, see FileSystem in the
* Amazon FSx API Reference.
*/
public void setLocationARN(String locationARN) {
this.locationARN = locationARN;
}
/**
*
* The ARN of the backend Amazon FSx file system used for storing file data. For information, see FileSystem in the Amazon
* FSx API Reference.
*
*
* @return The ARN of the backend Amazon FSx file system used for storing file data. For information, see FileSystem in the
* Amazon FSx API Reference.
*/
public String getLocationARN() {
return this.locationARN;
}
/**
*
* The ARN of the backend Amazon FSx file system used for storing file data. For information, see FileSystem in the Amazon
* FSx API Reference.
*
*
* @param locationARN
* The ARN of the backend Amazon FSx file system used for storing file data. For information, see FileSystem in the
* Amazon FSx API Reference.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FileSystemAssociationInfo withLocationARN(String locationARN) {
setLocationARN(locationARN);
return this;
}
/**
*
* The status of the file system association. Valid Values: AVAILABLE
| CREATING
|
* DELETING
| FORCE_DELETING
| UPDATING
| ERROR
*
*
* @param fileSystemAssociationStatus
* The status of the file system association. Valid Values: AVAILABLE
| CREATING
|
* DELETING
| FORCE_DELETING
| UPDATING
| ERROR
*/
public void setFileSystemAssociationStatus(String fileSystemAssociationStatus) {
this.fileSystemAssociationStatus = fileSystemAssociationStatus;
}
/**
*
* The status of the file system association. Valid Values: AVAILABLE
| CREATING
|
* DELETING
| FORCE_DELETING
| UPDATING
| ERROR
*
*
* @return The status of the file system association. Valid Values: AVAILABLE
| CREATING
|
* DELETING
| FORCE_DELETING
| UPDATING
| ERROR
*/
public String getFileSystemAssociationStatus() {
return this.fileSystemAssociationStatus;
}
/**
*
* The status of the file system association. Valid Values: AVAILABLE
| CREATING
|
* DELETING
| FORCE_DELETING
| UPDATING
| ERROR
*
*
* @param fileSystemAssociationStatus
* The status of the file system association. 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 FileSystemAssociationInfo withFileSystemAssociationStatus(String fileSystemAssociationStatus) {
setFileSystemAssociationStatus(fileSystemAssociationStatus);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the storage used for the audit logs.
*
*
* @param auditDestinationARN
* The Amazon Resource Name (ARN) of the storage used for the audit logs.
*/
public void setAuditDestinationARN(String auditDestinationARN) {
this.auditDestinationARN = auditDestinationARN;
}
/**
*
* The Amazon Resource Name (ARN) of the storage used for the audit logs.
*
*
* @return The Amazon Resource Name (ARN) of the storage used for the audit logs.
*/
public String getAuditDestinationARN() {
return this.auditDestinationARN;
}
/**
*
* The Amazon Resource Name (ARN) of the storage used for the audit logs.
*
*
* @param auditDestinationARN
* The Amazon Resource Name (ARN) of the storage used for the audit logs.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FileSystemAssociationInfo withAuditDestinationARN(String auditDestinationARN) {
setAuditDestinationARN(auditDestinationARN);
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 FileSystemAssociationInfo withGatewayARN(String gatewayARN) {
setGatewayARN(gatewayARN);
return this;
}
/**
*
* A list of up to 50 tags assigned to the SMB file share, sorted alphabetically by key name. Each tag is a
* key-value pair.
*
*
* @return A list of up to 50 tags assigned to the SMB file share, sorted alphabetically by key name. Each tag is a
* key-value pair.
*/
public java.util.List getTags() {
if (tags == null) {
tags = new com.amazonaws.internal.SdkInternalList();
}
return tags;
}
/**
*
* A list of up to 50 tags assigned to the SMB file share, sorted alphabetically by key name. Each tag is a
* key-value pair.
*
*
* @param tags
* A list of up to 50 tags assigned to the SMB file share, sorted alphabetically by key name. Each tag is a
* key-value pair.
*/
public void setTags(java.util.Collection tags) {
if (tags == null) {
this.tags = null;
return;
}
this.tags = new com.amazonaws.internal.SdkInternalList(tags);
}
/**
*
* A list of up to 50 tags assigned to the SMB file share, sorted alphabetically by key name. Each tag is a
* key-value pair.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param tags
* A list of up to 50 tags assigned to the SMB file share, sorted alphabetically by key name. Each tag is a
* key-value pair.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FileSystemAssociationInfo withTags(Tag... tags) {
if (this.tags == null) {
setTags(new com.amazonaws.internal.SdkInternalList(tags.length));
}
for (Tag ele : tags) {
this.tags.add(ele);
}
return this;
}
/**
*
* A list of up to 50 tags assigned to the SMB file share, sorted alphabetically by key name. Each tag is a
* key-value pair.
*
*
* @param tags
* A list of up to 50 tags assigned to the SMB file share, sorted alphabetically by key name. Each tag is a
* key-value pair.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FileSystemAssociationInfo withTags(java.util.Collection tags) {
setTags(tags);
return this;
}
/**
* @param cacheAttributes
*/
public void setCacheAttributes(CacheAttributes cacheAttributes) {
this.cacheAttributes = cacheAttributes;
}
/**
* @return
*/
public CacheAttributes getCacheAttributes() {
return this.cacheAttributes;
}
/**
* @param cacheAttributes
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FileSystemAssociationInfo withCacheAttributes(CacheAttributes cacheAttributes) {
setCacheAttributes(cacheAttributes);
return this;
}
/**
*
* Specifies network configuration information for the gateway associated with the Amazon FSx file system.
*
*
*
* If multiple file systems are associated with this gateway, this parameter's IpAddresses
field is
* required.
*
*
*
* @param endpointNetworkConfiguration
* Specifies network configuration information for the gateway associated with the Amazon FSx file
* system.
*
* If multiple file systems are associated with this gateway, this parameter's IpAddresses
field
* is required.
*
*/
public void setEndpointNetworkConfiguration(EndpointNetworkConfiguration endpointNetworkConfiguration) {
this.endpointNetworkConfiguration = endpointNetworkConfiguration;
}
/**
*
* Specifies network configuration information for the gateway associated with the Amazon FSx file system.
*
*
*
* If multiple file systems are associated with this gateway, this parameter's IpAddresses
field is
* required.
*
*
*
* @return Specifies network configuration information for the gateway associated with the Amazon FSx file
* system.
*
* If multiple file systems are associated with this gateway, this parameter's IpAddresses
* field is required.
*
*/
public EndpointNetworkConfiguration getEndpointNetworkConfiguration() {
return this.endpointNetworkConfiguration;
}
/**
*
* Specifies network configuration information for the gateway associated with the Amazon FSx file system.
*
*
*
* If multiple file systems are associated with this gateway, this parameter's IpAddresses
field is
* required.
*
*
*
* @param endpointNetworkConfiguration
* Specifies network configuration information for the gateway associated with the Amazon FSx file
* system.
*
* If multiple file systems are associated with this gateway, this parameter's IpAddresses
field
* is required.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FileSystemAssociationInfo withEndpointNetworkConfiguration(EndpointNetworkConfiguration endpointNetworkConfiguration) {
setEndpointNetworkConfiguration(endpointNetworkConfiguration);
return this;
}
/**
*
* An array containing the FileSystemAssociationStatusDetail data type, which provides detailed information on file
* system association status.
*
*
* @return An array containing the FileSystemAssociationStatusDetail data type, which provides detailed information
* on file system association status.
*/
public java.util.List getFileSystemAssociationStatusDetails() {
if (fileSystemAssociationStatusDetails == null) {
fileSystemAssociationStatusDetails = new com.amazonaws.internal.SdkInternalList();
}
return fileSystemAssociationStatusDetails;
}
/**
*
* An array containing the FileSystemAssociationStatusDetail data type, which provides detailed information on file
* system association status.
*
*
* @param fileSystemAssociationStatusDetails
* An array containing the FileSystemAssociationStatusDetail data type, which provides detailed information
* on file system association status.
*/
public void setFileSystemAssociationStatusDetails(java.util.Collection fileSystemAssociationStatusDetails) {
if (fileSystemAssociationStatusDetails == null) {
this.fileSystemAssociationStatusDetails = null;
return;
}
this.fileSystemAssociationStatusDetails = new com.amazonaws.internal.SdkInternalList(
fileSystemAssociationStatusDetails);
}
/**
*
* An array containing the FileSystemAssociationStatusDetail data type, which provides detailed information on file
* system association status.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setFileSystemAssociationStatusDetails(java.util.Collection)} or
* {@link #withFileSystemAssociationStatusDetails(java.util.Collection)} if you want to override the existing
* values.
*
*
* @param fileSystemAssociationStatusDetails
* An array containing the FileSystemAssociationStatusDetail data type, which provides detailed information
* on file system association status.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FileSystemAssociationInfo withFileSystemAssociationStatusDetails(FileSystemAssociationStatusDetail... fileSystemAssociationStatusDetails) {
if (this.fileSystemAssociationStatusDetails == null) {
setFileSystemAssociationStatusDetails(new com.amazonaws.internal.SdkInternalList(
fileSystemAssociationStatusDetails.length));
}
for (FileSystemAssociationStatusDetail ele : fileSystemAssociationStatusDetails) {
this.fileSystemAssociationStatusDetails.add(ele);
}
return this;
}
/**
*
* An array containing the FileSystemAssociationStatusDetail data type, which provides detailed information on file
* system association status.
*
*
* @param fileSystemAssociationStatusDetails
* An array containing the FileSystemAssociationStatusDetail data type, which provides detailed information
* on file system association status.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FileSystemAssociationInfo withFileSystemAssociationStatusDetails(
java.util.Collection fileSystemAssociationStatusDetails) {
setFileSystemAssociationStatusDetails(fileSystemAssociationStatusDetails);
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 (getFileSystemAssociationARN() != null)
sb.append("FileSystemAssociationARN: ").append(getFileSystemAssociationARN()).append(",");
if (getLocationARN() != null)
sb.append("LocationARN: ").append(getLocationARN()).append(",");
if (getFileSystemAssociationStatus() != null)
sb.append("FileSystemAssociationStatus: ").append(getFileSystemAssociationStatus()).append(",");
if (getAuditDestinationARN() != null)
sb.append("AuditDestinationARN: ").append(getAuditDestinationARN()).append(",");
if (getGatewayARN() != null)
sb.append("GatewayARN: ").append(getGatewayARN()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getCacheAttributes() != null)
sb.append("CacheAttributes: ").append(getCacheAttributes()).append(",");
if (getEndpointNetworkConfiguration() != null)
sb.append("EndpointNetworkConfiguration: ").append(getEndpointNetworkConfiguration()).append(",");
if (getFileSystemAssociationStatusDetails() != null)
sb.append("FileSystemAssociationStatusDetails: ").append(getFileSystemAssociationStatusDetails());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof FileSystemAssociationInfo == false)
return false;
FileSystemAssociationInfo other = (FileSystemAssociationInfo) obj;
if (other.getFileSystemAssociationARN() == null ^ this.getFileSystemAssociationARN() == null)
return false;
if (other.getFileSystemAssociationARN() != null && other.getFileSystemAssociationARN().equals(this.getFileSystemAssociationARN()) == false)
return false;
if (other.getLocationARN() == null ^ this.getLocationARN() == null)
return false;
if (other.getLocationARN() != null && other.getLocationARN().equals(this.getLocationARN()) == 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.getAuditDestinationARN() == null ^ this.getAuditDestinationARN() == null)
return false;
if (other.getAuditDestinationARN() != null && other.getAuditDestinationARN().equals(this.getAuditDestinationARN()) == false)
return false;
if (other.getGatewayARN() == null ^ this.getGatewayARN() == null)
return false;
if (other.getGatewayARN() != null && other.getGatewayARN().equals(this.getGatewayARN()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getCacheAttributes() == null ^ this.getCacheAttributes() == null)
return false;
if (other.getCacheAttributes() != null && other.getCacheAttributes().equals(this.getCacheAttributes()) == false)
return false;
if (other.getEndpointNetworkConfiguration() == null ^ this.getEndpointNetworkConfiguration() == null)
return false;
if (other.getEndpointNetworkConfiguration() != null && other.getEndpointNetworkConfiguration().equals(this.getEndpointNetworkConfiguration()) == false)
return false;
if (other.getFileSystemAssociationStatusDetails() == null ^ this.getFileSystemAssociationStatusDetails() == null)
return false;
if (other.getFileSystemAssociationStatusDetails() != null
&& other.getFileSystemAssociationStatusDetails().equals(this.getFileSystemAssociationStatusDetails()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getFileSystemAssociationARN() == null) ? 0 : getFileSystemAssociationARN().hashCode());
hashCode = prime * hashCode + ((getLocationARN() == null) ? 0 : getLocationARN().hashCode());
hashCode = prime * hashCode + ((getFileSystemAssociationStatus() == null) ? 0 : getFileSystemAssociationStatus().hashCode());
hashCode = prime * hashCode + ((getAuditDestinationARN() == null) ? 0 : getAuditDestinationARN().hashCode());
hashCode = prime * hashCode + ((getGatewayARN() == null) ? 0 : getGatewayARN().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getCacheAttributes() == null) ? 0 : getCacheAttributes().hashCode());
hashCode = prime * hashCode + ((getEndpointNetworkConfiguration() == null) ? 0 : getEndpointNetworkConfiguration().hashCode());
hashCode = prime * hashCode + ((getFileSystemAssociationStatusDetails() == null) ? 0 : getFileSystemAssociationStatusDetails().hashCode());
return hashCode;
}
@Override
public FileSystemAssociationInfo clone() {
try {
return (FileSystemAssociationInfo) 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.FileSystemAssociationInfoMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}