Interface DataPartition.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DataPartition.Builder,
,DataPartition> SdkBuilder<DataPartition.Builder,
,DataPartition> SdkPojo
- Enclosing class:
DataPartition
@Mutable
@NotThreadSafe
public static interface DataPartition.Builder
extends SdkPojo, CopyableBuilder<DataPartition.Builder,DataPartition>
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the data partition.default DataPartition.Builder
storageOptions
(Consumer<DataPartitionStorageOptions.Builder> storageOptions) The storage options for a data partition.storageOptions
(DataPartitionStorageOptions storageOptions) The storage options for a data partition.default DataPartition.Builder
uploadOptions
(Consumer<DataPartitionUploadOptions.Builder> uploadOptions) The upload options for the data partition.uploadOptions
(DataPartitionUploadOptions uploadOptions) The upload options for the data partition.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
-
id
The ID of the data partition. The data partition ID must be unique within a campaign. You can establish a data partition as the default partition for a campaign by using
default
as the ID.- Parameters:
id
- The ID of the data partition. The data partition ID must be unique within a campaign. You can establish a data partition as the default partition for a campaign by usingdefault
as the ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageOptions
The storage options for a data partition.
- Parameters:
storageOptions
- The storage options for a data partition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageOptions
default DataPartition.Builder storageOptions(Consumer<DataPartitionStorageOptions.Builder> storageOptions) The storage options for a data partition.
This is a convenience method that creates an instance of theDataPartitionStorageOptions.Builder
avoiding the need to create one manually viaDataPartitionStorageOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostorageOptions(DataPartitionStorageOptions)
.- Parameters:
storageOptions
- a consumer that will call methods onDataPartitionStorageOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
uploadOptions
The upload options for the data partition.
- Parameters:
uploadOptions
- The upload options for the data partition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
uploadOptions
default DataPartition.Builder uploadOptions(Consumer<DataPartitionUploadOptions.Builder> uploadOptions) The upload options for the data partition.
This is a convenience method that creates an instance of theDataPartitionUploadOptions.Builder
avoiding the need to create one manually viaDataPartitionUploadOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed touploadOptions(DataPartitionUploadOptions)
.- Parameters:
uploadOptions
- a consumer that will call methods onDataPartitionUploadOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-