Package ai.shipeasy.admin.model
Class CreateCursorTriggerRequest
java.lang.Object
ai.shipeasy.admin.model.CreateCursorTriggerRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CreateCursorTriggerRequest
extends Object
Create a Cursor cloud-agent trigger. Both keys are required up front (never tokenless). Idempotent by `config.repoUrl`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumDiscriminator. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEventsItem(ConnectorEvent eventsItem) config(CursorTriggerConfig config) booleanevents(List<ConnectorEvent> events) static CreateCursorTriggerRequestCreate an instance of CreateCursorTriggerRequest given an JSON stringCursor API key that launches the run (secret).Get configWhether the trigger is active on create.Events that auto-fire a cold cloud-agent run.getName()Human-readable connector label.Restricted Shipeasy ops key, injected into the run as `SHIPEASY_CLI_TOKEN` via the launch envVars (secret).Discriminator.inthashCode()voidvoidsetConfig(CursorTriggerConfig config) voidsetEnabled(Boolean enabled) voidsetEvents(List<ConnectorEvent> events) voidvoidvoidtoJson()Convert an instance of CreateCursorTriggerRequest 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_API_KEY
- See Also:
-
SERIALIZED_NAME_OPS_KEY
- See Also:
-
SERIALIZED_NAME_ENABLED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateCursorTriggerRequest
public CreateCursorTriggerRequest()
-
-
Method Details
-
provider
public CreateCursorTriggerRequest provider(@Nonnull CreateCursorTriggerRequest.ProviderEnum provider) -
getProvider
Discriminator. Cursor cloud-agent trigger.- Returns:
- provider
-
setProvider
-
name
-
getName
Human-readable connector label.- Returns:
- name
-
setName
-
events
-
addEventsItem
-
getEvents
Events that auto-fire a cold cloud-agent run. Defaults to empty.- Returns:
- events
-
setEvents
-
config
-
getConfig
Get config- Returns:
- config
-
setConfig
-
apiKey
-
getApiKey
Cursor API key that launches the run (secret). Encrypted into the credentials cipher; never returned.- Returns:
- apiKey
-
setApiKey
-
opsKey
-
getOpsKey
Restricted Shipeasy ops key, injected into the run as `SHIPEASY_CLI_TOKEN` via the launch envVars (secret). Encrypted; never returned.- Returns:
- opsKey
-
setOpsKey
-
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 CreateCursorTriggerRequest
-
fromJson
Create an instance of CreateCursorTriggerRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateCursorTriggerRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateCursorTriggerRequest
-
toJson
Convert an instance of CreateCursorTriggerRequest to an JSON string- Returns:
- JSON string
-