Record Class CreateStorybookRequest
java.lang.Object
java.lang.Record
inha.dayoook_e.storybook.api.controller.dto.request.CreateStorybookRequest
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreateStorybookRequest(@NotNull String title, @NotNull String description, @NotNull Integer countryId, @NotNull @Size(min=1) List<CreateStorybookRequest.PageContent> pageContents) Creates an instance of aCreateStorybookRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull IntegerReturns the value of thecountryIdrecord component.@NotNull StringReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull @Size(min=1) List<CreateStorybookRequest.PageContent>Returns the value of thepageContentsrecord component.@NotNull Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateStorybookRequest
public CreateStorybookRequest(@NotNull @NotNull String title, @NotNull @NotNull String description, @NotNull @NotNull Integer countryId, @NotNull @Size(min=1) @NotNull @Size(min=1) List<CreateStorybookRequest.PageContent> pageContents) Creates an instance of aCreateStorybookRequestrecord class.- Parameters:
title- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentcountryId- the value for thecountryIdrecord componentpageContents- the value for thepageContentsrecord 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). -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
countryId
Returns the value of thecountryIdrecord component.- Returns:
- the value of the
countryIdrecord component
-
pageContents
@NotNull @Size(min=1) public @NotNull @Size(min=1) List<CreateStorybookRequest.PageContent> pageContents()Returns the value of thepageContentsrecord component.- Returns:
- the value of the
pageContentsrecord component
-