Class FailoverBackend

java.lang.Object
com.ngrok.definitions.FailoverBackend

public class FailoverBackend extends Object
A class encapsulating the FailoverBackend resource.
  • Constructor Details

    • FailoverBackend

      public FailoverBackend(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, List<String> backends)
      Creates a new instance of FailoverBackend.
      Parameters:
      id - unique identifier for this Failover backend
      uri - URI of the FailoverBackend API resource
      createdAt - timestamp when the backend was created, RFC 3339 format
      description - human-readable description of this backend. Optional
      metadata - arbitrary user-defined machine-readable data of this backend. Optional
      backends - the ids of the child backends in order
  • Method Details

    • getId

      public String getId()
      unique identifier for this Failover backend
      Returns:
      the value of the property as a String
    • getUri

      public URI getUri()
      URI of the FailoverBackend API resource
      Returns:
      the value of the property as a URI
    • getCreatedAt

      public OffsetDateTime getCreatedAt()
      timestamp when the backend was created, RFC 3339 format
      Returns:
      the value of the property as a OffsetDateTime
    • getDescription

      public String getDescription()
      human-readable description of this backend. Optional
      Returns:
      the value of the property as a String
    • getMetadata

      public String getMetadata()
      arbitrary user-defined machine-readable data of this backend. Optional
      Returns:
      the value of the property as a String
    • getBackends

      public List<String> getBackends()
      the ids of the child backends in order
      Returns:
      the value of the property as a List of String
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object