Class ReviewSetTextActionBuilder

java.lang.Object
com.commercetools.api.models.review.ReviewSetTextActionBuilder
All Implemented Interfaces:
Builder<ReviewSetTextAction>

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

     ReviewSetTextAction reviewSetTextAction = ReviewSetTextAction.builder()
             .build()
 
  • Constructor Details

    • ReviewSetTextActionBuilder

      public ReviewSetTextActionBuilder()
  • Method Details

    • text

      Value to set. If empty, any existing value will be removed.

      Parameters:
      text - value to be set
      Returns:
      Builder
    • getText

      @Nullable public String getText()

      Value to set. If empty, any existing value will be removed.

      Returns:
      text
    • build

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

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

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

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