class Aws::Rest::Request::Body

def build_body(params)

def build_body(params)
  if streaming?
    params[@rules[:payload]]
  elsif @rules[:payload]
    params = params[@rules[:payload]]
    serialize(@rules[:payload_member], params) if params
  else
    params = body_params(params)
    serialize(@rules, params) unless params.empty?
  end
end