// HandleSerialize implements the SerializeMiddleware interface
HandleSerialize implements the SerializeMiddleware interface
// HandleSerialize implements the SerializeMiddleware interface
func (m *GlacierAPIVersion) HandleSerialize(
	ctx context.Context, input middleware.SerializeInput, next middleware.SerializeHandler,
) (
	output middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
	req, ok := input.Request.(*smithyhttp.Request)
	if !ok {
		return output, metadata, &smithy.SerializationError{
			Err: fmt.Errorf("unknown request type %T", input.Request),
		}
	}
	req.Header.Set(glacierAPIVersionHeaderKey, m.apiVersion)
	return next.HandleSerialize(ctx, input)
}
func ( m * GlacierAPIVersion ) HandleSerialize ( ctx context . Context , input middleware . SerializeInput , next middleware . SerializeHandler , ) ( output middleware . SerializeOutput , metadata middleware . Metadata , err error , ) { req , ok := input . Request . ( * smithyhttp . Request ) if ! ok { return output , metadata , & smithy . SerializationError { Err : fmt . Errorf ( " " , input . Request ) , } } req . Header . Set ( glacierAPIVersionHeaderKey , m . apiVersion ) return next . HandleSerialize ( ctx , input ) }
HandleSerialize implements the SerializeMiddleware interface
HandleSerialize implements the SerializeMiddleware interface