Interface PartitionSpec.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PartitionSpec.Builder,,PartitionSpec> SdkBuilder<PartitionSpec.Builder,,PartitionSpec> SdkPojo
- Enclosing class:
PartitionSpec
@Mutable
@NotThreadSafe
public static interface PartitionSpec.Builder
extends SdkPojo, CopyableBuilder<PartitionSpec.Builder,PartitionSpec>
-
Method Summary
Modifier and TypeMethodDescriptionpartitionFields(Collection<PartitionField> partitionFields) The list of partition fields.partitionFields(Consumer<PartitionField.Builder>... partitionFields) The list of partition fields.partitionFields(PartitionField... partitionFields) The list of partition fields.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
partitionFields
The list of partition fields.
- Parameters:
partitionFields- The list of partition fields.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partitionFields
The list of partition fields.
- Parameters:
partitionFields- The list of partition fields.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partitionFields
The list of partition fields.
This is a convenience method that creates an instance of thePartitionField.Builderavoiding the need to create one manually viaPartitionField.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topartitionFields(List<PartitionField>).- Parameters:
partitionFields- a consumer that will call methods onPartitionField.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-