Record Class Problem
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.api.web.v1.generated.model.Problem
- Record Components:
type- URI reference identifying the problem type.title- Short, human-readable summary of the problem type.status- HTTP status code of the answer.detail- Human-readable explanation specific to this occurrence.instance- URI reference identifying this occurrence, usually the request path.violations- Only for urn:problem:account:invalid-password, the names of the broken password rules.
@Generated(value="org.openapitools.codegen.languages.SpringCodegen",
date="2026-11-08T20:21:45.782821081Z[Etc/UTC]",
comments="Generator version: 7.27.0")
public record Problem(@Valid URI type, String title, Integer status, String detail, @Valid URI instance, List<String> violations)
extends Record
RFC 9457 problem details. The type is a URN naming the failure, for example urn:problem:account:rate-limited or urn:problem:client:not-found. Request validation failures use about:blank.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thedetailrecord component.private final @Valid URIThe field for theinstancerecord component.private final IntegerThe field for thestatusrecord component.private final StringThe field for thetitlerecord component.private final @Valid URIThe field for thetyperecord component.The field for theviolationsrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetail()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.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.Returns the value of theviolationsrecord 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. -
violations
The field for theviolationsrecord 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 List<String> violations) 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 componentviolations- the value for theviolationsrecord 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
-
violations
Returns the value of theviolationsrecord component.- Returns:
- the value of the
violationsrecord component
-