Class ReviewSetRatingActionBuilder

java.lang.Object
com.commercetools.api.models.review.ReviewSetRatingActionBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ReviewSetRatingAction>

public class ReviewSetRatingActionBuilder extends Object implements io.vrap.rmf.base.client.Builder<ReviewSetRatingAction>
ReviewSetRatingActionBuilder
Example to create an instance using the builder pattern

     ReviewSetRatingAction reviewSetRatingAction = ReviewSetRatingAction.builder()
             .build()
 
  • Constructor Details

    • ReviewSetRatingActionBuilder

      public ReviewSetRatingActionBuilder()
  • Method Details

    • rating

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

      Parameters:
      rating - value to be set
      Returns:
      Builder
    • getRating

      @Nullable public Integer getRating()

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

      Returns:
      rating
    • build

      public ReviewSetRatingAction build()
      builds ReviewSetRatingAction with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<ReviewSetRatingAction>
      Returns:
      ReviewSetRatingAction
    • buildUnchecked

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

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

      create builder for ReviewSetRatingAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder