Class AttributeReferenceTypeBuilder

java.lang.Object
com.commercetools.importapi.models.producttypes.AttributeReferenceTypeBuilder
All Implemented Interfaces:
Builder<AttributeReferenceType>

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

     AttributeReferenceType attributeReferenceType = AttributeReferenceType.builder()
             .referenceTypeId(ReferenceType.CART)
             .build()
 
  • Constructor Details

    • AttributeReferenceTypeBuilder

      public AttributeReferenceTypeBuilder()
  • Method Details

    • referenceTypeId

      public AttributeReferenceTypeBuilder referenceTypeId(ReferenceType referenceTypeId)

      The type of the referenced resource.

      Parameters:
      referenceTypeId - value to be set
      Returns:
      Builder
    • getReferenceTypeId

      public ReferenceType getReferenceTypeId()

      The type of the referenced resource.

      Returns:
      referenceTypeId
    • build

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

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

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

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