Interface ApiClient
- All Superinterfaces:
Identifiable<ApiClient>
Example to create an instance using the builder pattern
ApiClient apiClient = ApiClient.builder()
.id("{id}")
.name("{name}")
.scope("{scope}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ApiClientBuilder
builder()
builder factory method for ApiClientstatic ApiClientBuilder
create builder for ApiClient instancestatic ApiClient
factory method to create a deep copy of ApiClientExpiration time in seconds for each access token obtained by the APIClient.Date and time (UTC) the APIClient was initially created.If set, the Client will be deleted on (or shortly after) this point in time.@NotNull String
getId()
The OAuth2client_id
that can be used to obtain an access token.Date of the last day this APIClient was used to obtain an access token.@NotNull String
getName()
Name of the APIClient.Inactivity expiration time in seconds for each refresh token obtained by the APIClient.@NotNull String
getScope()
Whitespace-separated list of OAuth scopes that can be used when obtaining an access token.Only shown once in the response of creating the APIClient.static ApiClient
of()
factory methodstatic ApiClient
factory method to create a shallow copy ApiClientvoid
setAccessTokenValiditySeconds
(Integer accessTokenValiditySeconds) Expiration time in seconds for each access token obtained by the APIClient.void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the APIClient was initially created.void
setDeleteAt
(ZonedDateTime deleteAt) If set, the Client will be deleted on (or shortly after) this point in time.void
The OAuth2client_id
that can be used to obtain an access token.void
setLastUsedAt
(LocalDate lastUsedAt) Date of the last day this APIClient was used to obtain an access token.void
Name of the APIClient.void
setRefreshTokenValiditySeconds
(Integer refreshTokenValiditySeconds) Inactivity expiration time in seconds for each refresh token obtained by the APIClient.void
Whitespace-separated list of OAuth scopes that can be used when obtaining an access token.void
Only shown once in the response of creating the APIClient.static com.fasterxml.jackson.core.type.TypeReference<ApiClient>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withApiClient
(Function<ApiClient, T> helper) accessor map function
-
Method Details
-
getId
The OAuth2
client_id
that can be used to obtain an access token.- Specified by:
getId
in interfaceIdentifiable<ApiClient>
- Returns:
- id
-
getName
Name of the APIClient.
- Returns:
- name
-
getScope
Whitespace-separated list of OAuth scopes that can be used when obtaining an access token.
- Returns:
- scope
-
getSecret
String getSecret()Only shown once in the response of creating the APIClient. This is the OAuth2
client_secret
that can be used to obtain an access token.- Returns:
- secret
-
getLastUsedAt
LocalDate getLastUsedAt()Date of the last day this APIClient was used to obtain an access token.
- Returns:
- lastUsedAt
-
getDeleteAt
ZonedDateTime getDeleteAt()If set, the Client will be deleted on (or shortly after) this point in time.
- Returns:
- deleteAt
-
getCreatedAt
ZonedDateTime getCreatedAt()Date and time (UTC) the APIClient was initially created.
- Returns:
- createdAt
-
getAccessTokenValiditySeconds
Integer getAccessTokenValiditySeconds()Expiration time in seconds for each access token obtained by the APIClient. Only present when set with the APIClientDraft. If not present the default value applies.
- Returns:
- accessTokenValiditySeconds
-
getRefreshTokenValiditySeconds
Integer getRefreshTokenValiditySeconds()Inactivity expiration time in seconds for each refresh token obtained by the APIClient. Only present when set with the APIClientDraft. If not present the default value applies.
- Returns:
- refreshTokenValiditySeconds
-
setId
The OAuth2
client_id
that can be used to obtain an access token.- Parameters:
id
- value to be set
-
setName
Name of the APIClient.
- Parameters:
name
- value to be set
-
setScope
Whitespace-separated list of OAuth scopes that can be used when obtaining an access token.
- Parameters:
scope
- value to be set
-
setSecret
Only shown once in the response of creating the APIClient. This is the OAuth2
client_secret
that can be used to obtain an access token.- Parameters:
secret
- value to be set
-
setLastUsedAt
Date of the last day this APIClient was used to obtain an access token.
- Parameters:
lastUsedAt
- value to be set
-
setDeleteAt
If set, the Client will be deleted on (or shortly after) this point in time.
- Parameters:
deleteAt
- value to be set
-
setCreatedAt
Date and time (UTC) the APIClient was initially created.
- Parameters:
createdAt
- value to be set
-
setAccessTokenValiditySeconds
Expiration time in seconds for each access token obtained by the APIClient. Only present when set with the APIClientDraft. If not present the default value applies.
- Parameters:
accessTokenValiditySeconds
- value to be set
-
setRefreshTokenValiditySeconds
Inactivity expiration time in seconds for each refresh token obtained by the APIClient. Only present when set with the APIClientDraft. If not present the default value applies.
- Parameters:
refreshTokenValiditySeconds
- value to be set
-
of
factory method- Returns:
- instance of ApiClient
-
of
factory method to create a shallow copy ApiClient- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ApiClient- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApiClient- Returns:
- builder
-
builder
create builder for ApiClient instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withApiClient
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-