Package ai.shipeasy.admin.model
Class UpdateCopilotTriggerRequest
java.lang.Object
ai.shipeasy.admin.model.UpdateCopilotTriggerRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class UpdateCopilotTriggerRequest
extends Object
Per-provider PATCH body for editing an existing `copilot_trigger` connector. `config` replaces the stored config wholesale; `name` and `token` are optional.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumDiscriminator. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfig(CopilotTriggerConfig config) booleanstatic UpdateCopilotTriggerRequestCreate an instance of UpdateCopilotTriggerRequest given an JSON stringGet configgetName()New connector label.Discriminator.getToken()New Copilot-licensed user PAT (secret).inthashCode()voidsetConfig(CopilotTriggerConfig config) voidvoidvoidtoJson()Convert an instance of UpdateCopilotTriggerRequest 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_CONFIG
- See Also:
-
SERIALIZED_NAME_TOKEN
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpdateCopilotTriggerRequest
public UpdateCopilotTriggerRequest()
-
-
Method Details
-
provider
public UpdateCopilotTriggerRequest provider(@Nonnull UpdateCopilotTriggerRequest.ProviderEnum provider) -
getProvider
Discriminator. GitHub Copilot coding-agent trigger.- Returns:
- provider
-
setProvider
-
name
-
getName
New connector label. Optional — omit to leave it unchanged.- Returns:
- name
-
setName
-
config
-
getConfig
Get config- Returns:
- config
-
setConfig
-
token
-
getToken
New Copilot-licensed user PAT (secret). Optional — omit to leave the stored cipher untouched. Encrypted; never returned.- Returns:
- token
-
setToken
-
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 UpdateCopilotTriggerRequest
-
fromJson
Create an instance of UpdateCopilotTriggerRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateCopilotTriggerRequest
- Throws:
IOException- if the JSON string is invalid with respect to UpdateCopilotTriggerRequest
-
toJson
Convert an instance of UpdateCopilotTriggerRequest to an JSON string- Returns:
- JSON string
-