Interface InvalidFieldsUpdateError

All Superinterfaces:
ErrorObject

public interface InvalidFieldsUpdateError extends ErrorObject

Returned when a field cannot be updated.


Example to create an instance using the builder pattern

     InvalidFieldsUpdateError invalidFieldsUpdateError = InvalidFieldsUpdateError.builder()
             .message("{message}")
             .plusFields(fieldsBuilder -> fieldsBuilder)
             .build()
 
  • Field Details

    • INVALID_FIELD_UPDATE

      static final String INVALID_FIELD_UPDATE
      discriminator value for InvalidFieldsUpdateError
      See Also:
  • Method Details

    • getMessage

      @NotNull @NotNull String getMessage()

      "The following fields are currently not supported for changes/updates"

      Specified by:
      getMessage in interface ErrorObject
      Returns:
      message
    • getFields

      @NotNull @NotNull List<String> getFields()

      Fields that cannot be updated.

      Returns:
      fields
    • setMessage

      void setMessage(String message)

      "The following fields are currently not supported for changes/updates"

      Specified by:
      setMessage in interface ErrorObject
      Parameters:
      message - value to be set
    • setFields

      void setFields(String... fields)

      Fields that cannot be updated.

      Parameters:
      fields - values to be set
    • setFields

      void setFields(List<String> fields)

      Fields that cannot be updated.

      Parameters:
      fields - values to be set
    • of

      factory method
      Returns:
      instance of InvalidFieldsUpdateError
    • of

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

      factory method to create a deep copy of InvalidFieldsUpdateError
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for InvalidFieldsUpdateError
      Returns:
      builder
    • builder

      create builder for InvalidFieldsUpdateError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withInvalidFieldsUpdateError

      default <T> T withInvalidFieldsUpdateError(Function<InvalidFieldsUpdateError,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<InvalidFieldsUpdateError> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference