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'smessages, as the bundler chose it; not a basis for naming, as on the OpenAPI sideprovenance- where the message fragment came fromname-name, the message's own name, ornulltitle-title, ornullsummary-summary, ornullcontentType-contentType, ornullwhen the document does not say and the default appliespayload- the payload schema, as a component of the one model, ornullwhen the message declares nonelocation- 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 Summary
ConstructorsConstructorDescriptionAsyncMessage(String key, Provenance provenance, String name, String title, String summary, String contentType, Component payload, String location) Creates an instance of aAsyncMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.location()Returns the value of thelocationrecord component.name()Returns the value of thenamerecord component.payload()Returns the value of thepayloadrecord component.Returns the value of theprovenancerecord component.summary()Returns the value of thesummaryrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aAsyncMessagerecord class.- Parameters:
key- the value for thekeyrecord componentprovenance- the value for theprovenancerecord componentname- the value for thenamerecord componenttitle- the value for thetitlerecord componentsummary- the value for thesummaryrecord componentcontentType- the value for thecontentTyperecord componentpayload- the value for thepayloadrecord componentlocation- the value for thelocationrecord component
-
-
Method Details
-
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. -
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. -
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
provenance
Returns the value of theprovenancerecord component.- Returns:
- the value of the
provenancerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-