Refactored RestClient to allow calling setters before making REST call.