Package ai.shipeasy.admin.model
Class CreateCopilotTriggerRequest
java.lang.Object
ai.shipeasy.admin.model.CreateCopilotTriggerRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CreateCopilotTriggerRequest
extends Object
Create a GitHub Copilot coding-agent trigger. Idempotent by `config.owner/config.repo`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumDiscriminator. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEventsItem(ConnectorEvent eventsItem) config(CopilotTriggerConfig config) booleanevents(List<ConnectorEvent> events) static CreateCopilotTriggerRequestCreate an instance of CreateCopilotTriggerRequest given an JSON stringGet configWhether the trigger is active on create.Events that auto-fire a Copilot agent task.getName()Human-readable connector label.Discriminator.getToken()Copilot-licensed user PAT (secret).inthashCode()voidsetConfig(CopilotTriggerConfig config) voidsetEnabled(Boolean enabled) voidsetEvents(List<ConnectorEvent> events) voidvoidvoidtoJson()Convert an instance of CreateCopilotTriggerRequest 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_PROVIDER
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_EVENTS
- See Also:
-
SERIALIZED_NAME_CONFIG
- See Also:
-
SERIALIZED_NAME_TOKEN
- See Also:
-
SERIALIZED_NAME_ENABLED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateCopilotTriggerRequest
public CreateCopilotTriggerRequest()
-
-
Method Details
-
provider
public CreateCopilotTriggerRequest provider(@Nonnull CreateCopilotTriggerRequest.ProviderEnum provider) -
getProvider
Discriminator. GitHub Copilot coding-agent trigger.- Returns:
- provider
-
setProvider
-
name
-
getName
Human-readable connector label.- Returns:
- name
-
setName
-
events
-
addEventsItem
-
getEvents
Events that auto-fire a Copilot agent task. Defaults to empty.- Returns:
- events
-
setEvents
-
config
-
getConfig
Get config- Returns:
- config
-
setConfig
-
token
-
getToken
Copilot-licensed user PAT (secret). The ops key lives in the repo's GitHub \"Agents\" secret store and is never sent through Shipeasy. Encrypted; never returned.- Returns:
- token
-
setToken
-
enabled
-
getEnabled
Whether the trigger is active on create.- Returns:
- enabled
-
setEnabled
-
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 CreateCopilotTriggerRequest
-
fromJson
Create an instance of CreateCopilotTriggerRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateCopilotTriggerRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateCopilotTriggerRequest
-
toJson
Convert an instance of CreateCopilotTriggerRequest to an JSON string- Returns:
- JSON string
-