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

com.amazonaws.services.datasync.model.CreateLocationFsxWindowsRequest 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.780
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;

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

    /**
     * 

* Specifies a mount path for your file system using forward slashes. This is where DataSync reads or writes data * (depending on if this is a source or destination location). *

*/ private String subdirectory; /** *

* Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server file system. *

*/ private String fsxFilesystemArn; /** *

* Specifies the ARNs of the security groups that provide access to your file system's preferred subnet. *

* *

* If you choose a security group that doesn't allow connections from within itself, do one of the following: *

*
    *
  • *

    * Configure the security group to allow it to communicate within itself. *

    *
  • *
  • *

    * Choose a different security group that can communicate with the mount target's security group. *

    *
  • *
*
*/ private java.util.List securityGroupArns; /** *

* Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your location. *

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

* Specifies the user with the permissions to mount and access the files, folders, and file metadata in your FSx for * Windows File Server file system. *

*

* For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations. *

*/ private String user; /** *

* Specifies the name of the Microsoft Active Directory domain that the FSx for Windows File Server file system * belongs to. *

*

* If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that * DataSync connects to the right file system. *

*/ private String domain; /** *

* Specifies the password of the user with the permissions to mount and access the files, folders, and file metadata * in your FSx for Windows File Server file system. *

*/ private String password; /** *

* Specifies a mount path for your file system using forward slashes. This is where DataSync reads or writes data * (depending on if this is a source or destination location). *

* * @param subdirectory * Specifies a mount path for your file system using forward slashes. This is where DataSync reads or writes * data (depending on if this is a source or destination location). */ public void setSubdirectory(String subdirectory) { this.subdirectory = subdirectory; } /** *

* Specifies a mount path for your file system using forward slashes. This is where DataSync reads or writes data * (depending on if this is a source or destination location). *

* * @return Specifies a mount path for your file system using forward slashes. This is where DataSync reads or writes * data (depending on if this is a source or destination location). */ public String getSubdirectory() { return this.subdirectory; } /** *

* Specifies a mount path for your file system using forward slashes. This is where DataSync reads or writes data * (depending on if this is a source or destination location). *

* * @param subdirectory * Specifies a mount path for your file system using forward slashes. This is where DataSync reads or writes * data (depending on if this is a source or destination location). * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationFsxWindowsRequest withSubdirectory(String subdirectory) { setSubdirectory(subdirectory); return this; } /** *

* Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server file system. *

* * @param fsxFilesystemArn * Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server file system. */ public void setFsxFilesystemArn(String fsxFilesystemArn) { this.fsxFilesystemArn = fsxFilesystemArn; } /** *

* Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server file system. *

* * @return Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server file system. */ public String getFsxFilesystemArn() { return this.fsxFilesystemArn; } /** *

* Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server file system. *

* * @param fsxFilesystemArn * Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server file system. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationFsxWindowsRequest withFsxFilesystemArn(String fsxFilesystemArn) { setFsxFilesystemArn(fsxFilesystemArn); return this; } /** *

* Specifies the ARNs of the security groups that provide access to your file system's preferred subnet. *

* *

* If you choose a security group that doesn't allow connections from within itself, do one of the following: *

*
    *
  • *

    * Configure the security group to allow it to communicate within itself. *

    *
  • *
  • *

    * Choose a different security group that can communicate with the mount target's security group. *

    *
  • *
*
* * @return Specifies the ARNs of the security groups that provide access to your file system's preferred subnet.

* *

* If you choose a security group that doesn't allow connections from within itself, do one of the * following: *

*
    *
  • *

    * Configure the security group to allow it to communicate within itself. *

    *
  • *
  • *

    * Choose a different security group that can communicate with the mount target's security group. *

    *
  • *
*/ public java.util.List getSecurityGroupArns() { return securityGroupArns; } /** *

* Specifies the ARNs of the security groups that provide access to your file system's preferred subnet. *

* *

* If you choose a security group that doesn't allow connections from within itself, do one of the following: *

*
    *
  • *

    * Configure the security group to allow it to communicate within itself. *

    *
  • *
  • *

    * Choose a different security group that can communicate with the mount target's security group. *

    *
  • *
*
* * @param securityGroupArns * Specifies the ARNs of the security groups that provide access to your file system's preferred subnet.

* *

* If you choose a security group that doesn't allow connections from within itself, do one of the following: *

*
    *
  • *

    * Configure the security group to allow it to communicate within itself. *

    *
  • *
  • *

    * Choose a different security group that can communicate with the mount target's security group. *

    *
  • *
*/ public void setSecurityGroupArns(java.util.Collection securityGroupArns) { if (securityGroupArns == null) { this.securityGroupArns = null; return; } this.securityGroupArns = new java.util.ArrayList(securityGroupArns); } /** *

* Specifies the ARNs of the security groups that provide access to your file system's preferred subnet. *

* *

* If you choose a security group that doesn't allow connections from within itself, do one of the following: *

*
    *
  • *

    * Configure the security group to allow it to communicate within itself. *

    *
  • *
  • *

    * Choose a different security group that can communicate with the mount target's security group. *

    *
  • *
*
*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecurityGroupArns(java.util.Collection)} or {@link #withSecurityGroupArns(java.util.Collection)} if * you want to override the existing values. *

* * @param securityGroupArns * Specifies the ARNs of the security groups that provide access to your file system's preferred subnet.

* *

* If you choose a security group that doesn't allow connections from within itself, do one of the following: *

*
    *
  • *

    * Configure the security group to allow it to communicate within itself. *

    *
  • *
  • *

    * Choose a different security group that can communicate with the mount target's security group. *

    *
  • *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationFsxWindowsRequest withSecurityGroupArns(String... securityGroupArns) { if (this.securityGroupArns == null) { setSecurityGroupArns(new java.util.ArrayList(securityGroupArns.length)); } for (String ele : securityGroupArns) { this.securityGroupArns.add(ele); } return this; } /** *

* Specifies the ARNs of the security groups that provide access to your file system's preferred subnet. *

* *

* If you choose a security group that doesn't allow connections from within itself, do one of the following: *

*
    *
  • *

    * Configure the security group to allow it to communicate within itself. *

    *
  • *
  • *

    * Choose a different security group that can communicate with the mount target's security group. *

    *
  • *
*
* * @param securityGroupArns * Specifies the ARNs of the security groups that provide access to your file system's preferred subnet.

* *

* If you choose a security group that doesn't allow connections from within itself, do one of the following: *

*
    *
  • *

    * Configure the security group to allow it to communicate within itself. *

    *
  • *
  • *

    * Choose a different security group that can communicate with the mount target's security group. *

    *
  • *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationFsxWindowsRequest withSecurityGroupArns(java.util.Collection securityGroupArns) { setSecurityGroupArns(securityGroupArns); return this; } /** *

* Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your location. *

* * @return Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your location. */ public java.util.List getTags() { return tags; } /** *

* Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your location. *

* * @param tags * Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least 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 labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least 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 labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your location. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationFsxWindowsRequest 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 labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your location. *

* * @param tags * Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your location. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationFsxWindowsRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

* Specifies the user with the permissions to mount and access the files, folders, and file metadata in your FSx for * Windows File Server file system. *

*

* For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations. *

* * @param user * Specifies the user with the permissions to mount and access the files, folders, and file metadata in your * FSx for Windows File Server file system.

*

* For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations. */ public void setUser(String user) { this.user = user; } /** *

* Specifies the user with the permissions to mount and access the files, folders, and file metadata in your FSx for * Windows File Server file system. *

*

* For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations. *

* * @return Specifies the user with the permissions to mount and access the files, folders, and file metadata in your * FSx for Windows File Server file system.

*

* For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations. */ public String getUser() { return this.user; } /** *

* Specifies the user with the permissions to mount and access the files, folders, and file metadata in your FSx for * Windows File Server file system. *

*

* For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations. *

* * @param user * Specifies the user with the permissions to mount and access the files, folders, and file metadata in your * FSx for Windows File Server file system.

*

* For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationFsxWindowsRequest withUser(String user) { setUser(user); return this; } /** *

* Specifies the name of the Microsoft Active Directory domain that the FSx for Windows File Server file system * belongs to. *

*

* If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that * DataSync connects to the right file system. *

* * @param domain * Specifies the name of the Microsoft Active Directory domain that the FSx for Windows File Server file * system belongs to.

*

* If you have multiple Active Directory domains in your environment, configuring this parameter makes sure * that DataSync connects to the right file system. */ public void setDomain(String domain) { this.domain = domain; } /** *

* Specifies the name of the Microsoft Active Directory domain that the FSx for Windows File Server file system * belongs to. *

*

* If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that * DataSync connects to the right file system. *

* * @return Specifies the name of the Microsoft Active Directory domain that the FSx for Windows File Server file * system belongs to.

*

* If you have multiple Active Directory domains in your environment, configuring this parameter makes sure * that DataSync connects to the right file system. */ public String getDomain() { return this.domain; } /** *

* Specifies the name of the Microsoft Active Directory domain that the FSx for Windows File Server file system * belongs to. *

*

* If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that * DataSync connects to the right file system. *

* * @param domain * Specifies the name of the Microsoft Active Directory domain that the FSx for Windows File Server file * system belongs to.

*

* If you have multiple Active Directory domains in your environment, configuring this parameter makes sure * that DataSync connects to the right file system. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationFsxWindowsRequest withDomain(String domain) { setDomain(domain); return this; } /** *

* Specifies the password of the user with the permissions to mount and access the files, folders, and file metadata * in your FSx for Windows File Server file system. *

* * @param password * Specifies the password of the user with the permissions to mount and access the files, folders, and file * metadata in your FSx for Windows File Server file system. */ public void setPassword(String password) { this.password = password; } /** *

* Specifies the password of the user with the permissions to mount and access the files, folders, and file metadata * in your FSx for Windows File Server file system. *

* * @return Specifies the password of the user with the permissions to mount and access the files, folders, and file * metadata in your FSx for Windows File Server file system. */ public String getPassword() { return this.password; } /** *

* Specifies the password of the user with the permissions to mount and access the files, folders, and file metadata * in your FSx for Windows File Server file system. *

* * @param password * Specifies the password of the user with the permissions to mount and access the files, folders, and file * metadata in your FSx for Windows File Server file system. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationFsxWindowsRequest withPassword(String password) { setPassword(password); 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 (getFsxFilesystemArn() != null) sb.append("FsxFilesystemArn: ").append(getFsxFilesystemArn()).append(","); if (getSecurityGroupArns() != null) sb.append("SecurityGroupArns: ").append(getSecurityGroupArns()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getUser() != null) sb.append("User: ").append(getUser()).append(","); if (getDomain() != null) sb.append("Domain: ").append(getDomain()).append(","); if (getPassword() != null) sb.append("Password: ").append("***Sensitive Data Redacted***"); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateLocationFsxWindowsRequest == false) return false; CreateLocationFsxWindowsRequest other = (CreateLocationFsxWindowsRequest) obj; if (other.getSubdirectory() == null ^ this.getSubdirectory() == null) return false; if (other.getSubdirectory() != null && other.getSubdirectory().equals(this.getSubdirectory()) == false) return false; if (other.getFsxFilesystemArn() == null ^ this.getFsxFilesystemArn() == null) return false; if (other.getFsxFilesystemArn() != null && other.getFsxFilesystemArn().equals(this.getFsxFilesystemArn()) == false) return false; if (other.getSecurityGroupArns() == null ^ this.getSecurityGroupArns() == null) return false; if (other.getSecurityGroupArns() != null && other.getSecurityGroupArns().equals(this.getSecurityGroupArns()) == 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.getUser() == null ^ this.getUser() == null) return false; if (other.getUser() != null && other.getUser().equals(this.getUser()) == false) return false; if (other.getDomain() == null ^ this.getDomain() == null) return false; if (other.getDomain() != null && other.getDomain().equals(this.getDomain()) == false) return false; if (other.getPassword() == null ^ this.getPassword() == null) return false; if (other.getPassword() != null && other.getPassword().equals(this.getPassword()) == 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 + ((getFsxFilesystemArn() == null) ? 0 : getFsxFilesystemArn().hashCode()); hashCode = prime * hashCode + ((getSecurityGroupArns() == null) ? 0 : getSecurityGroupArns().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getUser() == null) ? 0 : getUser().hashCode()); hashCode = prime * hashCode + ((getDomain() == null) ? 0 : getDomain().hashCode()); hashCode = prime * hashCode + ((getPassword() == null) ? 0 : getPassword().hashCode()); return hashCode; } @Override public CreateLocationFsxWindowsRequest clone() { return (CreateLocationFsxWindowsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy