Interface ValidationExceptionField.Builder

  • Method Details

    • reason

      The reason the field failed validation.

      Parameters:
      reason - The reason the field failed validation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • reason

      The reason the field failed validation.

      Parameters:
      reason - The reason the field failed validation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • entityType

      ValidationExceptionField.Builder entityType(String entityType)

      The entity type the failing field applies to, if the field is on a specific entity. For example, AmiProduct@1.0.

      Parameters:
      entityType - The entity type the failing field applies to, if the field is on a specific entity. For example, AmiProduct@1.0.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • entityId

      The entity identifier the failing field applies to, if the field is on a specific entity.

      Parameters:
      entityId - The entity identifier the failing field applies to, if the field is on a specific entity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • changeType

      ValidationExceptionField.Builder changeType(String changeType)

      The change type the failing field applies to, if the field is part of a change request. For example, AddDeliveryOptions.

      Parameters:
      changeType - The change type the failing field applies to, if the field is part of a change request. For example, AddDeliveryOptions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • field

      The name of the request field that failed validation, expressed as a JSON path (for example, Details.DeliveryOptions[0].Type).

      Parameters:
      field - The name of the request field that failed validation, expressed as a JSON path (for example, Details.DeliveryOptions[0].Type).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • message

      A human-readable message describing why the field failed validation.

      Parameters:
      message - A human-readable message describing why the field failed validation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.