Record Class AsyncMessage

java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.apionly.transcriberj.model.AsyncMessage
Record Components:
key - its key under the channel's messages, as the bundler chose it; not a basis for naming, as on the OpenAPI side
provenance - where the message fragment came from
name - name, the message's own name, or null
title - title, or null
summary - summary, or null
contentType - contentType, or null when the document does not say and the default applies
payload - the payload schema, as a component of the one model, or null when the message declares none
location - the JSON pointer of the message in its document

public record AsyncMessage(String key, Provenance provenance, String name, String title, String summary, String contentType, Component payload, String location) extends Record
A message a channel carries, as an AsyncAPI bundle inlines it.
  • Constructor Details

    • AsyncMessage

      public AsyncMessage(String key, Provenance provenance, String name, String title, String summary, String contentType, Component payload, String location)
      Creates an instance of a AsyncMessage record class.
      Parameters:
      key - the value for the key record component
      provenance - the value for the provenance record component
      name - the value for the name record component
      title - the value for the title record component
      summary - the value for the summary record component
      contentType - the value for the contentType record component
      payload - the value for the payload record component
      location - the value for the location record component
  • Method Details

    • 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.
    • key

      public String key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • provenance

      public Provenance provenance()
      Returns the value of the provenance record component.
      Returns:
      the value of the provenance record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • summary

      public String summary()
      Returns the value of the summary record component.
      Returns:
      the value of the summary record component
    • contentType

      public String contentType()
      Returns the value of the contentType record component.
      Returns:
      the value of the contentType record component
    • payload

      public Component payload()
      Returns the value of the payload record component.
      Returns:
      the value of the payload record component
    • location

      public String location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component