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

com.amazonaws.services.datasync.model.DescribeLocationEfsResult Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
Show 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.datasync.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 

* DescribeLocationEfsResponse *

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

* The ARN of the Amazon EFS file system location. *

*/ private String locationArn; /** *

* The URL of the Amazon EFS file system location. *

*/ private String locationUri; private Ec2Config ec2Config; /** *

* The time that the location was created. *

*/ private java.util.Date creationTime; /** *

* The ARN of the access point that DataSync uses to access the Amazon EFS file system. *

*/ private String accessPointArn; /** *

* The Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system. *

*/ private String fileSystemAccessRoleArn; /** *

* Describes whether DataSync uses Transport Layer Security (TLS) encryption when copying data to or from the Amazon * EFS file system. *

*/ private String inTransitEncryption; /** *

* The ARN of the Amazon EFS file system location. *

* * @param locationArn * The ARN of the Amazon EFS file system location. */ public void setLocationArn(String locationArn) { this.locationArn = locationArn; } /** *

* The ARN of the Amazon EFS file system location. *

* * @return The ARN of the Amazon EFS file system location. */ public String getLocationArn() { return this.locationArn; } /** *

* The ARN of the Amazon EFS file system location. *

* * @param locationArn * The ARN of the Amazon EFS file system location. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLocationEfsResult withLocationArn(String locationArn) { setLocationArn(locationArn); return this; } /** *

* The URL of the Amazon EFS file system location. *

* * @param locationUri * The URL of the Amazon EFS file system location. */ public void setLocationUri(String locationUri) { this.locationUri = locationUri; } /** *

* The URL of the Amazon EFS file system location. *

* * @return The URL of the Amazon EFS file system location. */ public String getLocationUri() { return this.locationUri; } /** *

* The URL of the Amazon EFS file system location. *

* * @param locationUri * The URL of the Amazon EFS file system location. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLocationEfsResult withLocationUri(String locationUri) { setLocationUri(locationUri); return this; } /** * @param ec2Config */ public void setEc2Config(Ec2Config ec2Config) { this.ec2Config = ec2Config; } /** * @return */ public Ec2Config getEc2Config() { return this.ec2Config; } /** * @param ec2Config * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLocationEfsResult withEc2Config(Ec2Config ec2Config) { setEc2Config(ec2Config); return this; } /** *

* The time that the location was created. *

* * @param creationTime * The time that the location was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* The time that the location was created. *

* * @return The time that the location was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* The time that the location was created. *

* * @param creationTime * The time that the location was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLocationEfsResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

* The ARN of the access point that DataSync uses to access the Amazon EFS file system. *

* * @param accessPointArn * The ARN of the access point that DataSync uses to access the Amazon EFS file system. */ public void setAccessPointArn(String accessPointArn) { this.accessPointArn = accessPointArn; } /** *

* The ARN of the access point that DataSync uses to access the Amazon EFS file system. *

* * @return The ARN of the access point that DataSync uses to access the Amazon EFS file system. */ public String getAccessPointArn() { return this.accessPointArn; } /** *

* The ARN of the access point that DataSync uses to access the Amazon EFS file system. *

* * @param accessPointArn * The ARN of the access point that DataSync uses to access the Amazon EFS file system. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLocationEfsResult withAccessPointArn(String accessPointArn) { setAccessPointArn(accessPointArn); return this; } /** *

* The Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system. *

* * @param fileSystemAccessRoleArn * The Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file * system. */ public void setFileSystemAccessRoleArn(String fileSystemAccessRoleArn) { this.fileSystemAccessRoleArn = fileSystemAccessRoleArn; } /** *

* The Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system. *

* * @return The Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file * system. */ public String getFileSystemAccessRoleArn() { return this.fileSystemAccessRoleArn; } /** *

* The Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system. *

* * @param fileSystemAccessRoleArn * The Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file * system. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLocationEfsResult withFileSystemAccessRoleArn(String fileSystemAccessRoleArn) { setFileSystemAccessRoleArn(fileSystemAccessRoleArn); return this; } /** *

* Describes whether DataSync uses Transport Layer Security (TLS) encryption when copying data to or from the Amazon * EFS file system. *

* * @param inTransitEncryption * Describes whether DataSync uses Transport Layer Security (TLS) encryption when copying data to or from the * Amazon EFS file system. * @see EfsInTransitEncryption */ public void setInTransitEncryption(String inTransitEncryption) { this.inTransitEncryption = inTransitEncryption; } /** *

* Describes whether DataSync uses Transport Layer Security (TLS) encryption when copying data to or from the Amazon * EFS file system. *

* * @return Describes whether DataSync uses Transport Layer Security (TLS) encryption when copying data to or from * the Amazon EFS file system. * @see EfsInTransitEncryption */ public String getInTransitEncryption() { return this.inTransitEncryption; } /** *

* Describes whether DataSync uses Transport Layer Security (TLS) encryption when copying data to or from the Amazon * EFS file system. *

* * @param inTransitEncryption * Describes whether DataSync uses Transport Layer Security (TLS) encryption when copying data to or from the * Amazon EFS file system. * @return Returns a reference to this object so that method calls can be chained together. * @see EfsInTransitEncryption */ public DescribeLocationEfsResult withInTransitEncryption(String inTransitEncryption) { setInTransitEncryption(inTransitEncryption); return this; } /** *

* Describes whether DataSync uses Transport Layer Security (TLS) encryption when copying data to or from the Amazon * EFS file system. *

* * @param inTransitEncryption * Describes whether DataSync uses Transport Layer Security (TLS) encryption when copying data to or from the * Amazon EFS file system. * @return Returns a reference to this object so that method calls can be chained together. * @see EfsInTransitEncryption */ public DescribeLocationEfsResult withInTransitEncryption(EfsInTransitEncryption inTransitEncryption) { this.inTransitEncryption = inTransitEncryption.toString(); 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 (getLocationArn() != null) sb.append("LocationArn: ").append(getLocationArn()).append(","); if (getLocationUri() != null) sb.append("LocationUri: ").append(getLocationUri()).append(","); if (getEc2Config() != null) sb.append("Ec2Config: ").append(getEc2Config()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getAccessPointArn() != null) sb.append("AccessPointArn: ").append(getAccessPointArn()).append(","); if (getFileSystemAccessRoleArn() != null) sb.append("FileSystemAccessRoleArn: ").append(getFileSystemAccessRoleArn()).append(","); if (getInTransitEncryption() != null) sb.append("InTransitEncryption: ").append(getInTransitEncryption()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeLocationEfsResult == false) return false; DescribeLocationEfsResult other = (DescribeLocationEfsResult) obj; if (other.getLocationArn() == null ^ this.getLocationArn() == null) return false; if (other.getLocationArn() != null && other.getLocationArn().equals(this.getLocationArn()) == false) return false; if (other.getLocationUri() == null ^ this.getLocationUri() == null) return false; if (other.getLocationUri() != null && other.getLocationUri().equals(this.getLocationUri()) == false) return false; if (other.getEc2Config() == null ^ this.getEc2Config() == null) return false; if (other.getEc2Config() != null && other.getEc2Config().equals(this.getEc2Config()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getAccessPointArn() == null ^ this.getAccessPointArn() == null) return false; if (other.getAccessPointArn() != null && other.getAccessPointArn().equals(this.getAccessPointArn()) == false) return false; if (other.getFileSystemAccessRoleArn() == null ^ this.getFileSystemAccessRoleArn() == null) return false; if (other.getFileSystemAccessRoleArn() != null && other.getFileSystemAccessRoleArn().equals(this.getFileSystemAccessRoleArn()) == false) return false; if (other.getInTransitEncryption() == null ^ this.getInTransitEncryption() == null) return false; if (other.getInTransitEncryption() != null && other.getInTransitEncryption().equals(this.getInTransitEncryption()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLocationArn() == null) ? 0 : getLocationArn().hashCode()); hashCode = prime * hashCode + ((getLocationUri() == null) ? 0 : getLocationUri().hashCode()); hashCode = prime * hashCode + ((getEc2Config() == null) ? 0 : getEc2Config().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getAccessPointArn() == null) ? 0 : getAccessPointArn().hashCode()); hashCode = prime * hashCode + ((getFileSystemAccessRoleArn() == null) ? 0 : getFileSystemAccessRoleArn().hashCode()); hashCode = prime * hashCode + ((getInTransitEncryption() == null) ? 0 : getInTransitEncryption().hashCode()); return hashCode; } @Override public DescribeLocationEfsResult clone() { try { return (DescribeLocationEfsResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy