Interface S3Bucket.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<S3Bucket.Builder,S3Bucket>,SdkBuilder<S3Bucket.Builder,S3Bucket>,SdkPojo
- Enclosing class:
- S3Bucket
public static interface S3Bucket.Builder extends SdkPojo, CopyableBuilder<S3Bucket.Builder,S3Bucket>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default S3Bucket.BuilderaccountPublicAccess(Consumer<PublicAccessConfiguration.Builder> accountPublicAccess)Contains information about the public access policies that apply to the Amazon S3 bucket at the account level.S3Bucket.BuilderaccountPublicAccess(PublicAccessConfiguration accountPublicAccess)Contains information about the public access policies that apply to the Amazon S3 bucket at the account level.default S3Bucket.BuilderbucketPublicAccess(Consumer<PublicAccessConfiguration.Builder> bucketPublicAccess)Contains information about public access policies that apply to the Amazon S3 bucket.S3Bucket.BuilderbucketPublicAccess(PublicAccessConfiguration bucketPublicAccess)Contains information about public access policies that apply to the Amazon S3 bucket.S3Bucket.BuildercreatedAt(Instant createdAt)The timestamp at which the Amazon S3 bucket was created.S3Bucket.BuildereffectivePermission(String effectivePermission)Describes the effective permissions on this S3 bucket, after factoring all the attached policies.S3Bucket.BuilderencryptionKeyArn(String encryptionKeyArn)The Amazon Resource Name (ARN) of the encryption key that is used to encrypt the Amazon S3 bucket and its objects.S3Bucket.BuilderencryptionType(String encryptionType)The type of encryption used for the Amazon S3 buckets and its objects.S3Bucket.BuilderownerId(String ownerId)The owner ID of the associated S3Amazon S3bucket.S3Bucket.BuilderpublicReadAccess(String publicReadAccess)Indicates whether or not the public read access is allowed for an Amazon S3 bucket.S3Bucket.BuilderpublicReadAccess(PublicAccessStatus publicReadAccess)Indicates whether or not the public read access is allowed for an Amazon S3 bucket.S3Bucket.BuilderpublicWriteAccess(String publicWriteAccess)Indicates whether or not the public write access is allowed for an Amazon S3 bucket.S3Bucket.BuilderpublicWriteAccess(PublicAccessStatus publicWriteAccess)Indicates whether or not the public write access is allowed for an Amazon S3 bucket.S3Bucket.Builders3ObjectUids(String... s3ObjectUids)Represents a list of Amazon S3 object identifiers.S3Bucket.Builders3ObjectUids(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 Detail
-
ownerId
S3Bucket.Builder ownerId(String 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
S3Bucket.Builder createdAt(Instant 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
S3Bucket.Builder encryptionType(String 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
S3Bucket.Builder encryptionKeyArn(String 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
S3Bucket.Builder effectivePermission(String 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
S3Bucket.Builder publicReadAccess(String 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:
PublicAccessStatus,PublicAccessStatus
-
publicReadAccess
S3Bucket.Builder publicReadAccess(PublicAccessStatus 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:
PublicAccessStatus,PublicAccessStatus
-
publicWriteAccess
S3Bucket.Builder publicWriteAccess(String 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:
PublicAccessStatus,PublicAccessStatus
-
publicWriteAccess
S3Bucket.Builder publicWriteAccess(PublicAccessStatus 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:
PublicAccessStatus,PublicAccessStatus
-
accountPublicAccess
S3Bucket.Builder accountPublicAccess(PublicAccessConfiguration 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.Builderavoiding the need to create one manually viaPublicAccessConfiguration.builder().When the
Consumercompletes,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:
accountPublicAccess(PublicAccessConfiguration)
-
bucketPublicAccess
S3Bucket.Builder bucketPublicAccess(PublicAccessConfiguration 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.Builderavoiding the need to create one manually viaPublicAccessConfiguration.builder().When the
Consumercompletes,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:
bucketPublicAccess(PublicAccessConfiguration)
-
s3ObjectUids
S3Bucket.Builder s3ObjectUids(Collection<String> 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
S3Bucket.Builder s3ObjectUids(String... 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.
-
-