Package com.ngrok.definitions
Class AbuseReport
java.lang.Object
com.ngrok.definitions.AbuseReport
A class encapsulating the
AbuseReport resource.-
Constructor Summary
ConstructorsConstructorDescriptionAbuseReport(String id, URI uri, OffsetDateTime createdAt, List<URI> urls, String metadata, String status, List<AbuseReportHostname> hostnames) Creates a new instance ofAbuseReport. -
Method Summary
Modifier and TypeMethodDescriptionbooleantimestamp that the abuse report record was created in RFC 3339 formatan array of hostname statuses related to the reportgetId()ID of the abuse reportarbitrary user-defined data about this abuse report.Indicates whether ngrok has processed the abuse report.getUri()URI of the abuse report API resourcegetUrls()a list of URLs containing suspected abusive contentinthashCode()toString()
-
Constructor Details
-
AbuseReport
public AbuseReport(String id, URI uri, OffsetDateTime createdAt, List<URI> urls, String metadata, String status, List<AbuseReportHostname> hostnames) Creates a new instance ofAbuseReport.- Parameters:
id- ID of the abuse reporturi- URI of the abuse report API resourcecreatedAt- timestamp that the abuse report record was created in RFC 3339 formaturls- a list of URLs containing suspected abusive contentmetadata- arbitrary user-defined data about this abuse report. Optional, max 4096 bytes.status- Indicates whether ngrok has processed the abuse report. one ofPENDING,PROCESSED, orPARTIALLY_PROCESSEDhostnames- an array of hostname statuses related to the report
-
-
Method Details
-
getId
ID of the abuse report- Returns:
- the value of the property as a
String
-
getUri
URI of the abuse report API resource- Returns:
- the value of the property as a
URI
-
getCreatedAt
timestamp that the abuse report record was created in RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getUrls
a list of URLs containing suspected abusive content -
getMetadata
arbitrary user-defined data about this abuse report. Optional, max 4096 bytes.- Returns:
- the value of the property as a
String
-
getStatus
Indicates whether ngrok has processed the abuse report. one ofPENDING,PROCESSED, orPARTIALLY_PROCESSED- Returns:
- the value of the property as a
String
-
getHostnames
an array of hostname statuses related to the report- Returns:
- the value of the property as a
ListofAbuseReportHostname
-
equals
-
hashCode
public int hashCode() -
toString
-