Interface PartitionError.Builder

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

public static interface PartitionError.Builder extends SdkPojo, CopyableBuilder<PartitionError.Builder,PartitionError>
  • Method Details

    • partitionValues

      PartitionError.Builder partitionValues(Collection<String> partitionValues)

      The values that define the partition.

      Parameters:
      partitionValues - The values that define the partition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • partitionValues

      PartitionError.Builder partitionValues(String... partitionValues)

      The values that define the partition.

      Parameters:
      partitionValues - The values that define the partition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorDetail

      PartitionError.Builder errorDetail(ErrorDetail errorDetail)

      The details about the partition error.

      Parameters:
      errorDetail - The details about the partition error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorDetail

      default PartitionError.Builder errorDetail(Consumer<ErrorDetail.Builder> errorDetail)

      The details about the partition error.

      This is a convenience method that creates an instance of the ErrorDetail.Builder avoiding the need to create one manually via ErrorDetail.builder().

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

      Parameters:
      errorDetail - a consumer that will call methods on ErrorDetail.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: