Class ClientCredentials.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setAccessToken

        public ClientCredentials.Builder setAccessToken​(java.lang.String accessToken)
        The access token setter.
        Parameters:
        accessToken - An access token that can be provided in subsequent calls, for example to Spotify Web API services.
        Returns:
        A ClientCredentials.Builder.
      • setExpiresIn

        public ClientCredentials.Builder setExpiresIn​(java.lang.Integer expiresIn)
        The expiration time setter.
        Parameters:
        expiresIn - The time period (in seconds) for which the access token is valid.
        Returns:
        A ClientCredentials.Builder.
      • build

        public ClientCredentials build()
        Description copied from interface: IModelObject.Builder
        Build a model object with the information set in the builder object.
        The type of the model object and its methods depend on its corresponding implementation.
        Returns:
        A model object.