Class LocalizedEnumFieldBuilder

java.lang.Object
com.commercetools.importapi.models.customfields.LocalizedEnumFieldBuilder
All Implemented Interfaces:
Builder<LocalizedEnumField>

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

     LocalizedEnumField localizedEnumField = LocalizedEnumField.builder()
             .value("{value}")
             .build()
 
  • Constructor Details

    • LocalizedEnumFieldBuilder

      public LocalizedEnumFieldBuilder()
  • Method Details

    • value

      public LocalizedEnumFieldBuilder value(String value)
      set the value to the value
      Parameters:
      value - value to be set
      Returns:
      Builder
    • getValue

      public String getValue()
      value of value}
      Returns:
      value
    • build

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

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

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

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