Class ApiClientImpl
- All Implemented Interfaces:
ApiClient
,Identifiable<ApiClient>
,io.vrap.rmf.base.client.ModelBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Expiration time in seconds for each access token obtained by the APIClient.Date and time (UTC) the APIClient was initially created at.If set, the Client will be deleted on (or shortly after) this point in time.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.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.Only shown once in the response of creating the APIClient.int
hashCode()
void
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 at.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.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.api_client.ApiClient
withApiClient
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
ApiClientImpl
public ApiClientImpl()create empty instance
-
-
Method Details
-
getId
The OAuth2
client_id
that can be used to obtain an access token.- Specified by:
getId
in interfaceApiClient
- Specified by:
getId
in interfaceIdentifiable<ApiClient>
- Returns:
- id
-
getName
Name of the APIClient.
-
getScope
Whitespace-separated list of OAuth scopes that can be used when obtaining an access token.
-
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. -
getLastUsedAt
Date of the last day this APIClient was used to obtain an access token.
- Specified by:
getLastUsedAt
in interfaceApiClient
- Returns:
- lastUsedAt
-
getDeleteAt
If set, the Client will be deleted on (or shortly after) this point in time.
- Specified by:
getDeleteAt
in interfaceApiClient
- Returns:
- deleteAt
-
getCreatedAt
Date and time (UTC) the APIClient was initially created at.
- Specified by:
getCreatedAt
in interfaceApiClient
- Returns:
- createdAt
-
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.
- Specified by:
getAccessTokenValiditySeconds
in interfaceApiClient
- Returns:
- accessTokenValiditySeconds
-
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.
- Specified by:
getRefreshTokenValiditySeconds
in interfaceApiClient
- Returns:
- refreshTokenValiditySeconds
-
setId
Description copied from interface:ApiClient
The OAuth2
client_id
that can be used to obtain an access token. -
setName
Description copied from interface:ApiClient
Name of the APIClient.
-
setScope
Description copied from interface:ApiClient
Whitespace-separated list of OAuth scopes that can be used when obtaining an access token.
-
setSecret
Description copied from interface:ApiClient
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. -
setLastUsedAt
Description copied from interface:ApiClient
Date of the last day this APIClient was used to obtain an access token.
- Specified by:
setLastUsedAt
in interfaceApiClient
- Parameters:
lastUsedAt
- value to be set
-
setDeleteAt
Description copied from interface:ApiClient
If set, the Client will be deleted on (or shortly after) this point in time.
- Specified by:
setDeleteAt
in interfaceApiClient
- Parameters:
deleteAt
- value to be set
-
setCreatedAt
Description copied from interface:ApiClient
Date and time (UTC) the APIClient was initially created at.
- Specified by:
setCreatedAt
in interfaceApiClient
- Parameters:
createdAt
- value to be set
-
setAccessTokenValiditySeconds
Description copied from interface:ApiClient
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.
- Specified by:
setAccessTokenValiditySeconds
in interfaceApiClient
- Parameters:
accessTokenValiditySeconds
- value to be set
-
setRefreshTokenValiditySeconds
Description copied from interface:ApiClient
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.
- Specified by:
setRefreshTokenValiditySeconds
in interfaceApiClient
- Parameters:
refreshTokenValiditySeconds
- value to be set
-
equals
-
hashCode
-