@Generated(value="software.amazon.awssdk:codegen") public final class CreateLocationObjectStorageRequest extends DataSyncRequest implements ToCopyableBuilder<CreateLocationObjectStorageRequest.Builder,CreateLocationObjectStorageRequest>
CreateLocationObjectStorageRequest
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateLocationObjectStorageRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accessKey()
Specifies the access key (for example, a user name) if credentials are required to authenticate with the object
storage server.
|
List<String> |
agentArns()
Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location.
|
String |
bucketName()
Specifies the name of the object storage bucket involved in the transfer.
|
static CreateLocationObjectStorageRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAgentArns()
For responses, this returns true if the service returned a value for the AgentArns property.
|
int |
hashCode() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
List<SdkField<?>> |
sdkFields() |
String |
secretKey()
Specifies the secret key (for example, a password) if credentials are required to authenticate with the object
storage server.
|
static Class<? extends CreateLocationObjectStorageRequest.Builder> |
serializableBuilderClass() |
SdkBytes |
serverCertificate()
Specifies a certificate to authenticate with an object storage system that uses a private or self-signed
certificate authority (CA).
|
String |
serverHostname()
Specifies the domain name or IP address of the object storage server.
|
Integer |
serverPort()
Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
|
ObjectStorageServerProtocol |
serverProtocol()
Specifies the protocol that your object storage server uses to communicate.
|
String |
serverProtocolAsString()
Specifies the protocol that your object storage server uses to communicate.
|
String |
subdirectory()
Specifies the object prefix for your object storage server.
|
List<TagListEntry> |
tags()
Specifies the key-value pair that represents a tag that you want to add to the resource.
|
CreateLocationObjectStorageRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String 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.
public final Integer serverPort()
Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
public final ObjectStorageServerProtocol serverProtocol()
Specifies the protocol that your object storage server uses to communicate.
If the service returns an enum value that is not available in the current SDK version, serverProtocol
will return ObjectStorageServerProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from serverProtocolAsString().
ObjectStorageServerProtocolpublic final String serverProtocolAsString()
Specifies the protocol that your object storage server uses to communicate.
If the service returns an enum value that is not available in the current SDK version, serverProtocol
will return ObjectStorageServerProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from serverProtocolAsString().
ObjectStorageServerProtocolpublic final String 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.
public final String bucketName()
Specifies the name of the object storage bucket involved in the transfer.
public final String accessKey()
Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.
public final String secretKey()
Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.
public final boolean hasAgentArns()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> agentArns()
Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAgentArns() method.
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<TagListEntry> 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public final SdkBytes 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.
.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.
public CreateLocationObjectStorageRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateLocationObjectStorageRequest.Builder,CreateLocationObjectStorageRequest>toBuilder in class DataSyncRequestpublic static CreateLocationObjectStorageRequest.Builder builder()
public static Class<? extends CreateLocationObjectStorageRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2022. All rights reserved.