Class EnumAttributeBuilder

java.lang.Object
com.commercetools.importapi.models.productvariants.EnumAttributeBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<EnumAttribute>

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

     EnumAttribute enumAttribute = EnumAttribute.builder()
             .value("{value}")
             .build()
 
  • Constructor Details

  • Method Details

    • name

      The name of this attribute must match a name of the product types attribute definitions. The name is required if this type is used in a product variant and must not be set when used in a product variant patch.

      Parameters:
      name - value to be set
      Returns:
      Builder
    • value

      set the value to the value
      Parameters:
      value - value to be set
      Returns:
      Builder
    • getName

      The name of this attribute must match a name of the product types attribute definitions. The name is required if this type is used in a product variant and must not be set when used in a product variant patch.

      Returns:
      name
    • getValue

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

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

      builds EnumAttribute without checking for non-null required values
      Returns:
      EnumAttribute
    • of

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

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