Class ApiClientDraftImpl

java.lang.Object
com.commercetools.api.models.api_client.ApiClientDraftImpl
All Implemented Interfaces:
ApiClientDraft, io.vrap.rmf.base.client.Draft<ApiClientDraft>, io.vrap.rmf.base.client.ModelBase

public class ApiClientDraftImpl extends Object implements ApiClientDraft, io.vrap.rmf.base.client.ModelBase
ApiClientDraft
  • Constructor Details

    • ApiClientDraftImpl

      public ApiClientDraftImpl()
      create empty instance
  • Method Details

    • getName

      public String getName()

      Name of the APIClient.

      Specified by:
      getName in interface ApiClientDraft
      Returns:
      name
    • getScope

      public String getScope()

      Whitespace-separated list of OAuth scopes that can be used when obtaining an access token.

      Specified by:
      getScope in interface ApiClientDraft
      Returns:
      scope
    • getDeleteDaysAfterCreation

      public Long getDeleteDaysAfterCreation()

      If set, the Client will be deleted after the specified amount of days.

      Specified by:
      getDeleteDaysAfterCreation in interface ApiClientDraft
      Returns:
      deleteDaysAfterCreation
    • getAccessTokenValiditySeconds

      public Integer getAccessTokenValiditySeconds()

      Expiration time in seconds for each access token obtained by the APIClient. If not set the default value applies.

      Specified by:
      getAccessTokenValiditySeconds in interface ApiClientDraft
      Returns:
      accessTokenValiditySeconds
    • getRefreshTokenValiditySeconds

      public 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.

      Specified by:
      getRefreshTokenValiditySeconds in interface ApiClientDraft
      Returns:
      refreshTokenValiditySeconds
    • setName

      public void setName(String name)
      Description copied from interface: ApiClientDraft

      Name of the APIClient.

      Specified by:
      setName in interface ApiClientDraft
      Parameters:
      name - value to be set
    • setScope

      public void setScope(String scope)
      Description copied from interface: ApiClientDraft

      Whitespace-separated list of OAuth scopes that can be used when obtaining an access token.

      Specified by:
      setScope in interface ApiClientDraft
      Parameters:
      scope - value to be set
    • setDeleteDaysAfterCreation

      public void setDeleteDaysAfterCreation(Long deleteDaysAfterCreation)
      Description copied from interface: ApiClientDraft

      If set, the Client will be deleted after the specified amount of days.

      Specified by:
      setDeleteDaysAfterCreation in interface ApiClientDraft
      Parameters:
      deleteDaysAfterCreation - value to be set
    • setAccessTokenValiditySeconds

      public void setAccessTokenValiditySeconds(Integer accessTokenValiditySeconds)
      Description copied from interface: ApiClientDraft

      Expiration time in seconds for each access token obtained by the APIClient. If not set the default value applies.

      Specified by:
      setAccessTokenValiditySeconds in interface ApiClientDraft
      Parameters:
      accessTokenValiditySeconds - value to be set
    • setRefreshTokenValiditySeconds

      public void setRefreshTokenValiditySeconds(Integer refreshTokenValiditySeconds)
      Description copied from interface: ApiClientDraft

      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.

      Specified by:
      setRefreshTokenValiditySeconds in interface ApiClientDraft
      Parameters:
      refreshTokenValiditySeconds - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object