Class LastModifiedByBuilder

java.lang.Object
com.commercetools.api.models.common.LastModifiedByBuilder
All Implemented Interfaces:
Builder<LastModifiedBy>

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

     LastModifiedBy lastModifiedBy = LastModifiedBy.builder()
             .build()
 
  • Constructor Details

    • LastModifiedByBuilder

      public LastModifiedByBuilder()
  • Method Details

    • clientId

      public LastModifiedByBuilder clientId(@Nullable String clientId)

      id of the API Client which modified the resource.

      Parameters:
      clientId - value to be set
      Returns:
      Builder
    • externalUserId

      public LastModifiedByBuilder externalUserId(@Nullable String externalUserId)

      External user ID provided by X-External-User-ID HTTP Header or external_user_id:{externalUserId} scope.

      Parameters:
      externalUserId - value to be set
      Returns:
      Builder
    • customer

      Indicates the Customer who modified the resource using a token from the password flow.

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

      Indicates the Customer who modified the resource using a token from the password flow.

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

      Indicates the Customer who modified the resource using a token from the password flow.

      Parameters:
      customer - value to be set
      Returns:
      Builder
    • anonymousId

      public LastModifiedByBuilder anonymousId(@Nullable String anonymousId)

      Indicates the anonymous session during which the resource was modified.

      Parameters:
      anonymousId - value to be set
      Returns:
      Builder
    • associate

      Indicates the Customer who modified the resource in the context of a Business Unit. Only present when an Associate acts on behalf of a company using the associate endpoints.

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

      Indicates the Customer who modified the resource in the context of a Business Unit. Only present when an Associate acts on behalf of a company using the associate endpoints.

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

      public LastModifiedByBuilder associate(@Nullable CustomerReference associate)

      Indicates the Customer who modified the resource in the context of a Business Unit. Only present when an Associate acts on behalf of a company using the associate endpoints.

      Parameters:
      associate - value to be set
      Returns:
      Builder
    • getClientId

      @Nullable public String getClientId()

      id of the API Client which modified the resource.

      Returns:
      clientId
    • getExternalUserId

      @Nullable public String getExternalUserId()

      External user ID provided by X-External-User-ID HTTP Header or external_user_id:{externalUserId} scope.

      Returns:
      externalUserId
    • getCustomer

      @Nullable public CustomerReference getCustomer()

      Indicates the Customer who modified the resource using a token from the password flow.

      Returns:
      customer
    • getAnonymousId

      @Nullable public String getAnonymousId()

      Indicates the anonymous session during which the resource was modified.

      Returns:
      anonymousId
    • getAssociate

      @Nullable public CustomerReference getAssociate()

      Indicates the Customer who modified the resource in the context of a Business Unit. Only present when an Associate acts on behalf of a company using the associate endpoints.

      Returns:
      associate
    • build

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

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

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

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