/* * Copyright 2018-2023 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 UpdateLocationSmbRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The Amazon Resource Name (ARN) of the SMB location to update. *
*/ private String locationArn; /** ** The subdirectory in the SMB file system that is used to read data from the SMB source location or write data to * the SMB destination. The SMB path should be a path that's exported by the SMB server, or a subdirectory of that * path. The path should be such that it can be mounted by other SMB clients in your network. *
*
* Subdirectory
must be specified with forward slashes. For example, /path/to/folder
.
*
* To transfer all the data in the folder that you specified, DataSync must have permissions to mount the SMB share * and to access all the data in that share. To ensure this, do either of the following: *
** Ensure that the user/password specified belongs to the user who can mount the share and who has the appropriate * permissions for all of the files and directories that you want DataSync to access. *
** Use credentials of a member of the Backup Operators group to mount the share. *
** Doing either of these options enables the agent to access the data. For the agent to access directories, you must * also enable all execute access. *
*/ private String subdirectory; /** ** The user who can mount the share has the permissions to access files and folders in the SMB share. *
*/ private String user; /** ** The name of the Windows domain that the SMB server belongs to. *
*/ private String domain; /** ** The password of the user who can mount the share has the permissions to access files and folders in the SMB * share. *
*/ private String password; /** ** The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location. *
*/ private java.util.List* The Amazon Resource Name (ARN) of the SMB location to update. *
* * @param locationArn * The Amazon Resource Name (ARN) of the SMB location to update. */ public void setLocationArn(String locationArn) { this.locationArn = locationArn; } /** ** The Amazon Resource Name (ARN) of the SMB location to update. *
* * @return The Amazon Resource Name (ARN) of the SMB location to update. */ public String getLocationArn() { return this.locationArn; } /** ** The Amazon Resource Name (ARN) of the SMB location to update. *
* * @param locationArn * The Amazon Resource Name (ARN) of the SMB location to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLocationSmbRequest withLocationArn(String locationArn) { setLocationArn(locationArn); return this; } /** ** The subdirectory in the SMB file system that is used to read data from the SMB source location or write data to * the SMB destination. The SMB path should be a path that's exported by the SMB server, or a subdirectory of that * path. The path should be such that it can be mounted by other SMB clients in your network. *
*
* Subdirectory
must be specified with forward slashes. For example, /path/to/folder
.
*
* To transfer all the data in the folder that you specified, DataSync must have permissions to mount the SMB share * and to access all the data in that share. To ensure this, do either of the following: *
** Ensure that the user/password specified belongs to the user who can mount the share and who has the appropriate * permissions for all of the files and directories that you want DataSync to access. *
** Use credentials of a member of the Backup Operators group to mount the share. *
** Doing either of these options enables the agent to access the data. For the agent to access directories, you must * also enable all execute access. *
* * @param subdirectory * The subdirectory in the SMB file system that is used to read data from the SMB source location or write * data to the SMB destination. The SMB path should be a path that's exported by the SMB server, or a * subdirectory of that path. The path should be such that it can be mounted by other SMB clients in your * network.
* Subdirectory
must be specified with forward slashes. For example,
* /path/to/folder
.
*
* To transfer all the data in the folder that you specified, DataSync must have permissions to mount the SMB * share and to access all the data in that share. To ensure this, do either of the following: *
** Ensure that the user/password specified belongs to the user who can mount the share and who has the * appropriate permissions for all of the files and directories that you want DataSync to access. *
** Use credentials of a member of the Backup Operators group to mount the share. *
** Doing either of these options enables the agent to access the data. For the agent to access directories, * you must also enable all execute access. */ public void setSubdirectory(String subdirectory) { this.subdirectory = subdirectory; } /** *
* The subdirectory in the SMB file system that is used to read data from the SMB source location or write data to * the SMB destination. The SMB path should be a path that's exported by the SMB server, or a subdirectory of that * path. The path should be such that it can be mounted by other SMB clients in your network. *
*
* Subdirectory
must be specified with forward slashes. For example, /path/to/folder
.
*
* To transfer all the data in the folder that you specified, DataSync must have permissions to mount the SMB share * and to access all the data in that share. To ensure this, do either of the following: *
** Ensure that the user/password specified belongs to the user who can mount the share and who has the appropriate * permissions for all of the files and directories that you want DataSync to access. *
** Use credentials of a member of the Backup Operators group to mount the share. *
** Doing either of these options enables the agent to access the data. For the agent to access directories, you must * also enable all execute access. *
* * @return The subdirectory in the SMB file system that is used to read data from the SMB source location or write * data to the SMB destination. The SMB path should be a path that's exported by the SMB server, or a * subdirectory of that path. The path should be such that it can be mounted by other SMB clients in your * network.
* Subdirectory
must be specified with forward slashes. For example,
* /path/to/folder
.
*
* To transfer all the data in the folder that you specified, DataSync must have permissions to mount the * SMB share and to access all the data in that share. To ensure this, do either of the following: *
** Ensure that the user/password specified belongs to the user who can mount the share and who has the * appropriate permissions for all of the files and directories that you want DataSync to access. *
** Use credentials of a member of the Backup Operators group to mount the share. *
** Doing either of these options enables the agent to access the data. For the agent to access directories, * you must also enable all execute access. */ public String getSubdirectory() { return this.subdirectory; } /** *
* The subdirectory in the SMB file system that is used to read data from the SMB source location or write data to * the SMB destination. The SMB path should be a path that's exported by the SMB server, or a subdirectory of that * path. The path should be such that it can be mounted by other SMB clients in your network. *
*
* Subdirectory
must be specified with forward slashes. For example, /path/to/folder
.
*
* To transfer all the data in the folder that you specified, DataSync must have permissions to mount the SMB share * and to access all the data in that share. To ensure this, do either of the following: *
** Ensure that the user/password specified belongs to the user who can mount the share and who has the appropriate * permissions for all of the files and directories that you want DataSync to access. *
** Use credentials of a member of the Backup Operators group to mount the share. *
** Doing either of these options enables the agent to access the data. For the agent to access directories, you must * also enable all execute access. *
* * @param subdirectory * The subdirectory in the SMB file system that is used to read data from the SMB source location or write * data to the SMB destination. The SMB path should be a path that's exported by the SMB server, or a * subdirectory of that path. The path should be such that it can be mounted by other SMB clients in your * network.
* Subdirectory
must be specified with forward slashes. For example,
* /path/to/folder
.
*
* To transfer all the data in the folder that you specified, DataSync must have permissions to mount the SMB * share and to access all the data in that share. To ensure this, do either of the following: *
** Ensure that the user/password specified belongs to the user who can mount the share and who has the * appropriate permissions for all of the files and directories that you want DataSync to access. *
** Use credentials of a member of the Backup Operators group to mount the share. *
** Doing either of these options enables the agent to access the data. For the agent to access directories, * you must also enable all execute access. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLocationSmbRequest withSubdirectory(String subdirectory) { setSubdirectory(subdirectory); return this; } /** *
* The user who can mount the share has the permissions to access files and folders in the SMB share. *
* * @param user * The user who can mount the share has the permissions to access files and folders in the SMB share. */ public void setUser(String user) { this.user = user; } /** ** The user who can mount the share has the permissions to access files and folders in the SMB share. *
* * @return The user who can mount the share has the permissions to access files and folders in the SMB share. */ public String getUser() { return this.user; } /** ** The user who can mount the share has the permissions to access files and folders in the SMB share. *
* * @param user * The user who can mount the share has the permissions to access files and folders in the SMB share. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLocationSmbRequest withUser(String user) { setUser(user); return this; } /** ** The name of the Windows domain that the SMB server belongs to. *
* * @param domain * The name of the Windows domain that the SMB server belongs to. */ public void setDomain(String domain) { this.domain = domain; } /** ** The name of the Windows domain that the SMB server belongs to. *
* * @return The name of the Windows domain that the SMB server belongs to. */ public String getDomain() { return this.domain; } /** ** The name of the Windows domain that the SMB server belongs to. *
* * @param domain * The name of the Windows domain that the SMB server belongs to. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLocationSmbRequest withDomain(String domain) { setDomain(domain); return this; } /** ** The password of the user who can mount the share has the permissions to access files and folders in the SMB * share. *
* * @param password * The password of the user who can mount the share has the permissions to access files and folders in the * SMB share. */ public void setPassword(String password) { this.password = password; } /** ** The password of the user who can mount the share has the permissions to access files and folders in the SMB * share. *
* * @return The password of the user who can mount the share has the permissions to access files and folders in the * SMB share. */ public String getPassword() { return this.password; } /** ** The password of the user who can mount the share has the permissions to access files and folders in the SMB * share. *
* * @param password * The password of the user who can mount the share has the permissions to access files and folders in the * SMB share. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLocationSmbRequest withPassword(String password) { setPassword(password); return this; } /** ** The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location. *
* * @return The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location. */ public java.util.List* The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location. *
* * @param agentArns * The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location. */ public void setAgentArns(java.util.Collection* The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location. *
** 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 * The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLocationSmbRequest withAgentArns(String... agentArns) { if (this.agentArns == null) { setAgentArns(new java.util.ArrayList* The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location. *
* * @param agentArns * The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block (SMB) location. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLocationSmbRequest withAgentArns(java.util.Collection