Interface CustomerSetAuthenticationModeAction

All Superinterfaces:
CustomerUpdateAction, ResourceUpdateAction<CustomerUpdateAction>

public interface CustomerSetAuthenticationModeAction extends CustomerUpdateAction
CustomerSetAuthenticationModeAction
Example to create an instance using the builder pattern

     CustomerSetAuthenticationModeAction customerSetAuthenticationModeAction = CustomerSetAuthenticationModeAction.builder()
             .authMode(AuthenticationMode.PASSWORD)
             .build()
 
  • Field Details

    • SET_AUTHENTICATION_MODE

      static final String SET_AUTHENTICATION_MODE
      discriminator value for CustomerSetAuthenticationModeAction
      See Also:
  • Method Details

    • getAuthMode

      @NotNull @NotNull AuthenticationMode getAuthMode()

      Value to set. Changing a Customer's authMode from Password to ExternalAuth deletes the Customer's password.

      Returns:
      authMode
    • getPassword

      String getPassword()

      Required when authMode is Password.

      Returns:
      password
    • setAuthMode

      void setAuthMode(AuthenticationMode authMode)

      Value to set. Changing a Customer's authMode from Password to ExternalAuth deletes the Customer's password.

      Parameters:
      authMode - value to be set
    • setPassword

      void setPassword(String password)

      Required when authMode is Password.

      Parameters:
      password - value to be set
    • of

      factory method
      Returns:
      instance of CustomerSetAuthenticationModeAction
    • of

      factory method to create a shallow copy CustomerSetAuthenticationModeAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static CustomerSetAuthenticationModeAction deepCopy(@Nullable CustomerSetAuthenticationModeAction template)
      factory method to create a deep copy of CustomerSetAuthenticationModeAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for CustomerSetAuthenticationModeAction
      Returns:
      builder
    • builder

      create builder for CustomerSetAuthenticationModeAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomerSetAuthenticationModeAction

      default <T> T withCustomerSetAuthenticationModeAction(Function<CustomerSetAuthenticationModeAction,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<CustomerSetAuthenticationModeAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference