/** * <p>Configures the client to use Amazon S3 dualstack mode for all requests.</p> * * @param dualstackEnabled True to enable dualstack mode. * @return This object for method chaining. */ public Subclass withDualstackEnabled(Boolean dualstackEnabled) { setDualstackEnabled(dualstackEnabled); return getSubclass(); }
/** * <p>Enable global bucket access for clients generated by this builder.</p> * * @see #setForceGlobalBucketAccessEnabled(Boolean) * @return This object for method chaining. */ public Subclass enableForceGlobalBucketAccess() { setForceGlobalBucketAccessEnabled(Boolean.TRUE); return getSubclass(); }
/** * <p>Configure whether global bucket access is enabled for clients generated by this builder.</p> * * @see #setForceGlobalBucketAccessEnabled(Boolean) * @param forceGlobalBucketAccessEnabled Whether global bucket access should be enabled. * @return This object for method chaining. */ public Subclass withForceGlobalBucketAccessEnabled(Boolean forceGlobalBucketAccessEnabled) { setForceGlobalBucketAccessEnabled(forceGlobalBucketAccessEnabled); return getSubclass(); }
/** * <p>Enables dualstack mode on clients built with the builder.</p> * @return This object for method chaining. */ public Subclass enableDualstack() { setDualstackEnabled(Boolean.TRUE); return getSubclass(); }
/** * <p>Enables accelerate mode on clients built with the builder.</p> * * <p>A bucket by default cannot be accessed in accelerate mode. If you wish to do so, you need * to enable the accelerate configuration for the bucket in advance. To enable accelerate mode * see {@link com.amazonaws.services.s3.AmazonS3Client#setBucketAccelerateConfiguration(com.amazonaws.services.s3.model.SetBucketAccelerateConfigurationRequest)}. * </p> * * @return This object for method chaining. */ public Subclass enableAccelerateMode() { setAccelerateModeEnabled(Boolean.TRUE); return getSubclass(); }
/** * <p>Configures the client to use S3 accelerate endpoint for all requests.</p> * * <p>A bucket by default cannot be accessed in accelerate mode. If you wish to do so, you need * to enable the accelerate configuration for the bucket in advance. To enable accelerate mode * see {@link com.amazonaws.services.s3.AmazonS3Client#setBucketAccelerateConfiguration(com.amazonaws.services.s3.model.SetBucketAccelerateConfigurationRequest)}. * </p> * * @param accelerateModeEnabled True to enable accelerate mode. * @return This object for method chaining. */ public Subclass withAccelerateModeEnabled(Boolean accelerateModeEnabled) { setAccelerateModeEnabled(accelerateModeEnabled); return getSubclass(); }
/** * <p>Enables payload signing for all situations on clients built via this builder.</p> * * <p>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.</p> * * <p><b>Note:</b> Payload signing can be expensive, particularly if transferring large payloads * in a single chunk. Enabling this option will result in a performance penalty.</p> * * @return This object for method chaining. */ public Subclass enablePayloadSigning() { setPayloadSigningEnabled(Boolean.TRUE); return getSubclass(); }
/** * <p>Enables path style access for clients built via this builder.</p> * * <p>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.</p> * * <p>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.</p> * * @return This object for method chaining. */ public Subclass enablePathStyleAccess() { setPathStyleAccessEnabled(Boolean.TRUE); return getSubclass(); }
/** * <p>Configures the client to sign payloads in all situations.</p> * * <p>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.</p> * * <p><b>Note:</b> Payload signing can be expensive, particularly if transferring large payloads * in a single chunk. Enabling this option will result in a performance penalty.</p> * * @param payloadSigningEnabled True to explicitly enable payload signing in all situations * @return This object for method chaining. */ public Subclass withPayloadSigningEnabled(Boolean payloadSigningEnabled) { setPayloadSigningEnabled(payloadSigningEnabled); return getSubclass(); }
/** * <p>Disables chunked encoding on clients built via the builder.</p> * * <p>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.</p> * * <p><b>Note:</b> 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.</p> * * @return this Builder instance that can be used for method chaining */ public Subclass disableChunkedEncoding() { setChunkedEncodingDisabled(Boolean.TRUE); return getSubclass(); }
/** * <p>Configures the client to use path-style access for all requests.</p> * * <p>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.</p> * * <p> 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.</p> * * @param pathStyleAccessEnabled True to always use path-style access. * @return This object for method chaining. */ public Subclass withPathStyleAccessEnabled(Boolean pathStyleAccessEnabled) { setPathStyleAccessEnabled(pathStyleAccessEnabled); return getSubclass(); }
/** * <p>Configures the client to disable chunked encoding for all requests.</p> * * <p>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.</p> * * <p><b>Note:</b> 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.</p> * * @param chunkedEncodingDisabled True to disable chunked encoding. * @return this Builder instance that can be used for method chaining */ public Subclass withChunkedEncodingDisabled(Boolean chunkedEncodingDisabled) { setChunkedEncodingDisabled(chunkedEncodingDisabled); return getSubclass(); }
/** * <p>Configures the client to use Amazon S3 dualstack mode for all requests.</p> * * @param dualstackEnabled True to enable dualstack mode. * @return This object for method chaining. */ public Subclass withDualstackEnabled(Boolean dualstackEnabled) { setDualstackEnabled(dualstackEnabled); return getSubclass(); }
/** * <p>Enables dualstack mode on clients built with the builder.</p> * @return This object for method chaining. */ public Subclass enableDualstack() { setDualstackEnabled(Boolean.TRUE); return getSubclass(); }
/** * <p>Configure whether global bucket access is enabled for clients generated by this builder.</p> * * @see #setForceGlobalBucketAccessEnabled(Boolean) * @param forceGlobalBucketAccessEnabled Whether global bucket access should be enabled. * @return This object for method chaining. */ public Subclass withForceGlobalBucketAccessEnabled(Boolean forceGlobalBucketAccessEnabled) { setForceGlobalBucketAccessEnabled(forceGlobalBucketAccessEnabled); return getSubclass(); }
/** * <p>Enable global bucket access for clients generated by this builder.</p> * * @see #setForceGlobalBucketAccessEnabled(Boolean) * @return This object for method chaining. */ public Subclass enableForceGlobalBucketAccess() { setForceGlobalBucketAccessEnabled(Boolean.TRUE); return getSubclass(); }
/** * <p>Enables accelerate mode on clients built with the builder.</p> * * <p>A bucket by default cannot be accessed in accelerate mode. If you wish to do so, you need * to enable the accelerate configuration for the bucket in advance. To enable accelerate mode * see {@link com.amazonaws.services.s3.AmazonS3Client#setBucketAccelerateConfiguration(com.amazonaws.services.s3.model.SetBucketAccelerateConfigurationRequest)}. * </p> * * @return This object for method chaining. */ public Subclass enableAccelerateMode() { setAccelerateModeEnabled(Boolean.TRUE); return getSubclass(); }
/** * <p>Configures the client to use S3 accelerate endpoint for all requests.</p> * * <p>A bucket by default cannot be accessed in accelerate mode. If you wish to do so, you need * to enable the accelerate configuration for the bucket in advance. To enable accelerate mode * see {@link com.amazonaws.services.s3.AmazonS3Client#setBucketAccelerateConfiguration(com.amazonaws.services.s3.model.SetBucketAccelerateConfigurationRequest)}. * </p> * * @param accelerateModeEnabled True to enable accelerate mode. * @return This object for method chaining. */ public Subclass withAccelerateModeEnabled(Boolean accelerateModeEnabled) { setAccelerateModeEnabled(accelerateModeEnabled); return getSubclass(); }
/** * <p>Enables payload signing for all situations on clients built via this builder.</p> * * <p>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.</p> * * <p><b>Note:</b> Payload signing can be expensive, particularly if transferring large payloads * in a single chunk. Enabling this option will result in a performance penalty.</p> * * @return This object for method chaining. */ public Subclass enablePayloadSigning() { setPayloadSigningEnabled(Boolean.TRUE); return getSubclass(); }
/** * <p>Enables path style access for clients built via this builder.</p> * * <p>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.</p> * * <p>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.</p> * * @return This object for method chaining. */ public Subclass enablePathStyleAccess() { setPathStyleAccessEnabled(Boolean.TRUE); return getSubclass(); }