java.lang.Object
java.lang.Record
com.irurueta.authserver.resourceserver.api.web.v1.generated.model.DocumentResponse
Record Components:
id - Unique identifier of the document.
owner - Subject of the user who owns the document.
title - Short title of the document.
content - Body of the document.

@Generated(value="org.openapitools.codegen.languages.SpringCodegen", date="2026-11-08T20:29:26.340896622Z[Etc/UTC]", comments="Generator version: 7.27.0") public record DocumentResponse(@NotNull String id, @NotNull String owner, @NotNull String title, @NotNull String content) extends Record
A document owned by a user.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final @NotNull String
    The field for the content record component.
    private final @NotNull String
    The field for the id record component.
    private final @NotNull String
    The field for the owner record component.
    private final @NotNull String
    The field for the title record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DocumentResponse(@NotNull String id, @NotNull String owner, @NotNull String title, @NotNull String content)
    Creates an instance of a DocumentResponse record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    Returns the value of the content record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @NotNull String
    id()
    Returns the value of the id record component.
    @NotNull String
    Returns the value of the owner record component.
    @NotNull String
    Returns the value of the title record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      @NotNull private final @NotNull String id
      The field for the id record component.
    • owner

      @NotNull private final @NotNull String owner
      The field for the owner record component.
    • title

      @NotNull private final @NotNull String title
      The field for the title record component.
    • content

      @NotNull private final @NotNull String content
      The field for the content record component.
  • Constructor Details

    • DocumentResponse

      public DocumentResponse(@NotNull @NotNull String id, @NotNull @NotNull String owner, @NotNull @NotNull String title, @NotNull @NotNull String content)
      Creates an instance of a DocumentResponse record class.
      Parameters:
      id - the value for the id record component
      owner - the value for the owner record component
      title - the value for the title record component
      content - the value for the content record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      @NotNull public @NotNull String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • owner

      @NotNull public @NotNull String owner()
      Returns the value of the owner record component.
      Returns:
      the value of the owner record component
    • title

      @NotNull public @NotNull String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • content

      @NotNull public @NotNull String content()
      Returns the value of the content record component.
      Returns:
      the value of the content record component