Package com.ngrok.definitions
Class HttpResponseBackend
java.lang.Object
com.ngrok.definitions.HttpResponseBackend
A class encapsulating the
HttpResponseBackend resource.-
Constructor Summary
ConstructorsConstructorDescriptionHttpResponseBackend(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, String body, Map<String, String> headers, Integer statusCode) Creates a new instance ofHttpResponseBackend. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBody()body to return as fixed contenttimestamp when the backend was created, RFC 3339 formathuman-readable description of this backend.headers to returngetId()Fetches the value of theidproperty.arbitrary user-defined machine-readable data of this backend.intstatus code to returngetUri()URI of the HTTPResponseBackend API resourceinthashCode()toString()
-
Constructor Details
-
HttpResponseBackend
public HttpResponseBackend(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, String body, Map<String, String> headers, Integer statusCode) Creates a new instance ofHttpResponseBackend.- Parameters:
id- the value of theidparameter as aStringuri- URI of the HTTPResponseBackend API resourcecreatedAt- timestamp when the backend was created, RFC 3339 formatdescription- human-readable description of this backend. Optionalmetadata- arbitrary user-defined machine-readable data of this backend. Optionalbody- body to return as fixed contentheaders- headers to returnstatusCode- status code to return
-
-
Method Details
-
getId
Fetches the value of theidproperty.- Returns:
- the value of the property as a
String
-
getUri
URI of the HTTPResponseBackend API resource- Returns:
- the value of the property as a
URI
-
getCreatedAt
timestamp when the backend was created, RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getDescription
human-readable description of this backend. Optional- Returns:
- the value of the property as a
String
-
getMetadata
arbitrary user-defined machine-readable data of this backend. Optional- Returns:
- the value of the property as a
String
-
getBody
body to return as fixed content- Returns:
- the value of the property as a
String
-
getHeaders
headers to return -
getStatusCode
public int getStatusCode()status code to return- Returns:
- the value of the property as a
int
-
equals
-
hashCode
public int hashCode() -
toString
-