Class APIBackendMetaData
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.QBackendMetaData
com.kingsrook.qqq.backend.module.api.model.metadata.APIBackendMetaData
- All Implemented Interfaces:
MetaDataProducerOutput
,QMetaDataObject
,TopLevelMetaDataInterface
,Serializable
Meta-data to provide details of an API backend (e.g., connection params)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for actionUtilGetter for apiKeyGetter for apiKeyQueryParamNameGetter for authorizationTypeGetter for baseUrlGetter for clientIdGetter for clientSecretGetter for contentTypegetCustomValue
(String key) Getter for a single customValueGetter for customValuesGetter for passwordGetter for usernamevoid
performValidation
(QInstanceValidator qInstanceValidator) boolean
void
setActionUtil
(QCodeReference actionUtil) Setter for actionUtilvoid
Setter for apiKeyvoid
setApiKeyQueryParamName
(String apiKeyQueryParamName) Setter for apiKeyQueryParamNamevoid
setAuthorizationType
(AuthorizationType authorizationType) Setter for authorizationTypevoid
setBaseUrl
(String baseUrl) Setter for baseUrlvoid
setClientId
(String clientId) Setter for clientIdvoid
setClientSecret
(String clientSecret) Setter for clientSecretvoid
setContentType
(String contentType) Setter for contentTypevoid
setCustomValues
(HashMap<String, Serializable> customValues) Setter for customValuesvoid
setPassword
(String password) Setter for passwordvoid
setUsername
(String username) Setter for usernamewithActionUtil
(QCodeReference actionUtil) Fluent setter for actionUtilwithApiKey
(String apiKey) Fluent setter for apiKeywithApiKeyQueryParamName
(String apiKeyQueryParamName) Fluent setter for apiKeyQueryParamNamewithAuthorizationType
(AuthorizationType authorizationType) Fluent setter for authorizationTypewithBaseUrl
(String baseUrl) Fluent setter for baseUrlwithClientId
(String clientId) Fluent setter for clientIdwithClientSecret
(String clientSecret) Fluent setter for clientSecretwithContentType
(String contentType) Fluent setter for contentTypewithCustomValue
(String key, Serializable value) Fluent setter for a single customValuewithCustomValues
(HashMap<String, Serializable> customValues) Fluent setter for customValuesFluent setter, override to help fluent flowswithPassword
(String password) Fluent setter for passwordwithUsername
(String username) Fluent setter for usernameMethods inherited from class com.kingsrook.qqq.backend.core.model.metadata.QBackendMetaData
addSelfToInstance, enrich, getBackendType, getBackendVariantsConfig, getDisabledCapabilities, getEnabledCapabilities, getName, getUsesVariants, setBackendType, setBackendType, setBackendVariantsConfig, setDisabledCapabilities, setEnabledCapabilities, setName, setUsesVariants, setVariantOptionsTableApiKeyField, setVariantOptionsTableClientIdField, setVariantOptionsTableClientSecretField, setVariantOptionsTableIdField, setVariantOptionsTableName, setVariantOptionsTableNameField, setVariantOptionsTablePasswordField, setVariantOptionsTableTypeField, setVariantOptionsTableTypeValue, setVariantOptionsTableUsernameField, withBackendType, withBackendVariantsConfig, withCapabilities, withCapabilities, withCapability, withDisabledCapabilities, withEnabledCapabilities, withoutCapabilities, withoutCapabilities, withoutCapability, withUsesVariants, withVariantOptionsTableApiKeyField, withVariantOptionsTableClientIdField, withVariantOptionsTableClientSecretField, withVariantOptionsTableIdField, withVariantOptionsTableName, withVariantOptionsTableNameField, withVariantOptionsTablePasswordField, withVariantOptionsTableTypeField, withVariantOptionsTableTypeValue, withVariantOptionsTableUsernameField
-
Constructor Details
-
APIBackendMetaData
public APIBackendMetaData()Default Constructor.
-
-
Method Details
-
withName
Fluent setter, override to help fluent flows- Overrides:
withName
in classQBackendMetaData
-
getBaseUrl
Getter for baseUrl -
setBaseUrl
Setter for baseUrl -
withBaseUrl
Fluent setter for baseUrl -
getApiKey
Getter for apiKey -
setApiKey
Setter for apiKey -
withApiKey
Fluent setter for apiKey -
getClientId
Getter for clientId -
setClientId
Setter for clientId -
withClientId
Fluent setter for clientId -
getClientSecret
Getter for clientSecret -
setClientSecret
Setter for clientSecret -
withClientSecret
Fluent setter for clientSecret -
getUsername
Getter for username -
setUsername
Setter for username -
withUsername
Fluent setter for username -
getPassword
Getter for password -
setPassword
Setter for password -
withPassword
Fluent setter for password -
getAuthorizationType
Getter for authorizationType -
setAuthorizationType
Setter for authorizationType -
withAuthorizationType
Fluent setter for authorizationType -
getContentType
Getter for contentType -
setContentType
Setter for contentType -
withContentType
Fluent setter for contentType -
getActionUtil
Getter for actionUtil -
setActionUtil
Setter for actionUtil -
withActionUtil
Fluent setter for actionUtil -
getCustomValues
Getter for customValues -
getCustomValue
Getter for a single customValue -
setCustomValues
Setter for customValues -
withCustomValues
Fluent setter for customValues -
withCustomValue
Fluent setter for a single customValue -
performValidation
- Overrides:
performValidation
in classQBackendMetaData
-
requiresPrimaryKeyOnTables
public boolean requiresPrimaryKeyOnTables()- Overrides:
requiresPrimaryKeyOnTables
in classQBackendMetaData
-
getApiKeyQueryParamName
Getter for apiKeyQueryParamName -
setApiKeyQueryParamName
Setter for apiKeyQueryParamName -
withApiKeyQueryParamName
Fluent setter for apiKeyQueryParamName
-