Package ai.shipeasy.admin.model
Class CreateOAuthConnectorRequest
java.lang.Object
ai.shipeasy.admin.model.CreateOAuthConnectorRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CreateOAuthConnectorRequest
extends Object
Create an OAuth/app connector stub. The connector is created `enabled: false` with empty `config` and no credentials; the provider's OAuth flow then attaches credentials and enables it.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumOAuth/app connector destination. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEventsItem(ConnectorEvent eventsItem) booleanevents(List<ConnectorEvent> events) static CreateOAuthConnectorRequestCreate an instance of CreateOAuthConnectorRequest given an JSON stringEvents to subscribe to.getName()Human-readable connector label.OAuth/app connector destination.inthashCode()voidsetEvents(List<ConnectorEvent> events) voidvoidtoJson()Convert an instance of CreateOAuthConnectorRequest 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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateOAuthConnectorRequest
public CreateOAuthConnectorRequest()
-
-
Method Details
-
provider
public CreateOAuthConnectorRequest provider(@Nonnull CreateOAuthConnectorRequest.ProviderEnum provider) -
getProvider
OAuth/app connector destination.- Returns:
- provider
-
setProvider
-
name
-
getName
Human-readable connector label.- Returns:
- name
-
setName
-
events
-
addEventsItem
-
getEvents
Events to subscribe to. At least one is required.- Returns:
- events
-
setEvents
-
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 CreateOAuthConnectorRequest
-
fromJson
Create an instance of CreateOAuthConnectorRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateOAuthConnectorRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateOAuthConnectorRequest
-
toJson
Convert an instance of CreateOAuthConnectorRequest to an JSON string- Returns:
- JSON string
-