Class ReviewSetLocaleActionBuilder

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

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

     ReviewSetLocaleAction reviewSetLocaleAction = ReviewSetLocaleAction.builder()
             .build()
 
  • Constructor Details

    • ReviewSetLocaleActionBuilder

      public ReviewSetLocaleActionBuilder()
  • Method Details

    • locale

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

      Parameters:
      locale - value to be set
      Returns:
      Builder
    • getLocale

      @Nullable public String getLocale()

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

      Returns:
      locale
    • build

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

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

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

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