Interface ShareDetails.Builder

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

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

    • successfulShares

      ShareDetails.Builder successfulShares(Collection<String> successfulShares)

      List of accounts for whom the operation succeeded.

      Parameters:
      successfulShares - List of accounts for whom the operation succeeded.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • successfulShares

      ShareDetails.Builder successfulShares(String... successfulShares)

      List of accounts for whom the operation succeeded.

      Parameters:
      successfulShares - List of accounts for whom the operation succeeded.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • shareErrors

      ShareDetails.Builder shareErrors(Collection<ShareError> shareErrors)

      List of errors.

      Parameters:
      shareErrors - List of errors.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • shareErrors

      ShareDetails.Builder shareErrors(ShareError... shareErrors)

      List of errors.

      Parameters:
      shareErrors - List of errors.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • shareErrors

      ShareDetails.Builder shareErrors(Consumer<ShareError.Builder>... shareErrors)

      List of errors.

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

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

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