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 ApiClientDraftBuilderbuilder()builder factory method for ApiClientDraftstatic ApiClientDraftBuilderbuilder(ApiClientDraft template) create builder for ApiClientDraft instancecopyDeep()static ApiClientDraftdeepCopy(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 StringgetName()Name of the APIClient.Inactivity expiration time in seconds for each refresh token obtained by the APIClient.@NotNull StringgetScope()Whitespace-separated list of OAuth scopes that can be used when obtaining an access token.static ApiClientDraftof()factory methodstatic ApiClientDraftof(ApiClientDraft template) factory method to create a shallow copy ApiClientDraftvoidsetAccessTokenValiditySeconds(Integer accessTokenValiditySeconds) Expiration time in seconds for each access token obtained by the APIClient.voidsetDeleteDaysAfterCreation(Long deleteDaysAfterCreation) If set, the Client will be deleted after the specified amount of days.voidName of the APIClient.voidsetRefreshTokenValiditySeconds(Integer refreshTokenValiditySeconds) Inactivity expiration time in seconds for each refresh token obtained by the APIClient.voidWhitespace-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> TwithApiClientDraft(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
-
copyDeep
ApiClientDraft copyDeep() -
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
-