Class LinkPrToOpsItemRequest

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class LinkPrToOpsItemRequest extends Object
Body for `POST /api/admin/ops/{handle}/link-pr`.
  • Field Details

  • Constructor Details

    • LinkPrToOpsItemRequest

      public LinkPrToOpsItemRequest()
  • Method Details

    • prNumber

      public LinkPrToOpsItemRequest prNumber(@Nullable Integer prNumber)
    • getPrNumber

      @Nullable public Integer getPrNumber()
      PR number to record on the item. `null` unlinks the PR. minimum: 0 maximum: 9007199254740991
      Returns:
      prNumber
    • setPrNumber

      public void setPrNumber(@Nullable Integer prNumber)
    • prUrl

      public LinkPrToOpsItemRequest prUrl(@Nullable URI prUrl)
    • getPrUrl

      @Nullable public URI getPrUrl()
      Explicit PR URL. Required for error/alert tickets (no GitHub issue to derive the URL from).
      Returns:
      prUrl
    • setPrUrl

      public void setPrUrl(@Nullable URI prUrl)
    • 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 LinkPrToOpsItemRequest
    • fromJson

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

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