Package com.ngrok.definitions
Class WeightedBackend
java.lang.Object
com.ngrok.definitions.WeightedBackend
A class encapsulating the
WeightedBackend resource.-
Constructor Summary
ConstructorsConstructorDescriptionWeightedBackend(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, Map<String, Long> backends) Creates a new instance ofWeightedBackend. -
Method Summary
Modifier and TypeMethodDescriptionbooleanthe ids of the child backends to their weights [0-10000]timestamp when the backend was created, RFC 3339 formathuman-readable description of this backend.getId()unique identifier for this Weighted backendarbitrary user-defined machine-readable data of this backend.getUri()URI of the WeightedBackend API resourceinthashCode()toString()
-
Constructor Details
-
WeightedBackend
public WeightedBackend(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, Map<String, Long> backends) Creates a new instance ofWeightedBackend.- Parameters:
id- unique identifier for this Weighted backenduri- URI of the WeightedBackend 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. Optionalbackends- the ids of the child backends to their weights [0-10000]
-
-
Method Details
-
getId
unique identifier for this Weighted backend- Returns:
- the value of the property as a
String
-
getUri
URI of the WeightedBackend 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
-
getBackends
the ids of the child backends to their weights [0-10000] -
equals
-
hashCode
public int hashCode() -
toString
-