Class UserProvidedIdentifiersBuilder

java.lang.Object
com.commercetools.api.models.message.UserProvidedIdentifiersBuilder
All Implemented Interfaces:
Builder<UserProvidedIdentifiers>

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

     UserProvidedIdentifiers userProvidedIdentifiers = UserProvidedIdentifiers.builder()
             .build()
 
  • Constructor Details

    • UserProvidedIdentifiersBuilder

      public UserProvidedIdentifiersBuilder()
  • Method Details

    • key

      public UserProvidedIdentifiersBuilder key(@Nullable String key)

      User-provided unique identifier of the resource.

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

      public UserProvidedIdentifiersBuilder externalId(@Nullable String externalId)

      User-provided unique identifier of the resource.

      Parameters:
      externalId - value to be set
      Returns:
      Builder
    • orderNumber

      public UserProvidedIdentifiersBuilder orderNumber(@Nullable String orderNumber)

      User-provided unique identifier of an Order.

      Parameters:
      orderNumber - value to be set
      Returns:
      Builder
    • customerNumber

      public UserProvidedIdentifiersBuilder customerNumber(@Nullable String customerNumber)

      User-provided unique identifier of a Customer.

      Parameters:
      customerNumber - value to be set
      Returns:
      Builder
    • sku

      public UserProvidedIdentifiersBuilder sku(@Nullable String sku)

      Unique SKU of a Product Variant.

      Parameters:
      sku - value to be set
      Returns:
      Builder
    • slug

      Unique identifier usually used in deep-link URLs for a Product. The value corresponds to the slug in the current Product Projection.

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

      Unique identifier usually used in deep-link URLs for a Product. The value corresponds to the slug in the current Product Projection.

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

      public UserProvidedIdentifiersBuilder slug(@Nullable LocalizedString slug)

      Unique identifier usually used in deep-link URLs for a Product. The value corresponds to the slug in the current Product Projection.

      Parameters:
      slug - value to be set
      Returns:
      Builder
    • containerAndKey

      Unique identifier of a Custom Object.

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

      Unique identifier of a Custom Object.

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

      public UserProvidedIdentifiersBuilder containerAndKey(@Nullable ContainerAndKey containerAndKey)

      Unique identifier of a Custom Object.

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

      @Nullable public String getKey()

      User-provided unique identifier of the resource.

      Returns:
      key
    • getExternalId

      @Nullable public String getExternalId()

      User-provided unique identifier of the resource.

      Returns:
      externalId
    • getOrderNumber

      @Nullable public String getOrderNumber()

      User-provided unique identifier of an Order.

      Returns:
      orderNumber
    • getCustomerNumber

      @Nullable public String getCustomerNumber()

      User-provided unique identifier of a Customer.

      Returns:
      customerNumber
    • getSku

      @Nullable public String getSku()

      Unique SKU of a Product Variant.

      Returns:
      sku
    • getSlug

      @Nullable public LocalizedString getSlug()

      Unique identifier usually used in deep-link URLs for a Product. The value corresponds to the slug in the current Product Projection.

      Returns:
      slug
    • getContainerAndKey

      @Nullable public ContainerAndKey getContainerAndKey()

      Unique identifier of a Custom Object.

      Returns:
      containerAndKey
    • build

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

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

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

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