Class InventoryDestination.Builder
java.lang.Object
software.amazon.awscdk.services.s3.InventoryDestination.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InventoryDestination>
- Enclosing interface:
- InventoryDestination
@Stability(Stable)
public static final class InventoryDestination.Builder
extends Object
implements software.amazon.jsii.Builder<InventoryDestination>
A builder for
InventoryDestination
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofInventoryDestination.getBucket()
bucketOwner
(String bucketOwner) Sets the value ofInventoryDestination.getBucketOwner()
build()
Builds the configured instance.Sets the value ofInventoryDestination.getPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofInventoryDestination.getBucket()
- Parameters:
bucket
- Bucket where all inventories will be saved in. This parameter is required.- Returns:
this
-
bucketOwner
Sets the value ofInventoryDestination.getBucketOwner()
- Parameters:
bucketOwner
- The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data. It's recommended to set an account ID to prevent problems if the destination bucket ownership changes.- Returns:
this
-
prefix
Sets the value ofInventoryDestination.getPrefix()
- Parameters:
prefix
- The prefix to be used when saving the inventory.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<InventoryDestination>
- Returns:
- a new instance of
InventoryDestination
- Throws:
NullPointerException
- if any required attribute was not provided
-