public OAuthCredentials withRefreshToken(String refreshToken) {
        setRefreshToken(refreshToken);
        return this;
    }
<p>
The refresh token used to refresh expired access token.
</p>

@param refreshToken
       The refresh token used to refresh expired access token.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appflow/src/main/java/com/amazonaws/services/appflow/model/OAuthCredentials.java