class Aws::Binary::EventStreamEncoder

def serializer_class(protocol)

def serializer_class(protocol)
  case protocol
  when 'rest-xml' then Xml::Builder
  when 'rest-json' then Json::Builder
  when 'json' then Json::Builder
  else raise "unsupported protocol #{protocol} for event stream"
  end
end