// MarshalPayload marshals the SDK shape into the io.Writer using the
// Marshalers HandlerList provided. Returns an error if unable if marshal
// fails.
MarshalPayload marshals the SDK shape into the io.Writer using the
Marshalers HandlerList provided. Returns an error if unable if marshal
fails.
// MarshalPayload marshals the SDK shape into the io . Writer using the // Marshalers HandlerList provided . Returns an error if unable if marshal // fails .
func (h HandlerPayloadMarshal) MarshalPayload(w io.Writer, v interface{}) error {
	req := request.New(
		aws.Config{},
		metadata.ClientInfo{},
		request.Handlers{},
		nil,
		&request.Operation{HTTPMethod: "GET"},
		v,
		nil,
	)
	h.Marshalers.Run(req)
	if req.Error != nil {
		return req.Error
	}
	io.Copy(w, req.GetBody())
	return nil
}
func ( h HandlerPayloadMarshal ) MarshalPayload ( w io . Writer , v interface { } ) error { req := request . New ( aws . Config { } , metadata . ClientInfo { } , request . Handlers { } , nil , & request . Operation { HTTPMethod : " " } , v , nil , ) h . Marshalers . Run ( req ) if req . Error != nil { return req . Error } io . Copy ( w , req . GetBody ( ) ) return nil }
MarshalPayload marshals the SDK shape into the io.Writer using the
Marshalers HandlerList provided.
MarshalPayload marshals the SDK shape into the io . Writer using the Marshalers HandlerList provided .