Class EnumFieldBuilder

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

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

     EnumField enumField = EnumField.builder()
             .value("{value}")
             .build()
 
  • Constructor Details

    • EnumFieldBuilder

      public EnumFieldBuilder()
  • Method Details

    • value

      public EnumFieldBuilder 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 EnumField build()
      builds EnumField with checking for non-null required values
      Specified by:
      build in interface Builder<EnumField>
      Returns:
      EnumField
    • buildUnchecked

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

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

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