Record Class SitePropertiesUpdate
java.lang.Object
java.lang.Record
io.meeds.layout.model.SitePropertiesUpdate
public record SitePropertiesUpdate(String label, String description, String icon, Boolean displayed, String bannerUploadId, Boolean removeBanner)
extends Record
The properties of a site a caller states in an update: a null field is one
the caller did not state, which keeps its stored value. A banner upload is
consumed by the save; removeBanner drops the stored banner.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebannerUploadIdrecord component.Returns the value of thedescriptionrecord component.Returns the value of thedisplayedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.label()Returns the value of thelabelrecord component.Returns the value of theremoveBannerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SitePropertiesUpdate
public SitePropertiesUpdate(String label, String description, String icon, Boolean displayed, String bannerUploadId, Boolean removeBanner) Creates an instance of aSitePropertiesUpdaterecord class.- Parameters:
label- the value for thelabelrecord componentdescription- the value for thedescriptionrecord componenticon- the value for theiconrecord componentdisplayed- the value for thedisplayedrecord componentbannerUploadId- the value for thebannerUploadIdrecord componentremoveBanner- the value for theremoveBannerrecord 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). -
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
displayed
Returns the value of thedisplayedrecord component.- Returns:
- the value of the
displayedrecord component
-
bannerUploadId
Returns the value of thebannerUploadIdrecord component.- Returns:
- the value of the
bannerUploadIdrecord component
-
removeBanner
Returns the value of theremoveBannerrecord component.- Returns:
- the value of the
removeBannerrecord component
-