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 aCreateStorybookRequest
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Integer
Returns the value of thecountryId
record component.@NotNull String
Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull @Size(min=1) List<CreateStorybookRequest.PageContent>
Returns the value of thepageContents
record component.@NotNull String
title()
Returns the value of thetitle
record component.final String
toString()
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 aCreateStorybookRequest
record class.- Parameters:
title
- the value for thetitle
record componentdescription
- the value for thedescription
record componentcountryId
- the value for thecountryId
record componentpageContents
- the value for thepageContents
record 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 thetitle
record component.- Returns:
- the value of the
title
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
countryId
Returns the value of thecountryId
record component.- Returns:
- the value of the
countryId
record component
-
pageContents
@NotNull @Size(min=1) public @NotNull @Size(min=1) List<CreateStorybookRequest.PageContent> pageContents()Returns the value of thepageContents
record component.- Returns:
- the value of the
pageContents
record component
-