Record Class AdvertiserResponseDTO

java.lang.Object
java.lang.Record
com.alpaca.dto.response.AdvertiserResponseDTO

public record AdvertiserResponseDTO(UUID id, String title, String description, String bannerUrl, String avatarUrl, String publicLocation, String publicUrlLocation, boolean indexed, boolean paid, boolean verified, UUID userId, String email) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
    The field for the avatarUrl record component.
    private final String
    The field for the bannerUrl record component.
    private final String
    The field for the description record component.
    private final String
    The field for the email record component.
    private final UUID
    The field for the id record component.
    private final boolean
    The field for the indexed record component.
    private final boolean
    The field for the paid record component.
    private final String
    The field for the publicLocation record component.
    private final String
    The field for the publicUrlLocation record component.
    private final String
    The field for the title record component.
    private final UUID
    The field for the userId record component.
    private final boolean
    The field for the verified record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AdvertiserResponseDTO(UUID id, String title, String description, String bannerUrl, String avatarUrl, String publicLocation, String publicUrlLocation, boolean indexed, boolean paid, boolean verified, UUID userId, String email)
    Creates an instance of a AdvertiserResponseDTO record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the avatarUrl record component.
    Returns the value of the bannerUrl record component.
    Returns the value of the description record component.
    Returns the value of the email record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    id()
    Returns the value of the id record component.
    boolean
    Returns the value of the indexed record component.
    boolean
    Returns the value of the paid record component.
    Returns the value of the publicLocation record component.
    Returns the value of the publicUrlLocation record component.
    Returns the value of the title record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the userId record component.
    boolean
    Returns the value of the verified record component.

    Methods inherited from class java.lang.Object

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

    • id

      private final UUID id
      The field for the id record component.
    • title

      private final String title
      The field for the title record component.
    • description

      private final String description
      The field for the description record component.
    • bannerUrl

      private final String bannerUrl
      The field for the bannerUrl record component.
    • avatarUrl

      private final String avatarUrl
      The field for the avatarUrl record component.
    • publicLocation

      private final String publicLocation
      The field for the publicLocation record component.
    • publicUrlLocation

      private final String publicUrlLocation
      The field for the publicUrlLocation record component.
    • indexed

      private final boolean indexed
      The field for the indexed record component.
    • verified

      private final boolean verified
      The field for the verified record component.
    • userId

      private final UUID userId
      The field for the userId record component.
    • email

      private final String email
      The field for the email record component.
  • Constructor Details

    • AdvertiserResponseDTO

      public AdvertiserResponseDTO(UUID id, String title, String description, String bannerUrl, String avatarUrl, String publicLocation, String publicUrlLocation, boolean indexed, boolean paid, boolean verified, UUID userId, String email)
      Creates an instance of a AdvertiserResponseDTO record class.
      Parameters:
      id - the value for the id record component
      title - the value for the title record component
      description - the value for the description record component
      bannerUrl - the value for the bannerUrl record component
      avatarUrl - the value for the avatarUrl record component
      publicLocation - the value for the publicLocation record component
      publicUrlLocation - the value for the publicUrlLocation record component
      indexed - the value for the indexed record component
      paid - the value for the paid record component
      verified - the value for the verified record component
      userId - the value for the userId record component
      email - the value for the email 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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

      public UUID id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • bannerUrl

      public String bannerUrl()
      Returns the value of the bannerUrl record component.
      Returns:
      the value of the bannerUrl record component
    • avatarUrl

      public String avatarUrl()
      Returns the value of the avatarUrl record component.
      Returns:
      the value of the avatarUrl record component
    • publicLocation

      public String publicLocation()
      Returns the value of the publicLocation record component.
      Returns:
      the value of the publicLocation record component
    • publicUrlLocation

      public String publicUrlLocation()
      Returns the value of the publicUrlLocation record component.
      Returns:
      the value of the publicUrlLocation record component
    • indexed

      public boolean indexed()
      Returns the value of the indexed record component.
      Returns:
      the value of the indexed record component
    • paid

      public boolean paid()
      Returns the value of the paid record component.
      Returns:
      the value of the paid record component
    • verified

      public boolean verified()
      Returns the value of the verified record component.
      Returns:
      the value of the verified record component
    • userId

      public UUID userId()
      Returns the value of the userId record component.
      Returns:
      the value of the userId record component
    • email

      public String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component