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).
  • Field Details

  • Constructor Details

    • UpdateCursorTriggerRequest

      public UpdateCursorTriggerRequest()
  • Method Details

    • provider

    • getProvider

      @Nonnull public UpdateCursorTriggerRequest.ProviderEnum getProvider()
      Discriminator. Cursor cloud-agent trigger.
      Returns:
      provider
    • setProvider

      public void setProvider(@Nonnull UpdateCursorTriggerRequest.ProviderEnum provider)
    • name

      public UpdateCursorTriggerRequest name(@Nullable String name)
    • getName

      @Nullable public String getName()
      New connector label. Optional — omit to leave it unchanged.
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • config

      public UpdateCursorTriggerRequest config(@Nonnull CursorTriggerConfig config)
    • getConfig

      @Nonnull public CursorTriggerConfig getConfig()
      Get config
      Returns:
      config
    • setConfig

      public void setConfig(@Nonnull CursorTriggerConfig config)
    • apiKey

      public UpdateCursorTriggerRequest apiKey(@Nullable String apiKey)
    • getApiKey

      @Nullable public String getApiKey()
      New Cursor launch key (secret). Optional — omit to leave the stored key untouched. Rotatable independently of `opsKey`. Encrypted; never returned.
      Returns:
      apiKey
    • setApiKey

      public void setApiKey(@Nullable String apiKey)
    • opsKey

      public UpdateCursorTriggerRequest opsKey(@Nullable String opsKey)
    • getOpsKey

      @Nullable public String 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

      public void setOpsKey(@Nullable String opsKey)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static UpdateCursorTriggerRequest fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of UpdateCursorTriggerRequest to an JSON string
      Returns:
      JSON string