public static final class CfnLocationObjectStorageProps.Builder
extends java.lang.Object
CfnLocationObjectStorageProps
Constructor and Description |
---|
Builder() |
public CfnLocationObjectStorageProps.Builder agentArns(java.util.List<java.lang.String> agentArns)
CfnLocationObjectStorageProps.getAgentArns()
agentArns
- Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location. This parameter is required.this
public CfnLocationObjectStorageProps.Builder accessKey(java.lang.String accessKey)
CfnLocationObjectStorageProps.getAccessKey()
accessKey
- Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.this
public CfnLocationObjectStorageProps.Builder bucketName(java.lang.String bucketName)
CfnLocationObjectStorageProps.getBucketName()
bucketName
- Specifies the name of the object storage bucket involved in the transfer.this
public CfnLocationObjectStorageProps.Builder secretKey(java.lang.String secretKey)
CfnLocationObjectStorageProps.getSecretKey()
secretKey
- Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.this
public CfnLocationObjectStorageProps.Builder serverCertificate(java.lang.String serverCertificate)
CfnLocationObjectStorageProps.getServerCertificate()
serverCertificate
- Specifies a certificate to authenticate with an object storage system that uses a private or self-signed certificate authority (CA).
You must specify a Base64-encoded .pem
file (for example, file:///home/user/.ssh/storage_sys_certificate.pem
). The certificate can be up to 32768 bytes (before Base64 encoding).
To use this parameter, configure ServerProtocol
to HTTPS
.
this
public CfnLocationObjectStorageProps.Builder serverHostname(java.lang.String serverHostname)
CfnLocationObjectStorageProps.getServerHostname()
serverHostname
- Specifies the domain name or IP address of the object storage server.
A DataSync agent uses this hostname to mount the object storage server in a network.this
public CfnLocationObjectStorageProps.Builder serverPort(java.lang.Number serverPort)
CfnLocationObjectStorageProps.getServerPort()
serverPort
- Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).this
public CfnLocationObjectStorageProps.Builder serverProtocol(java.lang.String serverProtocol)
CfnLocationObjectStorageProps.getServerProtocol()
serverProtocol
- Specifies the protocol that your object storage server uses to communicate.this
public CfnLocationObjectStorageProps.Builder subdirectory(java.lang.String subdirectory)
CfnLocationObjectStorageProps.getSubdirectory()
subdirectory
- Specifies the object prefix for your object storage server.
If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.this
public CfnLocationObjectStorageProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnLocationObjectStorageProps.getTags()
tags
- Specifies the key-value pair that represents a tag that you want to add to the resource.
Tags can help you manage, filter, and search for your resources. We recommend creating a name tag for your location.this
public CfnLocationObjectStorageProps build()
CfnLocationObjectStorageProps
java.lang.NullPointerException
- if any required attribute was not provided