-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
types_stop_options.go
48 lines (40 loc) · 1.01 KB
/
types_stop_options.go
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
// Code generated by go generate; DO NOT EDIT.
package containers
import (
"net/url"
"github.com/containers/podman/v5/pkg/bindings/internal/util"
)
// Changed returns true if named field has been set
func (o *StopOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
// ToParams formats struct fields to be passed to API service
func (o *StopOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
// WithIgnore set field Ignore to given value
func (o *StopOptions) WithIgnore(value bool) *StopOptions {
o.Ignore = &value
return o
}
// GetIgnore returns value of field Ignore
func (o *StopOptions) GetIgnore() bool {
if o.Ignore == nil {
var z bool
return z
}
return *o.Ignore
}
// WithTimeout set field Timeout to given value
func (o *StopOptions) WithTimeout(value uint) *StopOptions {
o.Timeout = &value
return o
}
// GetTimeout returns value of field Timeout
func (o *StopOptions) GetTimeout() uint {
if o.Timeout == nil {
var z uint
return z
}
return *o.Timeout
}