Class WeightedBackendList

java.lang.Object
com.ngrok.definitions.WeightedBackendList
All Implemented Interfaces:
Pageable

public class WeightedBackendList extends Object implements Pageable
A class encapsulating the WeightedBackendList resource.
  • Constructor Details

    • WeightedBackendList

      public WeightedBackendList(List<WeightedBackend> backends, URI uri, Optional<URI> nextPageUri)
      Creates a new instance of WeightedBackendList.
      Parameters:
      backends - the list of all Weighted backends on this account
      uri - URI of the Weighted backends list API resource
      nextPageUri - URI of the next page, or null if there is no next page
  • Method Details

    • getBackends

      public List<WeightedBackend> getBackends()
      the list of all Weighted backends on this account
      Returns:
      the value of the property as a List of WeightedBackend
    • getUri

      public URI getUri()
      URI of the Weighted backends list API resource
      Returns:
      the value of the property as a URI
    • getNextPageUri

      public Optional<URI> getNextPageUri()
      URI of the next page, or null if there is no next page
      Specified by:
      getNextPageUri in interface Pageable
      Returns:
      the value of the property as a URI wrapped in an Optional
    • 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