Class JulesTriggerConfig

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

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

  • Constructor Details

    • JulesTriggerConfig

      public JulesTriggerConfig()
  • Method Details

    • source

      public JulesTriggerConfig source(@Nonnull String source)
    • getSource

      @Nonnull public String getSource()
      Jules source for the connected repo, e.g. `sources/github/owner/repo`. Idempotency key for the connector.
      Returns:
      source
    • setSource

      public void setSource(@Nonnull String source)
    • startingBranch

      public JulesTriggerConfig startingBranch(@Nullable String startingBranch)
    • getStartingBranch

      @Nullable public String getStartingBranch()
      Optional branch the session starts from.
      Returns:
      startingBranch
    • setStartingBranch

      public void setStartingBranch(@Nullable String startingBranch)
    • projectId

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

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

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