class Aws::Rest::Request::Builder

def serializer_class(context)

def serializer_class(context)
  protocol = context.config.api.metadata['protocol']
  case protocol
  when 'rest-xml' then Xml::Builder
  when 'rest-json' then Json::Builder
  else raise "unsupported protocol #{protocol}"
  end
end