Interface ApiClientDraft
- All Superinterfaces:
Draft<ApiClientDraft>
Example to create an instance using the builder pattern
ApiClientDraft apiClientDraft = ApiClientDraft.builder()
.name("{name}")
.scope("{scope}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ApiClientDraftBuilder
builder()
builder factory method for ApiClientDraftstatic ApiClientDraftBuilder
builder
(ApiClientDraft template) create builder for ApiClientDraft instancestatic ApiClientDraft
deepCopy
(ApiClientDraft template) factory method to create a deep copy of ApiClientDraftExpiration time in seconds for each access token obtained by the APIClient.If set, the Client will be deleted after the specified amount of days.@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.static ApiClientDraft
of()
factory methodstatic ApiClientDraft
of
(ApiClientDraft template) factory method to create a shallow copy ApiClientDraftvoid
setAccessTokenValiditySeconds
(Integer accessTokenValiditySeconds) Expiration time in seconds for each access token obtained by the APIClient.void
setDeleteDaysAfterCreation
(Long deleteDaysAfterCreation) If set, the Client will be deleted after the specified amount of days.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.static com.fasterxml.jackson.core.type.TypeReference<ApiClientDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withApiClientDraft
(Function<ApiClientDraft, T> helper) accessor map function
-
Method Details
-
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
-
getDeleteDaysAfterCreation
Long getDeleteDaysAfterCreation()If set, the Client will be deleted after the specified amount of days.
- Returns:
- deleteDaysAfterCreation
-
getAccessTokenValiditySeconds
Integer getAccessTokenValiditySeconds()Expiration time in seconds for each access token obtained by the APIClient. If not set the default value applies.
- Returns:
- accessTokenValiditySeconds
-
getRefreshTokenValiditySeconds
Integer getRefreshTokenValiditySeconds()Inactivity expiration time in seconds for each refresh token obtained by the APIClient. The expiration time for refresh tokens is restarted each time the token is used. If not set the default value applies.
- Returns:
- refreshTokenValiditySeconds
-
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
-
setDeleteDaysAfterCreation
If set, the Client will be deleted after the specified amount of days.
- Parameters:
deleteDaysAfterCreation
- value to be set
-
setAccessTokenValiditySeconds
Expiration time in seconds for each access token obtained by the APIClient. If not set the default value applies.
- Parameters:
accessTokenValiditySeconds
- value to be set
-
setRefreshTokenValiditySeconds
Inactivity expiration time in seconds for each refresh token obtained by the APIClient. The expiration time for refresh tokens is restarted each time the token is used. If not set the default value applies.
- Parameters:
refreshTokenValiditySeconds
- value to be set
-
of
factory method- Returns:
- instance of ApiClientDraft
-
of
factory method to create a shallow copy ApiClientDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ApiClientDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApiClientDraft- Returns:
- builder
-
builder
create builder for ApiClientDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withApiClientDraft
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
-