Record Class ResponseBody
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.apionly.transcriberj.spi.ResponseBody
- Record Components:
bodyClass- the simple name of the generated class of the body, as a case'sresponseBodyClassnames itrequired- whatrequiredBody()returnsfull- whatfullBody()returns
public record ResponseBody(String bodyClass, ResponseBody.Body required, ResponseBody.Body full)
extends Record
The body of a response an operation declares, as an emitter is given it: the generated class
its contract cases name, and the valid bodies that class's
requiredBody() and
fullBody() return. What an emitter that writes a response as a file, rather than as
Java calling those methods, answers with.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne valid body: its text, or, when the core cannot build one, where and why -- what the generated method throws instead. -
Constructor Summary
ConstructorsConstructorDescriptionResponseBody(String bodyClass, ResponseBody.Body required, ResponseBody.Body full) Creates an instance of aResponseBodyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebodyClassrecord component.final booleanIndicates whether some other object is "equal to" this one.full()Returns the value of thefullrecord component.final inthashCode()Returns a hash code value for this object.required()Returns the value of therequiredrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
bodyClass
Returns the value of thebodyClassrecord component.- Returns:
- the value of the
bodyClassrecord component
-
required
Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-
full
Returns the value of thefullrecord component.- Returns:
- the value of the
fullrecord component
-