Package ai.shipeasy.admin.model
Class UpdateCursorTriggerRequest
java.lang.Object
ai.shipeasy.admin.model.UpdateCursorTriggerRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class UpdateCursorTriggerRequest
extends Object
Per-provider PATCH body for editing an existing `cursor_trigger` connector. `config` replaces the stored config wholesale; `name` and either credential are optional (a supplied credential rotates just that key).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumDiscriminator. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfig(CursorTriggerConfig config) booleanstatic UpdateCursorTriggerRequestCreate an instance of UpdateCursorTriggerRequest given an JSON stringNew Cursor launch key (secret).Get configgetName()New connector label.New restricted Shipeasy ops key (secret).Discriminator.inthashCode()voidvoidsetConfig(CursorTriggerConfig config) voidvoidvoidtoJson()Convert an instance of UpdateCursorTriggerRequest 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_API_KEY
- See Also:
-
SERIALIZED_NAME_OPS_KEY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpdateCursorTriggerRequest
public UpdateCursorTriggerRequest()
-
-
Method Details
-
provider
public UpdateCursorTriggerRequest provider(@Nonnull UpdateCursorTriggerRequest.ProviderEnum provider) -
getProvider
Discriminator. Cursor cloud-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
-
apiKey
-
getApiKey
New Cursor launch key (secret). Optional — omit to leave the stored key untouched. Rotatable independently of `opsKey`. Encrypted; never returned.- Returns:
- apiKey
-
setApiKey
-
opsKey
-
getOpsKey
New restricted Shipeasy ops key (secret). Optional — omit to leave the stored key untouched. Rotatable independently of `apiKey`. Encrypted; never returned.- Returns:
- opsKey
-
setOpsKey
-
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 UpdateCursorTriggerRequest
-
fromJson
Create an instance of UpdateCursorTriggerRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateCursorTriggerRequest
- Throws:
IOException- if the JSON string is invalid with respect to UpdateCursorTriggerRequest
-
toJson
Convert an instance of UpdateCursorTriggerRequest to an JSON string- Returns:
- JSON string
-