Record Class RestApiTemplate.Method
java.lang.Object
java.lang.Record
com.bonitasoft.processbuilder.extension.template.RestApiTemplate.Method
- Enclosing class:
- RestApiTemplate
public static record RestApiTemplate.Method(String name, String displayName, String description, String httpMethod, String path, Map<String,String> queryParams, Map<String,String> headers, String bodyTemplate)
extends Record
Represents a method/endpoint in the REST API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebodyTemplaterecord component.Returns the value of thedescriptionrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.Returns the value of thehttpMethodrecord component.name()Returns the value of thenamerecord component.path()Returns the value of thepathrecord component.Returns the value of thequeryParamsrecord component.com.fasterxml.jackson.databind.JsonNodetoJson(com.fasterxml.jackson.databind.ObjectMapper mapper) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method
public Method(String name, String displayName, String description, String httpMethod, String path, Map<String, String> queryParams, Map<String, String> headers, String bodyTemplate) Creates an instance of aMethodrecord class.- Parameters:
name- the value for thenamerecord componentdisplayName- the value for thedisplayNamerecord componentdescription- the value for thedescriptionrecord componenthttpMethod- the value for thehttpMethodrecord componentpath- the value for thepathrecord componentqueryParams- the value for thequeryParamsrecord componentheaders- the value for theheadersrecord componentbodyTemplate- the value for thebodyTemplaterecord component
-
Method
-
-
Method Details
-
toJson
public com.fasterxml.jackson.databind.JsonNode toJson(com.fasterxml.jackson.databind.ObjectMapper mapper) -
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
httpMethod
Returns the value of thehttpMethodrecord component.- Returns:
- the value of the
httpMethodrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
queryParams
Returns the value of thequeryParamsrecord component.- Returns:
- the value of the
queryParamsrecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-
bodyTemplate
Returns the value of thebodyTemplaterecord component.- Returns:
- the value of the
bodyTemplaterecord component
-