Class ParcelChangeValueBuilder

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

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

     ParcelChangeValue parcelChangeValue = ParcelChangeValue.builder()
             .id("{id}")
             .createdAt("{createdAt}")
             .build()
 
  • Constructor Details

    • ParcelChangeValueBuilder

      public ParcelChangeValueBuilder()
  • Method Details

    • id

      id of the Parcel.

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

      public ParcelChangeValueBuilder createdAt(String createdAt)

      Date and time (UTC) the Parcel was created.

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

      public String getId()

      id of the Parcel.

      Returns:
      id
    • getCreatedAt

      public String getCreatedAt()

      Date and time (UTC) the Parcel was created.

      Returns:
      createdAt
    • build

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

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

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

      public static ParcelChangeValueBuilder of(ParcelChangeValue template)
      create builder for ParcelChangeValue instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder