// WithID adds the id to the patch endpoint ID params
499128
func (o *PatchEndpointIDParams) WithID(id string) *PatchEndpointIDParams {
	o.SetID(id)
	return o
}
841696
func WithNodeID(id int) Option {
	return func(e *Engine) {
		e.nodeID = &id
		e.defaultMetricLabels["node_id"] = fmt.Sprint(*e.nodeID)
	}
}
1001808
func (o *UpdateOneParams) WithID(id string) *UpdateOneParams {
	o.SetID(id)
	return o
}
26508
func NewProviderWithID(name string, id *guid.GUID, callback EnableCallback) (provider *Provider, err error) {
	providerCallbackOnce.Do(func() {
		globalProviderCallback = windows.NewCallback(providerCallbackAdapter)
	})

	provider = providers.newProvider()
	defer func(provider *Provider) {
		if err != nil {
			providers.removeProvider(provider)
		}
	}(provider)
	provider.ID = id
	provider.callback = callback

	if err := eventRegister((*windows.GUID)(provider.ID), globalProviderCallback, uintptr(provider.index), &provider.handle); err != nil {
		return nil, err
	}

	metadata := &bytes.Buffer{}
	binary.Write(metadata, binary.LittleEndian, uint16(0)) // Write empty size for buffer (to update later)
	metadata.WriteString(name)
	metadata.WriteByte(0)                                                   // Null terminator for name
	binary.LittleEndian.PutUint16(metadata.Bytes(), uint16(metadata.Len())) // Update the size at the beginning of the buffer
	provider.metadata = metadata.Bytes()

	if err := eventSetInformation(
		provider.handle,
		eventInfoClassProviderSetTraits,
		uintptr(unsafe.Pointer(&provider.metadata[0])),
		uint32(len(provider.metadata))); err != nil {

		return nil, err
	}

	return provider, nil
}
1361503
func (o *DestroyOneParams) WithID(id string) *DestroyOneParams {
	o.SetID(id)
	return o
}
344601
func WithRequestID(ctx context.Context, reqid string) context.Context {
	return context.WithValue(ctx, RequestIDContextKey, reqid)
}
1235625
func WithKeyID(keyID int) ProviderOpts {
	return func(p *Provider) error {
		p.KeyID = keyID
		return nil
	}
}
7461
func WithResourceID(id int64) MarshalOption {
	return func(c *MarshalConfig) error {
		c.ID = id
		return nil
	}
}
1114331
func (o *PatchNodesIdentifierTagsParams) WithIdentifier(identifier string) *PatchNodesIdentifierTagsParams {
	o.Identifier = identifier
	return o
}
1163693
func NewProviderWithID(name string, id *guid.GUID, callback EnableCallback) (provider *Provider, err error) {
	return nil, nil
}
1113801
func WithRequestID(ctx context.Context, requestID string) context.Context {
	return context.WithValue(ctx, requestIDKey, requestID)
}
894998
func (o *GetEndpointIDParams) WithContext(ctx context.Context) *GetEndpointIDParams {
	o.SetContext(ctx)
	return o
}
260647
func (o *GetIdentityIDParams) WithID(id string) *GetIdentityIDParams {
	o.SetID(id)
	return o
}
1106773
func (o *PatchSkusIdentifierParams) WithIdentifier(identifier string) *PatchSkusIdentifierParams {
	o.Identifier = identifier
	return o
}
562560
func (o *PostLookupsIDParams) WithID(id string) *PostLookupsIDParams {
	o.ID = id
	return o
}
120080
func (api *DiskAPI) WithServerID(id int64) *DiskAPI {
	api.FilterBy("Server.ID", id)
	return api
}
876375
func (o *PatchEndpointIDParams) WithTimeout(timeout time.Duration) *PatchEndpointIDParams {
	o.SetTimeout(timeout)
	return o
}