Class ApiClientDraftBuilder
- All Implemented Interfaces:
Builder<ApiClientDraft>
Example to create an instance using the builder pattern
ApiClientDraft apiClientDraft = ApiClientDraft.builder()
.name("{name}")
.scope("{scope}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessTokenValiditySeconds
(Integer accessTokenValiditySeconds) Expiration time in seconds for each access token obtained by the APIClient.build()
builds ApiClientDraft with checking for non-null required valuesbuilds ApiClientDraft without checking for non-null required valuesdeleteDaysAfterCreation
(Long deleteDaysAfterCreation) If set, the Client will be deleted after the specified amount of days.Expiration time in seconds for each access token obtained by the APIClient.If set, the Client will be deleted after the specified amount of days.getName()
Name of the APIClient.Inactivity expiration time in seconds for each refresh token obtained by the APIClient.getScope()
Whitespace-separated list of OAuth scopes that can be used when obtaining an access token.Name of the APIClient.static ApiClientDraftBuilder
of()
factory method for an instance of ApiClientDraftBuilderstatic ApiClientDraftBuilder
of
(ApiClientDraft template) create builder for ApiClientDraft instancerefreshTokenValiditySeconds
(Integer refreshTokenValiditySeconds) Inactivity expiration time in seconds for each refresh token obtained by the APIClient.Whitespace-separated list of OAuth scopes that can be used when obtaining an access token.
-
Constructor Details
-
ApiClientDraftBuilder
public ApiClientDraftBuilder()
-
-
Method Details
-
name
Name of the APIClient.
- Parameters:
name
- value to be set- Returns:
- Builder
-
scope
Whitespace-separated list of OAuth scopes that can be used when obtaining an access token.
- Parameters:
scope
- value to be set- Returns:
- Builder
-
deleteDaysAfterCreation
If set, the Client will be deleted after the specified amount of days.
- Parameters:
deleteDaysAfterCreation
- value to be set- Returns:
- Builder
-
accessTokenValiditySeconds
public ApiClientDraftBuilder accessTokenValiditySeconds(@Nullable Integer accessTokenValiditySeconds) 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- Returns:
- Builder
-
refreshTokenValiditySeconds
public ApiClientDraftBuilder refreshTokenValiditySeconds(@Nullable Integer refreshTokenValiditySeconds) 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- Returns:
- Builder
-
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
If set, the Client will be deleted after the specified amount of days.
- Returns:
- deleteDaysAfterCreation
-
getAccessTokenValiditySeconds
Expiration time in seconds for each access token obtained by the APIClient. If not set the default value applies.
- Returns:
- accessTokenValiditySeconds
-
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
-
build
builds ApiClientDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<ApiClientDraft>
- Returns:
- ApiClientDraft
-
buildUnchecked
builds ApiClientDraft without checking for non-null required values- Returns:
- ApiClientDraft
-
of
factory method for an instance of ApiClientDraftBuilder- Returns:
- builder
-
of
create builder for ApiClientDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-