Record Class BrevoWebhookData.BrevoMultiWebhookContent

java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.newsletterbrevo.impl.resource.BrevoWebhookData.BrevoMultiWebhookContent
All Implemented Interfaces:
BrevoWebhookData.BrevoWebhookContent
Enclosing class:
BrevoWebhookData

public static record BrevoWebhookData.BrevoMultiWebhookContent(List<String> emails, @Nullable List<Long> linkIds, @Nullable List<Long> unlinkIds) extends Record implements BrevoWebhookData.BrevoWebhookContent
  • Constructor Details

    • BrevoMultiWebhookContent

      public BrevoMultiWebhookContent(List<String> emails, @Nullable @Nullable List<Long> linkIds, @Nullable @Nullable List<Long> unlinkIds)
      Creates an instance of a BrevoMultiWebhookContent record class.
      Parameters:
      emails - the value for the emails record component
      linkIds - the value for the linkIds record component
      unlinkIds - the value for the unlinkIds record component
  • Method Details

    • getType

      Specified by:
      getType in interface BrevoWebhookData.BrevoWebhookContent
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • emails

      public List<String> emails()
      Returns the value of the emails record component.
      Returns:
      the value of the emails record component
    • linkIds

      @Nullable public @Nullable List<Long> linkIds()
      Returns the value of the linkIds record component.
      Returns:
      the value of the linkIds record component
    • unlinkIds

      @Nullable public @Nullable List<Long> unlinkIds()
      Returns the value of the unlinkIds record component.
      Returns:
      the value of the unlinkIds record component