Record Class CreateUpdateRecurringNotificationDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.notification.CreateUpdateRecurringNotificationDTO
- Record Components:
frequency-RecurringNotificationFrequencynotificationType-RecurringNotificationType
public record CreateUpdateRecurringNotificationDTO(@NotNull RecurringNotificationFrequency frequency, @NotNull RecurringNotificationType notificationType)
extends Record
Request object for creating and updating
RecurringNotifications.- Version:
- 3.0.1
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionCreateUpdateRecurringNotificationDTO(@NotNull RecurringNotificationFrequency frequency, @NotNull RecurringNotificationType notificationType) Creates an instance of aCreateUpdateRecurringNotificationDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull RecurringNotificationFrequencyReturns the value of thefrequencyrecord component.final inthashCode()Returns a hash code value for this object.@NotNull RecurringNotificationTypeReturns the value of thenotificationTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateUpdateRecurringNotificationDTO
public CreateUpdateRecurringNotificationDTO(@NotNull @NotNull RecurringNotificationFrequency frequency, @NotNull @NotNull RecurringNotificationType notificationType) Creates an instance of aCreateUpdateRecurringNotificationDTOrecord class.- Parameters:
frequency- the value for thefrequencyrecord componentnotificationType- the value for thenotificationTyperecord 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). -
frequency
-
notificationType
Returns the value of thenotificationTyperecord component.- Returns:
- the value of the
notificationTyperecord component
-