Record Class ContactDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.system.ContactDTO
- Record Components:
name- name of the useremail- email of the userorganization- optional org of the usermessage- email message
-
Constructor Summary
ConstructorsConstructorDescriptionContactDTO(@NotBlank @Size(max=75) String name, @NotBlank @Email @Size(max=255) String email, @Size(max=255) String organization, @NotBlank String message) Creates an instance of aContactDTOrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank @Email @Size(max=255) Stringemail()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotBlank Stringmessage()Returns the value of themessagerecord component.@NotBlank @Size(max=75) Stringname()Returns the value of thenamerecord component.@Size(max=255) StringReturns the value of theorganizationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContactDTO
public ContactDTO(@NotBlank @Size(max=75) @NotBlank @Size(max=75) String name, @NotBlank @Email @Size(max=255) @NotBlank @Email @Size(max=255) String email, @Size(max=255) @Size(max=255) String organization, @NotBlank @NotBlank String message) Creates an instance of aContactDTOrecord class.- Parameters:
name- the value for thenamerecord componentemail- the value for theemailrecord componentorganization- the value for theorganizationrecord componentmessage- the value for themessagerecord 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
-
email
-
organization
Returns the value of theorganizationrecord component.- Returns:
- the value of the
organizationrecord component
-
message
-