Class AssociateRoleReferenceBuilder

java.lang.Object
com.commercetools.api.models.associate_role.AssociateRoleReferenceBuilder
All Implemented Interfaces:
Builder<AssociateRoleReference>

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

     AssociateRoleReference associateRoleReference = AssociateRoleReference.builder()
             .id("{id}")
             .build()
 
  • Constructor Details

    • AssociateRoleReferenceBuilder

      public AssociateRoleReferenceBuilder()
  • Method Details

    • id

      Unique identifier of the referenced AssociateRole.

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

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

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

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

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

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

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

      public String getId()

      Unique identifier of the referenced AssociateRole.

      Returns:
      id
    • getObj

      @Nullable public AssociateRole getObj()

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

      Returns:
      obj
    • build

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

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

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

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