Class AssociateRoleLabelBuilder

java.lang.Object
com.commercetools.history.models.label.AssociateRoleLabelBuilder
All Implemented Interfaces:
Builder<AssociateRoleLabel>

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

     AssociateRoleLabel associateRoleLabel = AssociateRoleLabel.builder()
             .key("{key}")
             .name("{name}")
             .build()
 
  • Constructor Details

    • AssociateRoleLabelBuilder

      public AssociateRoleLabelBuilder()
  • Method Details

    • key

      User-defined unique identifier of the Associate Role.

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

      public AssociateRoleLabelBuilder name(String name)

      Name of the Associate Role.

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

      public String getKey()

      User-defined unique identifier of the Associate Role.

      Returns:
      key
    • getName

      public String getName()

      Name of the Associate Role.

      Returns:
      name
    • build

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

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

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

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