summaryrefslogtreecommitdiff
path: root/pkg/bindings/images/types_remove_options.go
blob: 8972ac93c7875961013b1bde3c62c1fa4e94335c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// Code generated by go generate; DO NOT EDIT.
package images

import (
	"net/url"

	"github.com/containers/podman/v4/pkg/bindings/internal/util"
)

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

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

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

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

// WithForce set field Force to given value
func (o *RemoveOptions) WithForce(value bool) *RemoveOptions {
	o.Force = &value
	return o
}

// GetForce returns value of field Force
func (o *RemoveOptions) GetForce() bool {
	if o.Force == nil {
		var z bool
		return z
	}
	return *o.Force
}

// WithIgnore set field Ignore to given value
func (o *RemoveOptions) WithIgnore(value bool) *RemoveOptions {
	o.Ignore = &value
	return o
}

// GetIgnore returns value of field Ignore
func (o *RemoveOptions) GetIgnore() bool {
	if o.Ignore == nil {
		var z bool
		return z
	}
	return *o.Ignore
}

// WithLookupManifest set field LookupManifest to given value
func (o *RemoveOptions) WithLookupManifest(value bool) *RemoveOptions {
	o.LookupManifest = &value
	return o
}

// GetLookupManifest returns value of field LookupManifest
func (o *RemoveOptions) GetLookupManifest() bool {
	if o.LookupManifest == nil {
		var z bool
		return z
	}
	return *o.LookupManifest
}

// WithNoPrune set field NoPrune to given value
func (o *RemoveOptions) WithNoPrune(value bool) *RemoveOptions {
	o.NoPrune = &value
	return o
}

// GetNoPrune returns value of field NoPrune
func (o *RemoveOptions) GetNoPrune() bool {
	if o.NoPrune == nil {
		var z bool
		return z
	}
	return *o.NoPrune
}