Class TransactionChangeValueBuilder

java.lang.Object
com.commercetools.history.models.change_value.TransactionChangeValueBuilder
All Implemented Interfaces:
Builder<TransactionChangeValue>

public class TransactionChangeValueBuilder extends Object implements Builder<TransactionChangeValue>
TransactionChangeValueBuilder
Example to create an instance using the builder pattern

     TransactionChangeValue transactionChangeValue = TransactionChangeValue.builder()
             .id("{id}")
             .interactionId("{interactionId}")
             .timestamp("{timestamp}")
             .build()
 
  • Constructor Details

    • TransactionChangeValueBuilder

      public TransactionChangeValueBuilder()
  • Method Details

    • id

      id of the Transaction.

      Parameters:
      id - value to be set
      Returns:
      Builder
    • interactionId

      public TransactionChangeValueBuilder interactionId(String interactionId)

      Identifier used by the interface that manages the Transaction (usually the PSP).

      Parameters:
      interactionId - value to be set
      Returns:
      Builder
    • timestamp

      public TransactionChangeValueBuilder timestamp(String timestamp)

      Date and time (UTC) the Transaction took place.

      Parameters:
      timestamp - value to be set
      Returns:
      Builder
    • getId

      public String getId()

      id of the Transaction.

      Returns:
      id
    • getInteractionId

      public String getInteractionId()

      Identifier used by the interface that manages the Transaction (usually the PSP).

      Returns:
      interactionId
    • getTimestamp

      public String getTimestamp()

      Date and time (UTC) the Transaction took place.

      Returns:
      timestamp
    • build

      public TransactionChangeValue build()
      builds TransactionChangeValue with checking for non-null required values
      Specified by:
      build in interface Builder<TransactionChangeValue>
      Returns:
      TransactionChangeValue
    • buildUnchecked

      public TransactionChangeValue buildUnchecked()
      builds TransactionChangeValue without checking for non-null required values
      Returns:
      TransactionChangeValue
    • of

      public static TransactionChangeValueBuilder of()
      factory method for an instance of TransactionChangeValueBuilder
      Returns:
      builder
    • of

      create builder for TransactionChangeValue instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder