Package ai.shipeasy.admin.model
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CopilotTriggerConfigCreate an instance of CopilotTriggerConfig given an JSON stringOptional base ref the agent branches from.getOwner()GitHub repo owner.Shipeasy project id the run targets.getRepo()GitHub repo name.inthashCode()voidsetBaseRef(String baseRef) voidvoidsetProjectId(String projectId) voidtoJson()Convert an instance of CopilotTriggerConfig 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_OWNER
- See Also:
-
SERIALIZED_NAME_REPO
- See Also:
-
SERIALIZED_NAME_BASE_REF
- See Also:
-
SERIALIZED_NAME_PROJECT_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CopilotTriggerConfig
public CopilotTriggerConfig()
-
-
Method Details
-
owner
-
getOwner
GitHub repo owner. Together with `repo` forms the connector's idempotency key (`owner/repo`).- Returns:
- owner
-
setOwner
-
repo
-
getRepo
GitHub repo name.- Returns:
- repo
-
setRepo
-
baseRef
-
getBaseRef
Optional base ref the agent branches from.- Returns:
- baseRef
-
setBaseRef
-
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 CopilotTriggerConfig
-
fromJson
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
Convert an instance of CopilotTriggerConfig to an JSON string- Returns:
- JSON string
-