JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
com.amazonaws.services.s3

Class S3ClientOptions.Builder

    • Method Detail

      • setPathStyleAccess

        public S3ClientOptions.Builder setPathStyleAccess(boolean pathStyleAccess)

        Configures the client to use path-style access for all requests.

        Amazon S3 supports virtual-hosted-style and path-style access in all Regions. The path-style syntax, however, requires that you use the region-specific endpoint when attempting to access a bucket.

        The default behaviour is to detect which access style to use based on the configured endpoint (an IP will result in path-style access) and the bucket being accessed (some buckets are not valid DNS names). Setting this flag will result in path-style access being used for all requests.

        Parameters:
        pathStyleAccess - True to always use path-style access.
        Returns:
        this Builder instance that can be used for method chaining
      • setPayloadSigningEnabled

        public S3ClientOptions.Builder setPayloadSigningEnabled(boolean payloadSigningEnabled)

        Configures the client to sign payloads in all situations.

        Payload signing is optional when chunked encoding is not used and requests are made against an HTTPS endpoint. Under these conditions the client will by default opt to not sign payloads to optimize performance. If this flag is set to true the client will instead always sign payloads.

        Note: Payload signing can be expensive, particularly if transferring large payloads in a single chunk. Enabling this option will result in a performance penalty.

        Parameters:
        payloadSigningEnabled - True to explicitly enable payload signing in all situations
      • disableChunkedEncoding

        public S3ClientOptions.Builder disableChunkedEncoding()

        Configures the client to disable chunked encoding for all requests.

        The default behavior is to enable chunked encoding automatically for PutObjectRequest and UploadPartRequest. Setting this flag will result in disabling chunked encoding for all requests.

        Note: Enabling this option has performance implications since the checksum for the payload will have to be pre-calculated before sending the data. If your payload is large this will affect the overall time required to upload an object. Using this option is recommended only if your endpoint does not implement chunked uploading.

        Returns:
        this Builder instance that can be used for method chaining
      • enableDualstack

        public S3ClientOptions.Builder enableDualstack()

        Configures the client to use the dualstack endpoint for a region

        S3 supports dualstack endpoints which return both IPv6 and IPv4 values. Use of these endpoints is optional.

        Returns:
        this Builder instance that can be used for method chaining
      • enableForceGlobalBucketAccess

        public S3ClientOptions.Builder enableForceGlobalBucketAccess()

        Force-enable global bucket access on the S3 client. Any bucket-related operations invoked against a client with this option enabled will potentially be executed against other regions than the one configured in the client in order to succeed.

        Returns:
        this Builder instance that can be used for method chaining
        See Also:
        AmazonS3Builder.setForceGlobalBucketAccessEnabled(Boolean)
      • enableUseArnRegion

        public S3ClientOptions.Builder enableUseArnRegion()

        If global bucket access is not enabled, this setting will enable the client to make calls to a region specified in an ARN that represents an S3 resource even if that region is different to the region the client was initialized with. This setting is disabled by default.

        Returns:
        this Builder instance that can be used for method chaining
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

AltStyle によって変換されたページ (->オリジナル) /