Class ReviewReferenceBuilder

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

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

     ReviewReference reviewReference = ReviewReference.builder()
             .id("{id}")
             .build()
 
  • Constructor Details

    • ReviewReferenceBuilder

      public ReviewReferenceBuilder()
  • Method Details

    • id

      Unique identifier of the referenced Review.

      Parameters:
      id - value to be set
      Returns:
      Builder
    • obj

      Contains the representation of the expanded Review. Only present in responses to requests with Reference Expansion for Reviews.

      Parameters:
      builder - function to build the obj value
      Returns:
      Builder
    • withObj

      Contains the representation of the expanded Review. Only present in responses to requests with Reference Expansion for Reviews.

      Parameters:
      builder - function to build the obj value
      Returns:
      Builder
    • obj

      Contains the representation of the expanded Review. Only present in responses to requests with Reference Expansion for Reviews.

      Parameters:
      obj - value to be set
      Returns:
      Builder
    • getId

      public String getId()

      Unique identifier of the referenced Review.

      Returns:
      id
    • getObj

      @Nullable public Review getObj()

      Contains the representation of the expanded Review. Only present in responses to requests with Reference Expansion for Reviews.

      Returns:
      obj
    • build

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

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

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

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