Record Class BrevoSynchronisationService.SimpleContact
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.newsletterbrevo.impl.BrevoSynchronisationService.SimpleContact
- Enclosing interface:
BrevoSynchronisationService
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleContact(String email, boolean emailBlocklist, boolean smsBlocklist) Creates an instance of aSimpleContactrecord class. -
Method Summary
Modifier and TypeMethodDescriptionemail()Returns the value of theemailrecord component.booleanReturns the value of theemailBlocklistrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thesmsBlocklistrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SimpleContact
Creates an instance of aSimpleContactrecord class.- Parameters:
email- the value for theemailrecord componentemailBlocklist- the value for theemailBlocklistrecord componentsmsBlocklist- the value for thesmsBlocklistrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
emailBlocklist
public boolean emailBlocklist()Returns the value of theemailBlocklistrecord component.- Returns:
- the value of the
emailBlocklistrecord component
-
smsBlocklist
public boolean smsBlocklist()Returns the value of thesmsBlocklistrecord component.- Returns:
- the value of the
smsBlocklistrecord component
-