Interface SplitCreditResponse.Builder

  • Method Details

    • parentCreditId

      SplitCreditResponse.Builder parentCreditId(String parentCreditId)

      The ID of the credit that was split.

      Parameters:
      parentCreditId - The ID of the credit that was split.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • childCredits

      SplitCreditResponse.Builder childCredits(Collection<ChildCredit> childCredits)

      The new credits, in the order of the requested portions.

      Parameters:
      childCredits - The new credits, in the order of the requested portions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • childCredits

      SplitCreditResponse.Builder childCredits(ChildCredit... childCredits)

      The new credits, in the order of the requested portions.

      Parameters:
      childCredits - The new credits, in the order of the requested portions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • childCredits

      The new credits, in the order of the requested portions.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to childCredits(List<ChildCredit>).

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

      Specifies whether the request was a dry run. If true, the operation didn't change any credit.

      Parameters:
      dryRun - Specifies whether the request was a dry run. If true, the operation didn't change any credit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.