Record Class CreateUpdateSymbolDTO

java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.symbol.CreateUpdateSymbolDTO
Record Components:
name - symbol name
ticker - symbol ticker
description - description
website - website
active - is symbol active
type - SymbolType
revision - SymbolRevision
exchangeMic - exchange MIC

public record CreateUpdateSymbolDTO(@NotBlank @Size(min=3,max=75) String name, @NotBlank @Size(max=10) String ticker, String description, @Size(max=255) @Pattern(regexp="^https?://\\S+$",flags=CASE_INSENSITIVE) String website, @NotNull Boolean active, @NotBlank @Size(max=255) String type, @NotBlank @Size(max=255) String revision, @NotBlank @Size(max=255) String exchangeMic) extends Record
Request object for creating and updating Symbols.
Version:
3.0.1
Author:
Stephen Prizio
  • Constructor Summary

    Constructors
    Constructor
    Description
    CreateUpdateSymbolDTO(@NotBlank @Size(min=3,max=75) String name, @NotBlank @Size(max=10) String ticker, String description, @Size(max=255) @Pattern(regexp="^https?://\\S+$",flags=CASE_INSENSITIVE) String website, @NotNull Boolean active, @NotBlank @Size(max=255) String type, @NotBlank @Size(max=255) String revision, @NotBlank @Size(max=255) String exchangeMic)
    Creates an instance of a CreateUpdateSymbolDTO record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Boolean
    Returns the value of the active record component.
    Returns the value of the description record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    @NotBlank @Size(max=255) String
    Returns the value of the exchangeMic record component.
    final int
    Returns a hash code value for this object.
    @NotBlank @Size(min=3,max=75) String
    Returns the value of the name record component.
    @NotBlank @Size(max=255) String
    Returns the value of the revision record component.
    @NotBlank @Size(max=10) String
    Returns the value of the ticker record component.
    final String
    Returns a string representation of this record class.
    @NotBlank @Size(max=255) String
    Returns the value of the type record component.
    @Size(max=255) @Pattern(regexp="^https?://\\S+$",flags=CASE_INSENSITIVE) String
    Returns the value of the website record component.

    Methods inherited from class Object

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

    • CreateUpdateSymbolDTO

      public CreateUpdateSymbolDTO(@NotBlank @Size(min=3,max=75) @NotBlank @Size(min=3,max=75) String name, @NotBlank @Size(max=10) @NotBlank @Size(max=10) String ticker, String description, @Size(max=255) @Pattern(regexp="^https?://\\S+$",flags=CASE_INSENSITIVE) @Size(max=255) @Pattern(regexp="^https?://\\S+$",flags=CASE_INSENSITIVE) String website, @NotNull @NotNull Boolean active, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String type, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String revision, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String exchangeMic)
      Creates an instance of a CreateUpdateSymbolDTO record class.
      Parameters:
      name - the value for the name record component
      ticker - the value for the ticker record component
      description - the value for the description record component
      website - the value for the website record component
      active - the value for the active record component
      type - the value for the type record component
      revision - the value for the revision record component
      exchangeMic - the value for the exchangeMic 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.
    • name

      @NotBlank @Size(min=3, max=75) public @NotBlank @Size(min=3,max=75) String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • ticker

      @NotBlank @Size(max=10) public @NotBlank @Size(max=10) String ticker()
      Returns the value of the ticker record component.
      Returns:
      the value of the ticker record component
    • description

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

      @Size(max=255) @Pattern(regexp="^https?://\\S+$", flags=CASE_INSENSITIVE) public @Size(max=255) @Pattern(regexp="^https?://\\S+$",flags=CASE_INSENSITIVE) String website()
      Returns the value of the website record component.
      Returns:
      the value of the website record component
    • active

      @NotNull public @NotNull Boolean active()
      Returns the value of the active record component.
      Returns:
      the value of the active record component
    • type

      @NotBlank @Size(max=255) public @NotBlank @Size(max=255) String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • revision

      @NotBlank @Size(max=255) public @NotBlank @Size(max=255) String revision()
      Returns the value of the revision record component.
      Returns:
      the value of the revision record component
    • exchangeMic

      @NotBlank @Size(max=255) public @NotBlank @Size(max=255) String exchangeMic()
      Returns the value of the exchangeMic record component.
      Returns:
      the value of the exchangeMic record component