Record Class CreateUpdateSymbolDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.symbol.CreateUpdateSymbolDTO
- Record Components:
name- symbol nameticker- symbol tickerdescription- descriptionwebsite- websiteactive- is symbol activetype-SymbolTyperevision-SymbolRevisionexchangeMic- 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
ConstructorsConstructorDescriptionCreateUpdateSymbolDTO(@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 aCreateUpdateSymbolDTOrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Booleanactive()Returns the value of theactiverecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotBlank @Size(max=255) StringReturns the value of theexchangeMicrecord component.final inthashCode()Returns a hash code value for this object.@NotBlank @Size(min=3,max=75) Stringname()Returns the value of thenamerecord component.@NotBlank @Size(max=255) Stringrevision()Returns the value of therevisionrecord component.@NotBlank @Size(max=10) Stringticker()Returns the value of thetickerrecord component.final StringtoString()Returns a string representation of this record class.@NotBlank @Size(max=255) Stringtype()Returns the value of thetyperecord component.@Size(max=255) @Pattern(regexp="^https?://\\S+$",flags=CASE_INSENSITIVE) Stringwebsite()Returns the value of thewebsiterecord component.
-
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 aCreateUpdateSymbolDTOrecord class.- Parameters:
name- the value for thenamerecord componentticker- the value for thetickerrecord componentdescription- the value for thedescriptionrecord componentwebsite- the value for thewebsiterecord componentactive- the value for theactiverecord componenttype- the value for thetyperecord componentrevision- the value for therevisionrecord componentexchangeMic- the value for theexchangeMicrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
name
-
ticker
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
website
-
active
-
type
-
revision
-
exchangeMic
Returns the value of theexchangeMicrecord component.- Returns:
- the value of the
exchangeMicrecord component
-