Record Class IntegrationHttpResponse
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.IntegrationHttpResponse
- Record Components:
statusCode- http status codeurl- fully resolved request urldurationMs- request duration in millisecondsbody- response body
-
Constructor Summary
ConstructorsConstructorDescriptionIntegrationHttpResponse(int statusCode, String url, long durationMs, String body) Creates an instance of aIntegrationHttpResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.longReturns the value of thedurationMsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thestatusCoderecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
IntegrationHttpResponse
Creates an instance of aIntegrationHttpResponserecord class.- Parameters:
statusCode- the value for thestatusCoderecord componenturl- the value for theurlrecord componentdurationMs- the value for thedurationMsrecord componentbody- the value for thebodyrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
statusCode
public int statusCode()Returns the value of thestatusCoderecord component.- Returns:
- the value of the
statusCoderecord component
-
url
-
durationMs
public long durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-
body
-