// Code generated by go generate; DO NOT EDIT.
package images

import (
	"net/url"

	"go.podman.io/podman/v6/pkg/bindings/internal/util"
)

// Changed returns true if named field has been set
func (o *PruneOptions) Changed(fieldName string) bool {
	return util.Changed(o, fieldName)
}

// ToParams formats struct fields to be passed to API service
func (o *PruneOptions) ToParams() (url.Values, error) {
	return util.ToParams(o)
}

// WithAll set field All to given value
func (o *PruneOptions) WithAll(value bool) *PruneOptions {
	o.All = &value
	return o
}

// GetAll returns value of field All
func (o *PruneOptions) GetAll() bool {
	if o.All == nil {
		var z bool
		return z
	}
	return *o.All
}

// WithExternal set field External to given value
func (o *PruneOptions) WithExternal(value bool) *PruneOptions {
	o.External = &value
	return o
}

// GetExternal returns value of field External
func (o *PruneOptions) GetExternal() bool {
	if o.External == nil {
		var z bool
		return z
	}
	return *o.External
}

// WithBuildCache set field BuildCache to given value
func (o *PruneOptions) WithBuildCache(value bool) *PruneOptions {
	o.BuildCache = &value
	return o
}

// GetBuildCache returns value of field BuildCache
func (o *PruneOptions) GetBuildCache() bool {
	if o.BuildCache == nil {
		var z bool
		return z
	}
	return *o.BuildCache
}

// WithFilters set field Filters to given value
func (o *PruneOptions) WithFilters(value map[string][]string) *PruneOptions {
	o.Filters = value
	return o
}

// GetFilters returns value of field Filters
func (o *PruneOptions) GetFilters() map[string][]string {
	if o.Filters == nil {
		var z map[string][]string
		return z
	}
	return o.Filters
}
