Interface S3Bucket.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<S3Bucket.Builder,
,S3Bucket> SdkBuilder<S3Bucket.Builder,
,S3Bucket> SdkPojo
- Enclosing class:
S3Bucket
-
Method Summary
Modifier and TypeMethodDescriptiondefault S3Bucket.Builder
accountPublicAccess
(Consumer<PublicAccessConfiguration.Builder> accountPublicAccess) Contains information about the public access policies that apply to the Amazon S3 bucket at the account level.accountPublicAccess
(PublicAccessConfiguration accountPublicAccess) Contains information about the public access policies that apply to the Amazon S3 bucket at the account level.default S3Bucket.Builder
bucketPublicAccess
(Consumer<PublicAccessConfiguration.Builder> bucketPublicAccess) Contains information about public access policies that apply to the Amazon S3 bucket.bucketPublicAccess
(PublicAccessConfiguration bucketPublicAccess) Contains information about public access policies that apply to the Amazon S3 bucket.The timestamp at which the Amazon S3 bucket was created.effectivePermission
(String effectivePermission) Describes the effective permissions on this S3 bucket, after factoring all the attached policies.encryptionKeyArn
(String encryptionKeyArn) The Amazon Resource Name (ARN) of the encryption key that is used to encrypt the Amazon S3 bucket and its objects.encryptionType
(String encryptionType) The type of encryption used for the Amazon S3 buckets and its objects.The owner ID of the associated S3Amazon S3bucket.publicReadAccess
(String publicReadAccess) Indicates whether or not the public read access is allowed for an Amazon S3 bucket.publicReadAccess
(PublicAccessStatus publicReadAccess) Indicates whether or not the public read access is allowed for an Amazon S3 bucket.publicWriteAccess
(String publicWriteAccess) Indicates whether or not the public write access is allowed for an Amazon S3 bucket.publicWriteAccess
(PublicAccessStatus publicWriteAccess) Indicates whether or not the public write access is allowed for an Amazon S3 bucket.s3ObjectUids
(String... s3ObjectUids) Represents a list of Amazon S3 object identifiers.s3ObjectUids
(Collection<String> s3ObjectUids) Represents a list of Amazon S3 object identifiers.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, sdkFieldNameToField, sdkFields
-
Method Details
-
ownerId
The owner ID of the associated S3Amazon S3bucket.
- Parameters:
ownerId
- The owner ID of the associated S3Amazon S3bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The timestamp at which the Amazon S3 bucket was created.
- Parameters:
createdAt
- The timestamp at which the Amazon S3 bucket was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionType
The type of encryption used for the Amazon S3 buckets and its objects. For more information, see Protecting data with server-side encryption in the Amazon S3 User Guide.
- Parameters:
encryptionType
- The type of encryption used for the Amazon S3 buckets and its objects. For more information, see Protecting data with server-side encryption in the Amazon S3 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionKeyArn
The Amazon Resource Name (ARN) of the encryption key that is used to encrypt the Amazon S3 bucket and its objects.
- Parameters:
encryptionKeyArn
- The Amazon Resource Name (ARN) of the encryption key that is used to encrypt the Amazon S3 bucket and its objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
effectivePermission
Describes the effective permissions on this S3 bucket, after factoring all the attached policies.
- Parameters:
effectivePermission
- Describes the effective permissions on this S3 bucket, after factoring all the attached policies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publicReadAccess
Indicates whether or not the public read access is allowed for an Amazon S3 bucket.
- Parameters:
publicReadAccess
- Indicates whether or not the public read access is allowed for an Amazon S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
publicReadAccess
Indicates whether or not the public read access is allowed for an Amazon S3 bucket.
- Parameters:
publicReadAccess
- Indicates whether or not the public read access is allowed for an Amazon S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
publicWriteAccess
Indicates whether or not the public write access is allowed for an Amazon S3 bucket.
- Parameters:
publicWriteAccess
- Indicates whether or not the public write access is allowed for an Amazon S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
publicWriteAccess
Indicates whether or not the public write access is allowed for an Amazon S3 bucket.
- Parameters:
publicWriteAccess
- Indicates whether or not the public write access is allowed for an Amazon S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accountPublicAccess
Contains information about the public access policies that apply to the Amazon S3 bucket at the account level.
- Parameters:
accountPublicAccess
- Contains information about the public access policies that apply to the Amazon S3 bucket at the account level.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountPublicAccess
default S3Bucket.Builder accountPublicAccess(Consumer<PublicAccessConfiguration.Builder> accountPublicAccess) Contains information about the public access policies that apply to the Amazon S3 bucket at the account level.
This is a convenience method that creates an instance of thePublicAccessConfiguration.Builder
avoiding the need to create one manually viaPublicAccessConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccountPublicAccess(PublicAccessConfiguration)
.- Parameters:
accountPublicAccess
- a consumer that will call methods onPublicAccessConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bucketPublicAccess
Contains information about public access policies that apply to the Amazon S3 bucket.
- Parameters:
bucketPublicAccess
- Contains information about public access policies that apply to the Amazon S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucketPublicAccess
default S3Bucket.Builder bucketPublicAccess(Consumer<PublicAccessConfiguration.Builder> bucketPublicAccess) Contains information about public access policies that apply to the Amazon S3 bucket.
This is a convenience method that creates an instance of thePublicAccessConfiguration.Builder
avoiding the need to create one manually viaPublicAccessConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobucketPublicAccess(PublicAccessConfiguration)
.- Parameters:
bucketPublicAccess
- a consumer that will call methods onPublicAccessConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
s3ObjectUids
Represents a list of Amazon S3 object identifiers.
- Parameters:
s3ObjectUids
- Represents a list of Amazon S3 object identifiers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3ObjectUids
Represents a list of Amazon S3 object identifiers.
- Parameters:
s3ObjectUids
- Represents a list of Amazon S3 object identifiers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-