Class ModifiedByBuilder

java.lang.Object
com.commercetools.history.models.change_history.ModifiedByBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ModifiedBy>

public class ModifiedByBuilder extends Object implements io.vrap.rmf.base.client.Builder<ModifiedBy>
ModifiedByBuilder
Example to create an instance using the builder pattern

     ModifiedBy modifiedBy = ModifiedBy.builder()
             .id("{id}")
             .type("{type}")
             .isPlatformClient(true)
             .build()
 
  • Constructor Details

  • Method Details

    • id

      ID of the Merchant Center user who made the change.

      Present only if the change was made in the Merchant Center.

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

      public ModifiedByBuilder type(String type)

      Indicates who performed the change.

      • If the change was made by a user, the value is "user".
      • If the change was made by an API Client with or without an external user ID, the value is "external-user".
      Parameters:
      type - value to be set
      Returns:
      Builder
    • customer

      Reference to the Customer who made the change.

      Present only if the change was made using a token from the password flow.

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

      Reference to the Customer who made the change.

      Present only if the change was made using a token from the password flow.

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

      Reference to the Customer who made the change.

      Present only if the change was made using a token from the password flow.

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

      Present only if the change was made using a token from an anonymous session.

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

      ID of the API Client that made the change.

      Present only if the change was made using an API Client.

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

      public ModifiedByBuilder isPlatformClient(Boolean isPlatformClient)

      true if the change was made using the Merchant Center or ImpEx.

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

      public String getId()

      ID of the Merchant Center user who made the change.

      Present only if the change was made in the Merchant Center.

      Returns:
      id
    • getType

      public String getType()

      Indicates who performed the change.

      • If the change was made by a user, the value is "user".
      • If the change was made by an API Client with or without an external user ID, the value is "external-user".
      Returns:
      type
    • getCustomer

      Reference to the Customer who made the change.

      Present only if the change was made using a token from the password flow.

      Returns:
      customer
    • getAnonymousId

      Present only if the change was made using a token from an anonymous session.

      Returns:
      anonymousId
    • getClientId

      ID of the API Client that made the change.

      Present only if the change was made using an API Client.

      Returns:
      clientId
    • getIsPlatformClient

      true if the change was made using the Merchant Center or ImpEx.

      Returns:
      isPlatformClient
    • build

      public ModifiedBy build()
      builds ModifiedBy with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<ModifiedBy>
      Returns:
      ModifiedBy
    • buildUnchecked

      builds ModifiedBy without checking for non-null required values
      Returns:
      ModifiedBy
    • of

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

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