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

com.amazonaws.services.datasync.model.CreateLocationEfsRequest 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.778
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;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* CreateLocationEfsRequest *

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

* Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data (depending on * if this is a source or destination location). By default, DataSync uses the root directory, but you can also * include subdirectories. *

* *

* You must specify a value with forward slashes (for example, /path/to/folder). *

*
*/ private String subdirectory; /** *

* Specifies the ARN for the Amazon EFS file system. *

*/ private String efsFilesystemArn; /** *

* Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. *

*/ private Ec2Config ec2Config; /** *

* Specifies the key-value pair that represents a tag that you want to add to the resource. The value can be an * empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a * name tag for your location. *

*/ private java.util.List tags; /** *

* Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file * system. *

*/ private String accessPointArn; /** *

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

*/ private String fileSystemAccessRoleArn; /** *

* Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies data to * or from the Amazon EFS file system. *

*

* If you specify an access point using AccessPointArn or an IAM role using * FileSystemAccessRoleArn, you must set this parameter to TLS1_2. *

*/ private String inTransitEncryption; /** *

* Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data (depending on * if this is a source or destination location). By default, DataSync uses the root directory, but you can also * include subdirectories. *

* *

* You must specify a value with forward slashes (for example, /path/to/folder). *

*
* * @param subdirectory * Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data * (depending on if this is a source or destination location). By default, DataSync uses the root directory, * but you can also include subdirectories.

*

* You must specify a value with forward slashes (for example, /path/to/folder). *

*/ public void setSubdirectory(String subdirectory) { this.subdirectory = subdirectory; } /** *

* Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data (depending on * if this is a source or destination location). By default, DataSync uses the root directory, but you can also * include subdirectories. *

* *

* You must specify a value with forward slashes (for example, /path/to/folder). *

*
* * @return Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data * (depending on if this is a source or destination location). By default, DataSync uses the root directory, * but you can also include subdirectories.

*

* You must specify a value with forward slashes (for example, /path/to/folder). *

*/ public String getSubdirectory() { return this.subdirectory; } /** *

* Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data (depending on * if this is a source or destination location). By default, DataSync uses the root directory, but you can also * include subdirectories. *

* *

* You must specify a value with forward slashes (for example, /path/to/folder). *

*
* * @param subdirectory * Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data * (depending on if this is a source or destination location). By default, DataSync uses the root directory, * but you can also include subdirectories.

*

* You must specify a value with forward slashes (for example, /path/to/folder). *

* @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationEfsRequest withSubdirectory(String subdirectory) { setSubdirectory(subdirectory); return this; } /** *

* Specifies the ARN for the Amazon EFS file system. *

* * @param efsFilesystemArn * Specifies the ARN for the Amazon EFS file system. */ public void setEfsFilesystemArn(String efsFilesystemArn) { this.efsFilesystemArn = efsFilesystemArn; } /** *

* Specifies the ARN for the Amazon EFS file system. *

* * @return Specifies the ARN for the Amazon EFS file system. */ public String getEfsFilesystemArn() { return this.efsFilesystemArn; } /** *

* Specifies the ARN for the Amazon EFS file system. *

* * @param efsFilesystemArn * Specifies the ARN for the Amazon EFS file system. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationEfsRequest withEfsFilesystemArn(String efsFilesystemArn) { setEfsFilesystemArn(efsFilesystemArn); return this; } /** *

* Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. *

* * @param ec2Config * Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. */ public void setEc2Config(Ec2Config ec2Config) { this.ec2Config = ec2Config; } /** *

* Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. *

* * @return Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. */ public Ec2Config getEc2Config() { return this.ec2Config; } /** *

* Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. *

* * @param ec2Config * Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationEfsRequest withEc2Config(Ec2Config ec2Config) { setEc2Config(ec2Config); return this; } /** *

* Specifies the key-value pair that represents a tag that you want to add to the resource. The value can be an * empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a * name tag for your location. *

* * @return Specifies the key-value pair that represents a tag that you want to add to the resource. The value can be * an empty string. This value helps you manage, filter, and search for your resources. We recommend that * you create a name tag for your location. */ public java.util.List getTags() { return tags; } /** *

* Specifies the key-value pair that represents a tag that you want to add to the resource. The value can be an * empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a * name tag for your location. *

* * @param tags * Specifies the key-value pair that represents a tag that you want to add to the resource. The value can be * an empty string. This value helps you manage, filter, and search for your resources. We recommend that you * create a name tag for your location. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* Specifies the key-value pair that represents a tag that you want to add to the resource. The value can be an * empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a * name tag for your location. *

*

* 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 * Specifies the key-value pair that represents a tag that you want to add to the resource. The value can be * an empty string. This value helps you manage, filter, and search for your resources. We recommend that you * create a name tag for your location. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationEfsRequest withTags(TagListEntry... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (TagListEntry ele : tags) { this.tags.add(ele); } return this; } /** *

* Specifies the key-value pair that represents a tag that you want to add to the resource. The value can be an * empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a * name tag for your location. *

* * @param tags * Specifies the key-value pair that represents a tag that you want to add to the resource. The value can be * an empty string. This value helps you manage, filter, and search for your resources. We recommend that you * create a name tag for your location. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationEfsRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

* Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file * system. *

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

* Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file * system. *

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

* Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file * system. *

* * @param accessPointArn * Specifies the Amazon Resource Name (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 CreateLocationEfsRequest withAccessPointArn(String accessPointArn) { setAccessPointArn(accessPointArn); return this; } /** *

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

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

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

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

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

* * @param fileSystemAccessRoleArn * Specifies an 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 CreateLocationEfsRequest withFileSystemAccessRoleArn(String fileSystemAccessRoleArn) { setFileSystemAccessRoleArn(fileSystemAccessRoleArn); return this; } /** *

* Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies data to * or from the Amazon EFS file system. *

*

* If you specify an access point using AccessPointArn or an IAM role using * FileSystemAccessRoleArn, you must set this parameter to TLS1_2. *

* * @param inTransitEncryption * Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies * data to or from the Amazon EFS file system.

*

* If you specify an access point using AccessPointArn or an IAM role using * FileSystemAccessRoleArn, you must set this parameter to TLS1_2. * @see EfsInTransitEncryption */ public void setInTransitEncryption(String inTransitEncryption) { this.inTransitEncryption = inTransitEncryption; } /** *

* Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies data to * or from the Amazon EFS file system. *

*

* If you specify an access point using AccessPointArn or an IAM role using * FileSystemAccessRoleArn, you must set this parameter to TLS1_2. *

* * @return Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies * data to or from the Amazon EFS file system.

*

* If you specify an access point using AccessPointArn or an IAM role using * FileSystemAccessRoleArn, you must set this parameter to TLS1_2. * @see EfsInTransitEncryption */ public String getInTransitEncryption() { return this.inTransitEncryption; } /** *

* Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies data to * or from the Amazon EFS file system. *

*

* If you specify an access point using AccessPointArn or an IAM role using * FileSystemAccessRoleArn, you must set this parameter to TLS1_2. *

* * @param inTransitEncryption * Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies * data to or from the Amazon EFS file system.

*

* If you specify an access point using AccessPointArn or an IAM role using * FileSystemAccessRoleArn, you must set this parameter to TLS1_2. * @return Returns a reference to this object so that method calls can be chained together. * @see EfsInTransitEncryption */ public CreateLocationEfsRequest withInTransitEncryption(String inTransitEncryption) { setInTransitEncryption(inTransitEncryption); return this; } /** *

* Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies data to * or from the Amazon EFS file system. *

*

* If you specify an access point using AccessPointArn or an IAM role using * FileSystemAccessRoleArn, you must set this parameter to TLS1_2. *

* * @param inTransitEncryption * Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies * data to or from the Amazon EFS file system.

*

* If you specify an access point using AccessPointArn or an IAM role using * FileSystemAccessRoleArn, you must set this parameter to TLS1_2. * @return Returns a reference to this object so that method calls can be chained together. * @see EfsInTransitEncryption */ public CreateLocationEfsRequest 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 (getSubdirectory() != null) sb.append("Subdirectory: ").append(getSubdirectory()).append(","); if (getEfsFilesystemArn() != null) sb.append("EfsFilesystemArn: ").append(getEfsFilesystemArn()).append(","); if (getEc2Config() != null) sb.append("Ec2Config: ").append(getEc2Config()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).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 CreateLocationEfsRequest == false) return false; CreateLocationEfsRequest other = (CreateLocationEfsRequest) obj; if (other.getSubdirectory() == null ^ this.getSubdirectory() == null) return false; if (other.getSubdirectory() != null && other.getSubdirectory().equals(this.getSubdirectory()) == false) return false; if (other.getEfsFilesystemArn() == null ^ this.getEfsFilesystemArn() == null) return false; if (other.getEfsFilesystemArn() != null && other.getEfsFilesystemArn().equals(this.getEfsFilesystemArn()) == 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.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == 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 + ((getSubdirectory() == null) ? 0 : getSubdirectory().hashCode()); hashCode = prime * hashCode + ((getEfsFilesystemArn() == null) ? 0 : getEfsFilesystemArn().hashCode()); hashCode = prime * hashCode + ((getEc2Config() == null) ? 0 : getEc2Config().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().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 CreateLocationEfsRequest clone() { return (CreateLocationEfsRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy