Class ReviewSetKeyActionBuilder

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

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

     ReviewSetKeyAction reviewSetKeyAction = ReviewSetKeyAction.builder()
             .build()
 
  • Constructor Details

    • ReviewSetKeyActionBuilder

      public ReviewSetKeyActionBuilder()
  • Method Details

    • key

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

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

      @Nullable public String getKey()

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

      Returns:
      key
    • build

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

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

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

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