Class ReviewSetTargetActionBuilder

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

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

     ReviewSetTargetAction reviewSetTargetAction = ReviewSetTargetAction.builder()
             .build()
 
  • Constructor Details

    • ReviewSetTargetActionBuilder

      public ReviewSetTargetActionBuilder()
  • Method Details

    • target

      public ReviewSetTargetActionBuilder target(Object target)

      Value to set, specified as ProductResourceIdentifier or ChannelResourceIdentifier, respectively. If empty, any existing value will be removed.

      Parameters:
      target - value to be set
      Returns:
      Builder
    • getTarget

      public Object getTarget()

      Value to set, specified as ProductResourceIdentifier or ChannelResourceIdentifier, respectively. If empty, any existing value will be removed.

      Returns:
      target
    • build

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

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

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

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