Interface S3Bucket.Builder

All Superinterfaces:
Buildable, CopyableBuilder<S3Bucket.Builder,S3Bucket>, SdkBuilder<S3Bucket.Builder,S3Bucket>, SdkPojo
Enclosing class:
S3Bucket

@Mutable @NotThreadSafe public static interface S3Bucket.Builder extends SdkPojo, CopyableBuilder<S3Bucket.Builder,S3Bucket>
  • Method Details

    • 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:
    • 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:
    • 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:
    • 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:
    • 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 the PublicAccessConfiguration.Builder avoiding the need to create one manually via PublicAccessConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to accountPublicAccess(PublicAccessConfiguration).

      Parameters:
      accountPublicAccess - a consumer that will call methods on PublicAccessConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the PublicAccessConfiguration.Builder avoiding the need to create one manually via PublicAccessConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to bucketPublicAccess(PublicAccessConfiguration).

      Parameters:
      bucketPublicAccess - a consumer that will call methods on PublicAccessConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.