Class ReviewLabelBuilder

java.lang.Object
com.commercetools.history.models.label.ReviewLabelBuilder
All Implemented Interfaces:
Builder<ReviewLabel>

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

     ReviewLabel reviewLabel = ReviewLabel.builder()
             .key("{key}")
             .title("{title}")
             .build()
 
  • Constructor Details

    • ReviewLabelBuilder

      public ReviewLabelBuilder()
  • Method Details

    • key

      public ReviewLabelBuilder key(String key)

      User-defined unique identifier of the Review.

      Parameters:
      key - value to be set
      Returns:
      Builder
    • title

      public ReviewLabelBuilder title(String title)

      Title of the Review.

      Parameters:
      title - value to be set
      Returns:
      Builder
    • getKey

      public String getKey()

      User-defined unique identifier of the Review.

      Returns:
      key
    • getTitle

      public String getTitle()

      Title of the Review.

      Returns:
      title
    • build

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

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

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

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