Class AttributeGroupReferenceBuilder

java.lang.Object
com.commercetools.api.models.attribute_group.AttributeGroupReferenceBuilder
All Implemented Interfaces:
Builder<AttributeGroupReference>

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

     AttributeGroupReference attributeGroupReference = AttributeGroupReference.builder()
             .id("{id}")
             .build()
 
  • Constructor Details

    • AttributeGroupReferenceBuilder

      public AttributeGroupReferenceBuilder()
  • Method Details

    • id

      Platform-generated unique identifier of the referenced AttributeGroup.

      Parameters:
      id - value to be set
      Returns:
      Builder
    • obj

      Contains the representation of the expanded AttributeGroup. Only present in responses to requests with Reference Expansion for AttributeGroup.

      Parameters:
      builder - function to build the obj value
      Returns:
      Builder
    • withObj

      Contains the representation of the expanded AttributeGroup. Only present in responses to requests with Reference Expansion for AttributeGroup.

      Parameters:
      builder - function to build the obj value
      Returns:
      Builder
    • obj

      Contains the representation of the expanded AttributeGroup. Only present in responses to requests with Reference Expansion for AttributeGroup.

      Parameters:
      obj - value to be set
      Returns:
      Builder
    • getId

      public String getId()

      Platform-generated unique identifier of the referenced AttributeGroup.

      Returns:
      id
    • getObj

      @Nullable public AttributeGroup getObj()

      Contains the representation of the expanded AttributeGroup. Only present in responses to requests with Reference Expansion for AttributeGroup.

      Returns:
      obj
    • build

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

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

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

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