Class PersonalAccessTokenConfig
- java.lang.Object
-
- com.adobe.guides.konnect.definitions.core.config.RestWrapperConfig
-
- com.adobe.guides.konnect.definitions.ado.PersonalAccessTokenConfig
-
- All Implemented Interfaces:
com.adobe.guides.konnect.definitions.core.config.Config
,com.adobe.guides.konnect.definitions.core.urlResource.UrlResources
public class PersonalAccessTokenConfig extends com.adobe.guides.konnect.definitions.core.config.RestWrapperConfig
This class provides an implementation of theRestWrapperConfig
interface. It is a REST-based config that uses a personal access token.- Since:
- 1.0.0
- Author:
- Adobe
-
-
Constructor Summary
Constructors Constructor Description PersonalAccessTokenConfig(String organization, String token, List<com.adobe.guides.konnect.definitions.core.urlResource.RestResourceDao> resourceList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the unique name for this config.String
getOrganization()
Returns the organisation name for this config.String
getToken()
Returns the personal access token for this config.void
setCurrentResource(String id)
Sets the current resource to be used for this config.void
setResourceList(List<com.adobe.guides.konnect.definitions.core.urlResource.RestResourceDao> resourceList)
Sets the resources to be used for this config.
-
-
-
Method Detail
-
getName
public String getName()
Returns the unique name for this config.- Returns:
- a
String
which is the name of this config.
-
getOrganization
public String getOrganization()
Returns the organisation name for this config.- Returns:
- a
String
which is the organisation name of this config.
-
getToken
public String getToken()
Returns the personal access token for this config.- Returns:
- a
String
which is the personal access token of this config.
-
setResourceList
public void setResourceList(List<com.adobe.guides.konnect.definitions.core.urlResource.RestResourceDao> resourceList) throws com.adobe.guides.konnect.definitions.core.exception.KonnectException
Sets the resources to be used for this config.- Parameters:
resourceList
- aList
ofRestResourceDao
objects. Each object represents a resource to be used.- Throws:
com.adobe.guides.konnect.definitions.core.exception.KonnectException
-
setCurrentResource
public void setCurrentResource(String id)
Sets the current resource to be used for this config.- Parameters:
id
- aString
which is the id of the resource to be used.
-
-