Class PublishChangeBuilder

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

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

     PublishChange publishChange = PublishChange.builder()
             .change("{change}")
             .build()
 
  • Constructor Details

    • PublishChangeBuilder

      public PublishChangeBuilder()
  • Method Details

    • change

      public PublishChangeBuilder 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 PublishChange build()
      builds PublishChange with checking for non-null required values
      Specified by:
      build in interface Builder<PublishChange>
      Returns:
      PublishChange
    • buildUnchecked

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

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

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