Class UnpublishChangeBuilder

java.lang.Object
com.commercetools.history.models.change.UnpublishChangeBuilder
All Implemented Interfaces:
Builder<UnpublishChange>

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

     UnpublishChange unpublishChange = UnpublishChange.builder()
             .change("{change}")
             .build()
 
  • Constructor Details

    • UnpublishChangeBuilder

      public UnpublishChangeBuilder()
  • Method Details

    • change

      public UnpublishChangeBuilder change(String change)
      set the value to the change
      Parameters:
      change - value to be set
      Returns:
      Builder
    • getChange

      public String getChange()
      value of change}
      Returns:
      change
    • build

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

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

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

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