Class StrategyLinks

java.lang.Object
com.qtsurfer.api.client.model.StrategyLinks

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.14.0") public class StrategyLinks extends Object
HAL `_links` for a strategy — present on a full `StrategyState` body (`GET /strategy/{strategyId}`, and `POST /strategy/{strategyId}/validate`'s already-validated `200`), absent from that same endpoint's `202` — a deliberately partial stub carrying only what is known before a check has even started. Following `code` can still `404` once present: it documents its own honest \"nothing to return\" for a strategy with no source of its own (a `REFERENCE` marketplace copy, or one resolved only through the platform's shared pool). This link says where to look, not that something is there.
  • Field Details

  • Constructor Details

    • StrategyLinks

      public StrategyLinks()
  • Method Details

    • code

      public StrategyLinks code(@Nonnull HalLink code)
    • getCode

      @Nonnull public HalLink getCode()
      Link to this strategy's registered source, `GET /strategy/{strategyId}/code`.
      Returns:
      code
    • setCode

      public void setCode(@Nonnull HalLink code)
    • equals

      public boolean equals(Object o)
      Return true if this StrategyLinks object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string