Interface CreateLocationSmbRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateLocationSmbRequest.Builder,
,CreateLocationSmbRequest> DataSyncRequest.Builder
,SdkBuilder<CreateLocationSmbRequest.Builder,
,CreateLocationSmbRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateLocationSmbRequest
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies the DataSync agent (or agents) which you want to connect to your SMB file server.agentArns
(Collection<String> agentArns) Specifies the DataSync agent (or agents) which you want to connect to your SMB file server.Specifies the name of the Active Directory domain that your SMB file server belongs to.default CreateLocationSmbRequest.Builder
mountOptions
(Consumer<SmbMountOptions.Builder> mountOptions) Specifies the version of the SMB protocol that DataSync uses to access your SMB file server.mountOptions
(SmbMountOptions mountOptions) Specifies the version of the SMB protocol that DataSync uses to access your SMB file server.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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.serverHostname
(String serverHostname) Specifies the Domain Name Service (DNS) name or IP address of the SMB file server that your DataSync agent will mount.subdirectory
(String subdirectory) Specifies the name of the share exported by your SMB file server where DataSync will read or write data.tags
(Collection<TagListEntry> tags) Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources.tags
(Consumer<TagListEntry.Builder>... tags) Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources.tags
(TagListEntry... tags) Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources.Specifies the user that can mount and access the files, folders, and file metadata in your SMB file server.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.datasync.model.DataSyncRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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).
- Parameters:
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).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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).
- Parameters:
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).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mountOptions
Specifies the version of the SMB protocol that DataSync uses to access your SMB file server.
- Parameters:
mountOptions
- Specifies the version of the SMB protocol that DataSync uses to access your SMB file server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mountOptions
default CreateLocationSmbRequest.Builder mountOptions(Consumer<SmbMountOptions.Builder> mountOptions) Specifies the version of the SMB protocol that DataSync uses to access your SMB file server.
This is a convenience method that creates an instance of theSmbMountOptions.Builder
avoiding the need to create one manually viaSmbMountOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomountOptions(SmbMountOptions)
.- Parameters:
mountOptions
- a consumer that will call methods onSmbMountOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
This is a convenience method that creates an instance of theTagListEntry.Builder
avoiding the need to create one manually viaTagListEntry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<TagListEntry>)
.- Parameters:
tags
- a consumer that will call methods onTagListEntry.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateLocationSmbRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateLocationSmbRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-