Class ParcelMeasurementsBuilder

java.lang.Object
com.commercetools.importapi.models.orders.ParcelMeasurementsBuilder
All Implemented Interfaces:
Builder<ParcelMeasurements>

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

     ParcelMeasurements parcelMeasurements = ParcelMeasurements.builder()
             .build()
 
  • Constructor Details

    • ParcelMeasurementsBuilder

      public ParcelMeasurementsBuilder()
  • Method Details

    • heightInMillimeter

      public ParcelMeasurementsBuilder heightInMillimeter(@Nullable Integer heightInMillimeter)
      set the value to the heightInMillimeter
      Parameters:
      heightInMillimeter - value to be set
      Returns:
      Builder
    • lengthInMillimeter

      public ParcelMeasurementsBuilder lengthInMillimeter(@Nullable Integer lengthInMillimeter)
      set the value to the lengthInMillimeter
      Parameters:
      lengthInMillimeter - value to be set
      Returns:
      Builder
    • widthInMillimeter

      public ParcelMeasurementsBuilder widthInMillimeter(@Nullable Integer widthInMillimeter)
      set the value to the widthInMillimeter
      Parameters:
      widthInMillimeter - value to be set
      Returns:
      Builder
    • weightInGram

      public ParcelMeasurementsBuilder weightInGram(@Nullable Integer weightInGram)
      set the value to the weightInGram
      Parameters:
      weightInGram - value to be set
      Returns:
      Builder
    • getHeightInMillimeter

      @Nullable public Integer getHeightInMillimeter()
      value of heightInMillimeter}
      Returns:
      heightInMillimeter
    • getLengthInMillimeter

      @Nullable public Integer getLengthInMillimeter()
      value of lengthInMillimeter}
      Returns:
      lengthInMillimeter
    • getWidthInMillimeter

      @Nullable public Integer getWidthInMillimeter()
      value of widthInMillimeter}
      Returns:
      widthInMillimeter
    • getWeightInGram

      @Nullable public Integer getWeightInGram()
      value of weightInGram}
      Returns:
      weightInGram
    • build

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

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

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

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