Class OpsItemRelated

java.lang.Object
ai.shipeasy.admin.model.OpsItemRelated

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class OpsItemRelated extends Object
Deep links to the resources behind this item — every value is either a dashboard-relative path or an admin-API path fetchable with the same key.
  • Field Details

  • Constructor Details

    • OpsItemRelated

      public OpsItemRelated()
  • Method Details

    • dashboard

      public OpsItemRelated dashboard(@Nullable String dashboard)
    • getDashboard

      @Nullable public String getDashboard()
      Dashboard-relative deep link to this item.
      Returns:
      dashboard
    • setDashboard

      public void setDashboard(@Nullable String dashboard)
    • error

      public OpsItemRelated error(@Nullable String error)
    • getError

      @Nullable public String getError()
      Admin-API path to the tracked error (error tickets only).
      Returns:
      error
    • setError

      public void setError(@Nullable String error)
    • alertRule

      public OpsItemRelated alertRule(@Nullable String alertRule)
    • getAlertRule

      @Nullable public String getAlertRule()
      Admin-API path to the alert rule (metric-rule alerts only).
      Returns:
      alertRule
    • setAlertRule

      public void setAlertRule(@Nullable String alertRule)
    • metric

      public OpsItemRelated metric(@Nullable String metric)
    • getMetric

      @Nullable public String getMetric()
      Admin-API path to the metric the alert watches (alert tickets only).
      Returns:
      metric
    • setMetric

      public void setMetric(@Nullable String metric)
    • githubIssue

      public OpsItemRelated githubIssue(@Nullable String githubIssue)
    • getGithubIssue

      @Nullable public String getGithubIssue()
      HTML URL of the connected GitHub issue, if any.
      Returns:
      githubIssue
    • setGithubIssue

      public void setGithubIssue(@Nullable String githubIssue)
    • githubPr

      public OpsItemRelated githubPr(@Nullable String githubPr)
    • getGithubPr

      @Nullable public String getGithubPr()
      HTML URL of the linked GitHub pull request, if any.
      Returns:
      githubPr
    • setGithubPr

      public void setGithubPr(@Nullable String githubPr)
    • putAdditionalProperty

      public OpsItemRelated putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the OpsItemRelated instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to OpsItemRelated
    • fromJson

      public static OpsItemRelated fromJson(String jsonString) throws IOException
      Create an instance of OpsItemRelated given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of OpsItemRelated
      Throws:
      IOException - if the JSON string is invalid with respect to OpsItemRelated
    • toJson

      public String toJson()
      Convert an instance of OpsItemRelated to an JSON string
      Returns:
      JSON string