Package ai.shipeasy.admin.model
Class UpdateConnectorRequest
java.lang.Object
ai.shipeasy.admin.model.UpdateConnectorRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class UpdateConnectorRequest
extends Object
Body for `PATCH /api/admin/connectors/{id}`. Partial — only supplied fields change. Array/object fields (`events`, `config`) replace, not merge.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEventsItem(ConnectorEvent eventsItem) booleanevents(List<ConnectorEvent> events) static UpdateConnectorRequestCreate an instance of UpdateConnectorRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Replaces the non-secret config wholesale.Toggle the connector on/off.Replaces the subscribed-events list wholesale.getName()New connector label.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.putConfigItem(String key, Object configItem) voidvoidsetEnabled(Boolean enabled) voidsetEvents(List<ConnectorEvent> events) voidtoJson()Convert an instance of UpdateConnectorRequest 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_NAME
- See Also:
-
SERIALIZED_NAME_ENABLED
- See Also:
-
SERIALIZED_NAME_EVENTS
- See Also:
-
SERIALIZED_NAME_CONFIG
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpdateConnectorRequest
public UpdateConnectorRequest()
-
-
Method Details
-
name
-
getName
New connector label.- Returns:
- name
-
setName
-
enabled
-
getEnabled
Toggle the connector on/off.- Returns:
- enabled
-
setEnabled
-
events
-
addEventsItem
-
getEvents
Replaces the subscribed-events list wholesale. An empty array unsubscribes the connector from every event (e.g. turning off a trigger's auto-fire).- Returns:
- events
-
setEvents
-
config
-
putConfigItem
-
getConfig
Replaces the non-secret config wholesale. Secrets are never set through this endpoint.- Returns:
- config
-
setConfig
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the UpdateConnectorRequest instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
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 UpdateConnectorRequest
-
fromJson
Create an instance of UpdateConnectorRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateConnectorRequest
- Throws:
IOException- if the JSON string is invalid with respect to UpdateConnectorRequest
-
toJson
Convert an instance of UpdateConnectorRequest to an JSON string- Returns:
- JSON string
-