Package ai.shipeasy.admin.model
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CursorTriggerConfigCreate an instance of CursorTriggerConfig given an JSON stringShipeasy project id the run targets.Repo the cloud agent runs against, e.g.Optional git ref the run starts from.inthashCode()voidsetProjectId(String projectId) voidsetRepoUrl(URI repoUrl) voidsetStartingRef(String startingRef) startingRef(String startingRef) toJson()Convert an instance of CursorTriggerConfig to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_REPO_URL
- See Also:
-
SERIALIZED_NAME_STARTING_REF
- See Also:
-
SERIALIZED_NAME_PROJECT_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CursorTriggerConfig
public CursorTriggerConfig()
-
-
Method Details
-
repoUrl
-
getRepoUrl
Repo the cloud agent runs against, e.g. `https://github.com/owner/repo`. Idempotency key for the connector.- Returns:
- repoUrl
-
setRepoUrl
-
startingRef
-
getStartingRef
Optional git ref the run starts from.- Returns:
- startingRef
-
setStartingRef
-
projectId
-
getProjectId
Shipeasy project id the run targets.- Returns:
- projectId
-
setProjectId
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of CursorTriggerConfig to an JSON string- Returns:
- JSON string
-