Record Class Problem
java.lang.Object
java.lang.Record
com.irurueta.authserver.bff.api.web.v1.generated.model.Problem
- Record Components:
type- URI reference identifying the problem type, a URN such as urn:problem:documents:not-found.title- Short, human-readable summary of the problem type.status- HTTP status code of the answer.detail- Human-readable explanation specific to this occurrence. It never carries a token.instance- URI reference identifying this occurrence, usually the request path.acrValues- Only in a urn:problem:documents:step-up-required problem: the space-separated authentication context class references the resource server asks for, to pass as acrValues to GET /bff/login. Absent when the resource server named none.maxAge- Only in a urn:problem:documents:step-up-required problem: the maximum age, in seconds, of the authentication the resource server accepts, to pass as maxAge to GET /bff/login. Absent when the resource server named none.
@Generated(value="org.openapitools.codegen.languages.SpringCodegen",
date="2026-11-08T20:21:50.543277293Z[Etc/UTC]",
comments="Generator version: 7.27.0")
public record Problem(@Valid URI type, String title, Integer status, String detail, @Valid URI instance, String acrValues, Long maxAge)
extends Record
RFC 9457 problem details of a failed call to the documents, answered as application/problem+json. The operations also declare them under application/json so that a client that only asks for JSON is not refused with 406: it gets the status and the problem (still as application/problem+json).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theacrValuesrecord component.private final StringThe field for thedetailrecord component.private final @Valid URIThe field for theinstancerecord component.private final LongThe field for themaxAgerecord component.private final IntegerThe field for thestatusrecord component.private final StringThe field for thetitlerecord component.private final @Valid URIThe field for thetyperecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theacrValuesrecord component.detail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Valid URIinstance()Returns the value of theinstancerecord component.maxAge()Returns the value of themaxAgerecord component.status()Returns the value of thestatusrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.@Valid URItype()Returns the value of thetyperecord component.
-
Field Details
-
type
The field for thetyperecord component. -
title
The field for thetitlerecord component. -
status
The field for thestatusrecord component. -
detail
The field for thedetailrecord component. -
instance
The field for theinstancerecord component. -
acrValues
The field for theacrValuesrecord component. -
maxAge
The field for themaxAgerecord component.
-
-
Constructor Details
-
Problem
public Problem(@Valid @Nullable @Valid URI type, @Nullable String title, @Nullable Integer status, @Nullable String detail, @Valid @Nullable @Valid URI instance, @Nullable String acrValues, @Nullable Long maxAge) Creates an instance of aProblemrecord class.- Parameters:
type- the value for thetyperecord componenttitle- the value for thetitlerecord componentstatus- the value for thestatusrecord componentdetail- the value for thedetailrecord componentinstance- the value for theinstancerecord componentacrValues- the value for theacrValuesrecord componentmaxAge- the value for themaxAgerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-
instance
Returns the value of theinstancerecord component.- Returns:
- the value of the
instancerecord component
-
acrValues
Returns the value of theacrValuesrecord component.- Returns:
- the value of the
acrValuesrecord component
-
maxAge
Returns the value of themaxAgerecord component.- Returns:
- the value of the
maxAgerecord component
-