Package ai.shipeasy.admin.model
Class ConnectorRecord
java.lang.Object
ai.shipeasy.admin.model.ConnectorRecord
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ConnectorRecord
extends Object
A connector row. The encrypted credentials cipher backing the connector is intentionally never serialised.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountLabel(String accountLabel) addEventsItem(ConnectorEvent eventsItem) booleanevents(List<ConnectorEvent> events) static ConnectorRecordCreate an instance of ConnectorRecord given an JSON stringDisplay label for the connected account / target (e.g.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Provider-specific, non-secret configuration (e.g.ISO-8601 timestamp of creation.Whether the connector is active.Events this connector is subscribed to.getId()Stable opaque connector id (a UUID).ISO-8601 timestamp of the most recent dispatch/fire attempt, or `null` if none has run.Error message from the most recent failed dispatch/fire attempt, or `null` if the last attempt succeeded (or none has run).ISO-8601 timestamp of the most recent successful dispatch/fire, or `null` if none has succeeded.getName()Human-readable connector label shown in the dashboard.Id of the project the connector belongs to.Get providerISO-8601 timestamp of last mutation.inthashCode()lastAttemptAt(String lastAttemptAt) lastSuccessAt(String lastSuccessAt) provider(ConnectorProvider provider) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.putConfigItem(String key, Object configItem) voidsetAccountLabel(String accountLabel) voidvoidsetCreatedAt(String createdAt) voidsetEnabled(Boolean enabled) voidsetEvents(List<ConnectorEvent> events) voidvoidsetLastAttemptAt(String lastAttemptAt) voidsetLastError(String lastError) voidsetLastSuccessAt(String lastSuccessAt) voidvoidsetProjectId(String projectId) voidsetProvider(ConnectorProvider provider) voidsetUpdatedAt(String updatedAt) toJson()Convert an instance of ConnectorRecord 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_ID
- See Also:
-
SERIALIZED_NAME_PROJECT_ID
- See Also:
-
SERIALIZED_NAME_PROVIDER
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_ENABLED
- See Also:
-
SERIALIZED_NAME_EVENTS
- See Also:
-
SERIALIZED_NAME_CONFIG
- See Also:
-
SERIALIZED_NAME_ACCOUNT_LABEL
- See Also:
-
SERIALIZED_NAME_LAST_ERROR
- See Also:
-
SERIALIZED_NAME_LAST_ATTEMPT_AT
- See Also:
-
SERIALIZED_NAME_LAST_SUCCESS_AT
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ConnectorRecord
public ConnectorRecord()
-
-
Method Details
-
id
-
getId
Stable opaque connector id (a UUID).- Returns:
- id
-
setId
-
projectId
-
getProjectId
Id of the project the connector belongs to.- Returns:
- projectId
-
setProjectId
-
provider
-
getProvider
Get provider- Returns:
- provider
-
setProvider
-
name
-
getName
Human-readable connector label shown in the dashboard.- Returns:
- name
-
setName
-
enabled
-
getEnabled
Whether the connector is active. OAuth providers are created `false` and flip to `true` only after the OAuth/config flow completes; trigger providers default to `true` on create. A disabled connector never dispatches and never auto-fires.- Returns:
- enabled
-
setEnabled
-
events
-
addEventsItem
-
getEvents
Events this connector is subscribed to. Empty array = no auto-dispatch / no auto-fire (the connector can still be fired/tested manually).- Returns:
- events
-
setEvents
-
config
-
putConfigItem
-
getConfig
Provider-specific, non-secret configuration (e.g. a Google Sheets `spreadsheetId`/`sheetTitle`, a Slack channel ref, or a trigger's repo coordinates + routine id). Secrets are never stored here — they live in an encrypted credentials cipher that is never returned by the API.- Returns:
- config
-
setConfig
-
accountLabel
-
getAccountLabel
Display label for the connected account / target (e.g. the OAuth account email, or a trigger's idempotency key such as its repo url or routine id). `null` until the connector is authenticated/configured.- Returns:
- accountLabel
-
setAccountLabel
-
lastError
-
getLastError
Error message from the most recent failed dispatch/fire attempt, or `null` if the last attempt succeeded (or none has run).- Returns:
- lastError
-
setLastError
-
lastAttemptAt
-
getLastAttemptAt
ISO-8601 timestamp of the most recent dispatch/fire attempt, or `null` if none has run.- Returns:
- lastAttemptAt
-
setLastAttemptAt
-
lastSuccessAt
-
getLastSuccessAt
ISO-8601 timestamp of the most recent successful dispatch/fire, or `null` if none has succeeded. Preserved across later failures.- Returns:
- lastSuccessAt
-
setLastSuccessAt
-
createdAt
-
getCreatedAt
ISO-8601 timestamp of creation.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
ISO-8601 timestamp of last mutation.- Returns:
- updatedAt
-
setUpdatedAt
-
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 ConnectorRecord 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 ConnectorRecord
-
fromJson
Create an instance of ConnectorRecord given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ConnectorRecord
- Throws:
IOException- if the JSON string is invalid with respect to ConnectorRecord
-
toJson
Convert an instance of ConnectorRecord to an JSON string- Returns:
- JSON string
-