public WebIdentityFederationSessionCredentialsProvider withRefreshThreshold(int refreshThreshold) {
        this.setRefreshThreshold(refreshThreshold);
        return this;
    }
Set the refresh threshold for the session credentials created by this client in
seconds. This value will be used internally to determine if new
credentials should be fetched from STS. Returns a refrence to the object
so methods can be chained.

@see com.amazonaws.services.securitytoken.model.AssumeRoleWithWebIdentityRequest 

@param refreshThreshold 
             The new refresh threshold for session credentials created by this
             provider

@return A reference to this updated object so that method calls
         can be chained together.
aws-java-sdk-sts/src/main/java/com/amazonaws/auth/WebIdentityFederationSessionCredentialsProvider.java