Interface PutBucketDefaultStorageClassRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutBucketDefaultStorageClassRequest.Builder,,PutBucketDefaultStorageClassRequest> S3Request.Builder,SdkBuilder<PutBucketDefaultStorageClassRequest.Builder,,PutBucketDefaultStorageClassRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutBucketDefaultStorageClassRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the general purpose bucket.checksumAlgorithm(String checksumAlgorithm) Indicates the algorithm that you want Amazon S3 to use to create the checksum.checksumAlgorithm(ChecksumAlgorithm checksumAlgorithm) Indicates the algorithm that you want Amazon S3 to use to create the checksum.contentMD5(String contentMD5) The MD5 hash of thePutBucketDefaultStorageClassrequest body.defaultStorageClassConfiguration(Consumer<DefaultStorageClassConfiguration.Builder> defaultStorageClassConfiguration) The configuration that specifies the default storage class of the general purpose bucket.defaultStorageClassConfiguration(DefaultStorageClassConfiguration defaultStorageClassConfiguration) The configuration that specifies the default storage class of the general purpose bucket.expectedBucketOwner(String expectedBucketOwner) The Amazon Web Services account ID of the general purpose bucket's owner.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.s3.model.S3Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
bucket
The name of the general purpose bucket.
- Parameters:
bucket- The name of the general purpose bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentMD5
The MD5 hash of the
PutBucketDefaultStorageClassrequest body.For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.
- Parameters:
contentMD5- The MD5 hash of thePutBucketDefaultStorageClassrequest body.For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checksumAlgorithm
Indicates the algorithm that you want Amazon S3 to use to create the checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.
- Parameters:
checksumAlgorithm- Indicates the algorithm that you want Amazon S3 to use to create the checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
checksumAlgorithm
Indicates the algorithm that you want Amazon S3 to use to create the checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.
- Parameters:
checksumAlgorithm- Indicates the algorithm that you want Amazon S3 to use to create the checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
expectedBucketOwner
The Amazon Web Services account ID of the general purpose bucket's owner.
- Parameters:
expectedBucketOwner- The Amazon Web Services account ID of the general purpose bucket's owner.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultStorageClassConfiguration
PutBucketDefaultStorageClassRequest.Builder defaultStorageClassConfiguration(DefaultStorageClassConfiguration defaultStorageClassConfiguration) The configuration that specifies the default storage class of the general purpose bucket.
- Parameters:
defaultStorageClassConfiguration- The configuration that specifies the default storage class of the general purpose bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultStorageClassConfiguration
default PutBucketDefaultStorageClassRequest.Builder defaultStorageClassConfiguration(Consumer<DefaultStorageClassConfiguration.Builder> defaultStorageClassConfiguration) The configuration that specifies the default storage class of the general purpose bucket.
This is a convenience method that creates an instance of theDefaultStorageClassConfiguration.Builderavoiding the need to create one manually viaDefaultStorageClassConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefaultStorageClassConfiguration(DefaultStorageClassConfiguration).- Parameters:
defaultStorageClassConfiguration- a consumer that will call methods onDefaultStorageClassConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
PutBucketDefaultStorageClassRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutBucketDefaultStorageClassRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-