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

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

/**
 * 

* CreateLocationSmbRequest *

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

* Specifies the name of the share exported by your SMB file server where DataSync will read or write data. You can * include a subdirectory in the share path (for example, /path/to/subdirectory). Make sure that other * SMB clients in your network can also mount this path. *

*

* To copy all data in the subdirectory, DataSync must be able to mount the SMB share and access all of its data. * For more information, see required permissions for SMB locations. *

*/ private String subdirectory; /** *

* Specifies the Domain Name Service (DNS) name or IP address of the SMB file server that your DataSync agent will * mount. *

* *

* You can't specify an IP version 6 (IPv6) address. *

*
*/ private String serverHostname; /** *

* Specifies the user that can mount and access the files, folders, and file metadata in your SMB file server. *

*

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

*/ private String user; /** *

* Specifies the name of the Active Directory domain that your SMB file server belongs to. *

*

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

*/ private String domain; /** *

* Specifies the password of the user who can mount your SMB file server and has permission to access the files and * folders involved in your transfer. *

*

* For more information, see required permissions for SMB locations. *

*/ private String password; /** *

* Specifies the DataSync agent (or agents) which you want to connect to your SMB file server. You specify an agent * by using its Amazon Resource Name (ARN). *

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

* Specifies the version of the SMB protocol that DataSync uses to access your SMB file server. *

*/ private SmbMountOptions mountOptions; /** *

* 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 name of the share exported by your SMB file server where DataSync will read or write data. You can * include a subdirectory in the share path (for example, /path/to/subdirectory). Make sure that other * SMB clients in your network can also mount this path. *

*

* To copy all data in the subdirectory, DataSync must be able to mount the SMB share and access all of its data. * For more information, see required permissions for SMB locations. *

* * @param subdirectory * Specifies the name of the share exported by your SMB file server where DataSync will read or write data. * You can include a subdirectory in the share path (for example, /path/to/subdirectory). Make * sure that other SMB clients in your network can also mount this path.

*

* To copy all data in the subdirectory, DataSync must be able to mount the SMB share and access all of its * data. For more information, see required permissions for SMB locations. */ public void setSubdirectory(String subdirectory) { this.subdirectory = subdirectory; } /** *

* Specifies the name of the share exported by your SMB file server where DataSync will read or write data. You can * include a subdirectory in the share path (for example, /path/to/subdirectory). Make sure that other * SMB clients in your network can also mount this path. *

*

* To copy all data in the subdirectory, DataSync must be able to mount the SMB share and access all of its data. * For more information, see required permissions for SMB locations. *

* * @return Specifies the name of the share exported by your SMB file server where DataSync will read or write data. * You can include a subdirectory in the share path (for example, /path/to/subdirectory). Make * sure that other SMB clients in your network can also mount this path.

*

* To copy all data in the subdirectory, DataSync must be able to mount the SMB share and access all of its * data. For more information, see required permissions for SMB locations. */ public String getSubdirectory() { return this.subdirectory; } /** *

* Specifies the name of the share exported by your SMB file server where DataSync will read or write data. You can * include a subdirectory in the share path (for example, /path/to/subdirectory). Make sure that other * SMB clients in your network can also mount this path. *

*

* To copy all data in the subdirectory, DataSync must be able to mount the SMB share and access all of its data. * For more information, see required permissions for SMB locations. *

* * @param subdirectory * Specifies the name of the share exported by your SMB file server where DataSync will read or write data. * You can include a subdirectory in the share path (for example, /path/to/subdirectory). Make * sure that other SMB clients in your network can also mount this path.

*

* To copy all data in the subdirectory, DataSync must be able to mount the SMB share and access all of its * data. For more information, see required permissions for SMB locations. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationSmbRequest withSubdirectory(String subdirectory) { setSubdirectory(subdirectory); return this; } /** *

* Specifies the Domain Name Service (DNS) name or IP address of the SMB file server that your DataSync agent will * mount. *

* *

* You can't specify an IP version 6 (IPv6) address. *

*
* * @param serverHostname * Specifies the Domain Name Service (DNS) name or IP address of the SMB file server that your DataSync agent * will mount.

*

* You can't specify an IP version 6 (IPv6) address. *

*/ public void setServerHostname(String serverHostname) { this.serverHostname = serverHostname; } /** *

* Specifies the Domain Name Service (DNS) name or IP address of the SMB file server that your DataSync agent will * mount. *

* *

* You can't specify an IP version 6 (IPv6) address. *

*
* * @return Specifies the Domain Name Service (DNS) name or IP address of the SMB file server that your DataSync * agent will mount.

*

* You can't specify an IP version 6 (IPv6) address. *

*/ public String getServerHostname() { return this.serverHostname; } /** *

* Specifies the Domain Name Service (DNS) name or IP address of the SMB file server that your DataSync agent will * mount. *

* *

* You can't specify an IP version 6 (IPv6) address. *

*
* * @param serverHostname * Specifies the Domain Name Service (DNS) name or IP address of the SMB file server that your DataSync agent * will mount.

*

* You can't specify an IP version 6 (IPv6) address. *

* @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationSmbRequest withServerHostname(String serverHostname) { setServerHostname(serverHostname); return this; } /** *

* Specifies the user that can mount and access the files, folders, and file metadata in your SMB file server. *

*

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

* * @param user * Specifies the user that can mount and access the files, folders, and file metadata in your SMB file * server.

*

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

* Specifies the user that can mount and access the files, folders, and file metadata in your SMB file server. *

*

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

* * @return Specifies the user that can mount and access the files, folders, and file metadata in your SMB file * server.

*

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

* Specifies the user that can mount and access the files, folders, and file metadata in your SMB file server. *

*

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

* * @param user * Specifies the user that can mount and access the files, folders, and file metadata in your SMB file * server.

*

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

* Specifies the name of the Active Directory domain that your SMB file server belongs to. *

*

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

* * @param domain * Specifies the name of the Active Directory domain that your SMB file server belongs to.

*

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

* Specifies the name of the Active Directory domain that your SMB file server belongs to. *

*

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

* * @return Specifies the name of the Active Directory domain that your SMB file server belongs to.

*

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

* Specifies the name of the Active Directory domain that your SMB file server belongs to. *

*

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

* * @param domain * Specifies the name of the Active Directory domain that your SMB file server belongs to.

*

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

* Specifies the password of the user who can mount your SMB file server and has permission to access the files and * folders involved in your transfer. *

*

* For more information, see required permissions for SMB locations. *

* * @param password * Specifies the password of the user who can mount your SMB file server and has permission to access the * files and folders involved in your transfer.

*

* For more information, see required permissions for SMB locations. */ public void setPassword(String password) { this.password = password; } /** *

* Specifies the password of the user who can mount your SMB file server and has permission to access the files and * folders involved in your transfer. *

*

* For more information, see required permissions for SMB locations. *

* * @return Specifies the password of the user who can mount your SMB file server and has permission to access the * files and folders involved in your transfer.

*

* For more information, see required permissions for SMB locations. */ public String getPassword() { return this.password; } /** *

* Specifies the password of the user who can mount your SMB file server and has permission to access the files and * folders involved in your transfer. *

*

* For more information, see required permissions for SMB locations. *

* * @param password * Specifies the password of the user who can mount your SMB file server and has permission to access the * files and folders involved in your transfer.

*

* For more information, see required permissions for SMB locations. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationSmbRequest withPassword(String password) { setPassword(password); return this; } /** *

* Specifies the DataSync agent (or agents) which you want to connect to your SMB file server. You specify an agent * by using its Amazon Resource Name (ARN). *

* * @return Specifies the DataSync agent (or agents) which you want to connect to your SMB file server. You specify * an agent by using its Amazon Resource Name (ARN). */ public java.util.List getAgentArns() { return agentArns; } /** *

* Specifies the DataSync agent (or agents) which you want to connect to your SMB file server. You specify an agent * by using its Amazon Resource Name (ARN). *

* * @param agentArns * Specifies the DataSync agent (or agents) which you want to connect to your SMB file server. You specify an * agent by using its Amazon Resource Name (ARN). */ public void setAgentArns(java.util.Collection agentArns) { if (agentArns == null) { this.agentArns = null; return; } this.agentArns = new java.util.ArrayList(agentArns); } /** *

* Specifies the DataSync agent (or agents) which you want to connect to your SMB file server. You specify an agent * by using its Amazon Resource Name (ARN). *

*

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

* * @param agentArns * Specifies the DataSync agent (or agents) which you want to connect to your SMB file server. You specify an * agent by using its Amazon Resource Name (ARN). * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationSmbRequest withAgentArns(String... agentArns) { if (this.agentArns == null) { setAgentArns(new java.util.ArrayList(agentArns.length)); } for (String ele : agentArns) { this.agentArns.add(ele); } return this; } /** *

* Specifies the DataSync agent (or agents) which you want to connect to your SMB file server. You specify an agent * by using its Amazon Resource Name (ARN). *

* * @param agentArns * Specifies the DataSync agent (or agents) which you want to connect to your SMB file server. You specify an * agent by using its Amazon Resource Name (ARN). * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationSmbRequest withAgentArns(java.util.Collection agentArns) { setAgentArns(agentArns); return this; } /** *

* Specifies the version of the SMB protocol that DataSync uses to access your SMB file server. *

* * @param mountOptions * Specifies the version of the SMB protocol that DataSync uses to access your SMB file server. */ public void setMountOptions(SmbMountOptions mountOptions) { this.mountOptions = mountOptions; } /** *

* Specifies the version of the SMB protocol that DataSync uses to access your SMB file server. *

* * @return Specifies the version of the SMB protocol that DataSync uses to access your SMB file server. */ public SmbMountOptions getMountOptions() { return this.mountOptions; } /** *

* Specifies the version of the SMB protocol that DataSync uses to access your SMB file server. *

* * @param mountOptions * Specifies the version of the SMB protocol that DataSync uses to access your SMB file server. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationSmbRequest withMountOptions(SmbMountOptions mountOptions) { setMountOptions(mountOptions); 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 CreateLocationSmbRequest 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 CreateLocationSmbRequest withTags(java.util.Collection tags) { setTags(tags); 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 (getServerHostname() != null) sb.append("ServerHostname: ").append(getServerHostname()).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***").append(","); if (getAgentArns() != null) sb.append("AgentArns: ").append(getAgentArns()).append(","); if (getMountOptions() != null) sb.append("MountOptions: ").append(getMountOptions()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateLocationSmbRequest == false) return false; CreateLocationSmbRequest other = (CreateLocationSmbRequest) obj; if (other.getSubdirectory() == null ^ this.getSubdirectory() == null) return false; if (other.getSubdirectory() != null && other.getSubdirectory().equals(this.getSubdirectory()) == false) return false; if (other.getServerHostname() == null ^ this.getServerHostname() == null) return false; if (other.getServerHostname() != null && other.getServerHostname().equals(this.getServerHostname()) == 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; if (other.getAgentArns() == null ^ this.getAgentArns() == null) return false; if (other.getAgentArns() != null && other.getAgentArns().equals(this.getAgentArns()) == false) return false; if (other.getMountOptions() == null ^ this.getMountOptions() == null) return false; if (other.getMountOptions() != null && other.getMountOptions().equals(this.getMountOptions()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == 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 + ((getServerHostname() == null) ? 0 : getServerHostname().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()); hashCode = prime * hashCode + ((getAgentArns() == null) ? 0 : getAgentArns().hashCode()); hashCode = prime * hashCode + ((getMountOptions() == null) ? 0 : getMountOptions().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreateLocationSmbRequest clone() { return (CreateLocationSmbRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy