Interface AwsS3BucketDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsS3BucketDetails.Builder,
,AwsS3BucketDetails> SdkBuilder<AwsS3BucketDetails.Builder,
,AwsS3BucketDetails> SdkPojo
- Enclosing class:
AwsS3BucketDetails
-
Method Summary
Modifier and TypeMethodDescriptionaccessControlList
(String accessControlList) The access control list for the S3 bucket.default AwsS3BucketDetails.Builder
bucketLifecycleConfiguration
(Consumer<AwsS3BucketBucketLifecycleConfigurationDetails.Builder> bucketLifecycleConfiguration) The lifecycle configuration for objects in the specified bucket.bucketLifecycleConfiguration
(AwsS3BucketBucketLifecycleConfigurationDetails bucketLifecycleConfiguration) The lifecycle configuration for objects in the specified bucket.default AwsS3BucketDetails.Builder
bucketLoggingConfiguration
(Consumer<AwsS3BucketLoggingConfiguration.Builder> bucketLoggingConfiguration) The logging configuration for the S3 bucket.bucketLoggingConfiguration
(AwsS3BucketLoggingConfiguration bucketLoggingConfiguration) The logging configuration for the S3 bucket.default AwsS3BucketDetails.Builder
bucketNotificationConfiguration
(Consumer<AwsS3BucketNotificationConfiguration.Builder> bucketNotificationConfiguration) The notification configuration for the S3 bucket.bucketNotificationConfiguration
(AwsS3BucketNotificationConfiguration bucketNotificationConfiguration) The notification configuration for the S3 bucket.default AwsS3BucketDetails.Builder
bucketVersioningConfiguration
(Consumer<AwsS3BucketBucketVersioningConfiguration.Builder> bucketVersioningConfiguration) The versioning state of an S3 bucket.bucketVersioningConfiguration
(AwsS3BucketBucketVersioningConfiguration bucketVersioningConfiguration) The versioning state of an S3 bucket.default AwsS3BucketDetails.Builder
bucketWebsiteConfiguration
(Consumer<AwsS3BucketWebsiteConfiguration.Builder> bucketWebsiteConfiguration) The website configuration parameters for the S3 bucket.bucketWebsiteConfiguration
(AwsS3BucketWebsiteConfiguration bucketWebsiteConfiguration) The website configuration parameters for the S3 bucket.Indicates when the S3 bucket was created.The name of the bucket.default AwsS3BucketDetails.Builder
objectLockConfiguration
(Consumer<AwsS3BucketObjectLockConfiguration.Builder> objectLockConfiguration) Specifies which rule Amazon S3 applies by default to every new object placed in the bucket.objectLockConfiguration
(AwsS3BucketObjectLockConfiguration objectLockConfiguration) Specifies which rule Amazon S3 applies by default to every new object placed in the bucket.ownerAccountId
(String ownerAccountId) The Amazon Web Services account identifier of the account that owns the S3 bucket.The canonical user ID of the owner of the S3 bucket.The display name of the owner of the S3 bucket.default AwsS3BucketDetails.Builder
publicAccessBlockConfiguration
(Consumer<AwsS3AccountPublicAccessBlockDetails.Builder> publicAccessBlockConfiguration) Provides information about the Amazon S3 Public Access Block configuration for the S3 bucket.publicAccessBlockConfiguration
(AwsS3AccountPublicAccessBlockDetails publicAccessBlockConfiguration) Provides information about the Amazon S3 Public Access Block configuration for the S3 bucket.default AwsS3BucketDetails.Builder
serverSideEncryptionConfiguration
(Consumer<AwsS3BucketServerSideEncryptionConfiguration.Builder> serverSideEncryptionConfiguration) The encryption rules that are applied to the S3 bucket.serverSideEncryptionConfiguration
(AwsS3BucketServerSideEncryptionConfiguration serverSideEncryptionConfiguration) The encryption rules that are applied to the S3 bucket.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
ownerId
The canonical user ID of the owner of the S3 bucket.
- Parameters:
ownerId
- The canonical user ID of the owner of the S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerName
The display name of the owner of the S3 bucket.
- Parameters:
ownerName
- The display name of the owner of the S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerAccountId
The Amazon Web Services account identifier of the account that owns the S3 bucket.
- Parameters:
ownerAccountId
- The Amazon Web Services account identifier of the account that owns the S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
Indicates when the S3 bucket was created.
This field accepts only the specified formats. Timestamps can end with
Z
or("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ
(for example,2019-01-31T23:00:00Z
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example,2019-01-31T23:00:00.123456789Z
) -
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example,2024-01-04T15:25:10+17:59
) -
YYYY-MM-DDTHH:MM:SS-HHMM
(for example,2024-01-04T15:25:10-1759
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,2024-01-04T15:25:10.123456789+17:59
)
- Parameters:
createdAt
- Indicates when the S3 bucket was created.This field accepts only the specified formats. Timestamps can end with
Z
or("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ
(for example,2019-01-31T23:00:00Z
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example,2019-01-31T23:00:00.123456789Z
) -
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example,2024-01-04T15:25:10+17:59
) -
YYYY-MM-DDTHH:MM:SS-HHMM
(for example,2024-01-04T15:25:10-1759
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,2024-01-04T15:25:10.123456789+17:59
)
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
serverSideEncryptionConfiguration
AwsS3BucketDetails.Builder serverSideEncryptionConfiguration(AwsS3BucketServerSideEncryptionConfiguration serverSideEncryptionConfiguration) The encryption rules that are applied to the S3 bucket.
- Parameters:
serverSideEncryptionConfiguration
- The encryption rules that are applied to the S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverSideEncryptionConfiguration
default AwsS3BucketDetails.Builder serverSideEncryptionConfiguration(Consumer<AwsS3BucketServerSideEncryptionConfiguration.Builder> serverSideEncryptionConfiguration) The encryption rules that are applied to the S3 bucket.
This is a convenience method that creates an instance of theAwsS3BucketServerSideEncryptionConfiguration.Builder
avoiding the need to create one manually viaAwsS3BucketServerSideEncryptionConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toserverSideEncryptionConfiguration(AwsS3BucketServerSideEncryptionConfiguration)
.- Parameters:
serverSideEncryptionConfiguration
- a consumer that will call methods onAwsS3BucketServerSideEncryptionConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bucketLifecycleConfiguration
AwsS3BucketDetails.Builder bucketLifecycleConfiguration(AwsS3BucketBucketLifecycleConfigurationDetails bucketLifecycleConfiguration) The lifecycle configuration for objects in the specified bucket.
- Parameters:
bucketLifecycleConfiguration
- The lifecycle configuration for objects in the specified bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucketLifecycleConfiguration
default AwsS3BucketDetails.Builder bucketLifecycleConfiguration(Consumer<AwsS3BucketBucketLifecycleConfigurationDetails.Builder> bucketLifecycleConfiguration) The lifecycle configuration for objects in the specified bucket.
This is a convenience method that creates an instance of theAwsS3BucketBucketLifecycleConfigurationDetails.Builder
avoiding the need to create one manually viaAwsS3BucketBucketLifecycleConfigurationDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobucketLifecycleConfiguration(AwsS3BucketBucketLifecycleConfigurationDetails)
.- Parameters:
bucketLifecycleConfiguration
- a consumer that will call methods onAwsS3BucketBucketLifecycleConfigurationDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
publicAccessBlockConfiguration
AwsS3BucketDetails.Builder publicAccessBlockConfiguration(AwsS3AccountPublicAccessBlockDetails publicAccessBlockConfiguration) Provides information about the Amazon S3 Public Access Block configuration for the S3 bucket.
- Parameters:
publicAccessBlockConfiguration
- Provides information about the Amazon S3 Public Access Block configuration for the S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publicAccessBlockConfiguration
default AwsS3BucketDetails.Builder publicAccessBlockConfiguration(Consumer<AwsS3AccountPublicAccessBlockDetails.Builder> publicAccessBlockConfiguration) Provides information about the Amazon S3 Public Access Block configuration for the S3 bucket.
This is a convenience method that creates an instance of theAwsS3AccountPublicAccessBlockDetails.Builder
avoiding the need to create one manually viaAwsS3AccountPublicAccessBlockDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topublicAccessBlockConfiguration(AwsS3AccountPublicAccessBlockDetails)
.- Parameters:
publicAccessBlockConfiguration
- a consumer that will call methods onAwsS3AccountPublicAccessBlockDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accessControlList
The access control list for the S3 bucket.
- Parameters:
accessControlList
- The access control list for the S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucketLoggingConfiguration
AwsS3BucketDetails.Builder bucketLoggingConfiguration(AwsS3BucketLoggingConfiguration bucketLoggingConfiguration) The logging configuration for the S3 bucket.
- Parameters:
bucketLoggingConfiguration
- The logging configuration for the S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucketLoggingConfiguration
default AwsS3BucketDetails.Builder bucketLoggingConfiguration(Consumer<AwsS3BucketLoggingConfiguration.Builder> bucketLoggingConfiguration) The logging configuration for the S3 bucket.
This is a convenience method that creates an instance of theAwsS3BucketLoggingConfiguration.Builder
avoiding the need to create one manually viaAwsS3BucketLoggingConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobucketLoggingConfiguration(AwsS3BucketLoggingConfiguration)
.- Parameters:
bucketLoggingConfiguration
- a consumer that will call methods onAwsS3BucketLoggingConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bucketWebsiteConfiguration
AwsS3BucketDetails.Builder bucketWebsiteConfiguration(AwsS3BucketWebsiteConfiguration bucketWebsiteConfiguration) The website configuration parameters for the S3 bucket.
- Parameters:
bucketWebsiteConfiguration
- The website configuration parameters for the S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucketWebsiteConfiguration
default AwsS3BucketDetails.Builder bucketWebsiteConfiguration(Consumer<AwsS3BucketWebsiteConfiguration.Builder> bucketWebsiteConfiguration) The website configuration parameters for the S3 bucket.
This is a convenience method that creates an instance of theAwsS3BucketWebsiteConfiguration.Builder
avoiding the need to create one manually viaAwsS3BucketWebsiteConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobucketWebsiteConfiguration(AwsS3BucketWebsiteConfiguration)
.- Parameters:
bucketWebsiteConfiguration
- a consumer that will call methods onAwsS3BucketWebsiteConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bucketNotificationConfiguration
AwsS3BucketDetails.Builder bucketNotificationConfiguration(AwsS3BucketNotificationConfiguration bucketNotificationConfiguration) The notification configuration for the S3 bucket.
- Parameters:
bucketNotificationConfiguration
- The notification configuration for the S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucketNotificationConfiguration
default AwsS3BucketDetails.Builder bucketNotificationConfiguration(Consumer<AwsS3BucketNotificationConfiguration.Builder> bucketNotificationConfiguration) The notification configuration for the S3 bucket.
This is a convenience method that creates an instance of theAwsS3BucketNotificationConfiguration.Builder
avoiding the need to create one manually viaAwsS3BucketNotificationConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobucketNotificationConfiguration(AwsS3BucketNotificationConfiguration)
.- Parameters:
bucketNotificationConfiguration
- a consumer that will call methods onAwsS3BucketNotificationConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bucketVersioningConfiguration
AwsS3BucketDetails.Builder bucketVersioningConfiguration(AwsS3BucketBucketVersioningConfiguration bucketVersioningConfiguration) The versioning state of an S3 bucket.
- Parameters:
bucketVersioningConfiguration
- The versioning state of an S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucketVersioningConfiguration
default AwsS3BucketDetails.Builder bucketVersioningConfiguration(Consumer<AwsS3BucketBucketVersioningConfiguration.Builder> bucketVersioningConfiguration) The versioning state of an S3 bucket.
This is a convenience method that creates an instance of theAwsS3BucketBucketVersioningConfiguration.Builder
avoiding the need to create one manually viaAwsS3BucketBucketVersioningConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobucketVersioningConfiguration(AwsS3BucketBucketVersioningConfiguration)
.- Parameters:
bucketVersioningConfiguration
- a consumer that will call methods onAwsS3BucketBucketVersioningConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
objectLockConfiguration
AwsS3BucketDetails.Builder objectLockConfiguration(AwsS3BucketObjectLockConfiguration objectLockConfiguration) Specifies which rule Amazon S3 applies by default to every new object placed in the bucket.
- Parameters:
objectLockConfiguration
- Specifies which rule Amazon S3 applies by default to every new object placed in the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
objectLockConfiguration
default AwsS3BucketDetails.Builder objectLockConfiguration(Consumer<AwsS3BucketObjectLockConfiguration.Builder> objectLockConfiguration) Specifies which rule Amazon S3 applies by default to every new object placed in the bucket.
This is a convenience method that creates an instance of theAwsS3BucketObjectLockConfiguration.Builder
avoiding the need to create one manually viaAwsS3BucketObjectLockConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toobjectLockConfiguration(AwsS3BucketObjectLockConfiguration)
.- Parameters:
objectLockConfiguration
- a consumer that will call methods onAwsS3BucketObjectLockConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name of the bucket.
- Parameters:
name
- The name of the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-