Class CursorTriggerConfig

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class CursorTriggerConfig extends Object
Non-secret config for a Cursor trigger.
  • Field Details

  • Constructor Details

    • CursorTriggerConfig

      public CursorTriggerConfig()
  • Method Details

    • repoUrl

      public CursorTriggerConfig repoUrl(@Nonnull URI repoUrl)
    • getRepoUrl

      @Nonnull public URI getRepoUrl()
      Repo the cloud agent runs against, e.g. `https://github.com/owner/repo`. Idempotency key for the connector.
      Returns:
      repoUrl
    • setRepoUrl

      public void setRepoUrl(@Nonnull URI repoUrl)
    • startingRef

      public CursorTriggerConfig startingRef(@Nullable String startingRef)
    • getStartingRef

      @Nullable public String getStartingRef()
      Optional git ref the run starts from.
      Returns:
      startingRef
    • setStartingRef

      public void setStartingRef(@Nullable String startingRef)
    • projectId

      public CursorTriggerConfig projectId(@Nonnull String projectId)
    • getProjectId

      @Nonnull public String getProjectId()
      Shipeasy project id the run targets.
      Returns:
      projectId
    • setProjectId

      public void setProjectId(@Nonnull String projectId)
    • 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 CursorTriggerConfig
    • fromJson

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

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