Record Class AsyncOperation
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.apionly.transcriberj.model.AsyncOperation
- Record Components:
operationId- its key underoperations, which AsyncAPI 3 makes the operation's idaction-action:sendorreceivechannelKey- the key of the channel it acts on, ornullwhen the document does not point at one this model understandsmessageKeys- the keys of the channel's messages it names, in order; empty when it names none, which means every message of the channelsummary-summary, ornulldescription-description, ornulllocation- the JSON pointer of the operation in its document
public record AsyncOperation(String operationId, String action, String channelKey, List<String> messageKeys, String summary, String description, String location)
extends Record
An operation of an AsyncAPI contract: an application sending or receiving on a
channel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of thechannelKeyrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.Returns the value of themessageKeysrecord component.Returns the value of theoperationIdrecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AsyncOperation
public AsyncOperation(String operationId, String action, String channelKey, List<String> messageKeys, String summary, String description, String location) Creates an instance of aAsyncOperationrecord class.- Parameters:
operationId- the value for theoperationIdrecord componentaction- the value for theactionrecord componentchannelKey- the value for thechannelKeyrecord componentmessageKeys- the value for themessageKeysrecord componentsummary- the value for thesummaryrecord componentdescription- the value for thedescriptionrecord 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). -
operationId
Returns the value of theoperationIdrecord component.- Returns:
- the value of the
operationIdrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
channelKey
Returns the value of thechannelKeyrecord component.- Returns:
- the value of the
channelKeyrecord component
-
messageKeys
Returns the value of themessageKeysrecord component.- Returns:
- the value of the
messageKeysrecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-