Class CopilotTriggerConfig

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

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

  • Constructor Details

    • CopilotTriggerConfig

      public CopilotTriggerConfig()
  • Method Details

    • owner

      public CopilotTriggerConfig owner(@Nonnull String owner)
    • getOwner

      @Nonnull public String getOwner()
      GitHub repo owner. Together with `repo` forms the connector's idempotency key (`owner/repo`).
      Returns:
      owner
    • setOwner

      public void setOwner(@Nonnull String owner)
    • repo

      public CopilotTriggerConfig repo(@Nonnull String repo)
    • getRepo

      @Nonnull public String getRepo()
      GitHub repo name.
      Returns:
      repo
    • setRepo

      public void setRepo(@Nonnull String repo)
    • baseRef

      public CopilotTriggerConfig baseRef(@Nullable String baseRef)
    • getBaseRef

      @Nullable public String getBaseRef()
      Optional base ref the agent branches from.
      Returns:
      baseRef
    • setBaseRef

      public void setBaseRef(@Nullable String baseRef)
    • projectId

      public CopilotTriggerConfig 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 CopilotTriggerConfig
    • fromJson

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

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