Class FieldContainerBuilder

java.lang.Object
com.commercetools.api.models.type.FieldContainerBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<FieldContainer>

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

     FieldContainer fieldContainer = FieldContainer.builder()
             .build()
 
  • Constructor Details

  • Method Details

    • values

      JSON object with keys matching the names of Custom Fields (that is, names in the FieldDefinitions) and values given by CustomFieldValue.

      Parameters:
      values - properties to be set
      Returns:
      Builder
    • addValue

      JSON object with keys matching the names of Custom Fields (that is, names in the FieldDefinitions) and values given by CustomFieldValue.

      Parameters:
      key - property name
      value - property value
      Returns:
      Builder
    • getValues

      JSON object with keys matching the names of Custom Fields (that is, names in the FieldDefinitions) and values given by CustomFieldValue.

      Returns:
      pattern properties
    • build

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

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

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

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