/
types_start_options.go
48 lines (40 loc) · 1.08 KB
/
types_start_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 *StartOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
// ToParams formats struct fields to be passed to API service
func (o *StartOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
// WithDetachKeys set field DetachKeys to given value
func (o *StartOptions) WithDetachKeys(value string) *StartOptions {
o.DetachKeys = &value
return o
}
// GetDetachKeys returns value of field DetachKeys
func (o *StartOptions) GetDetachKeys() string {
if o.DetachKeys == nil {
var z string
return z
}
return *o.DetachKeys
}
// WithRecursive set field Recursive to given value
func (o *StartOptions) WithRecursive(value bool) *StartOptions {
o.Recursive = &value
return o
}
// GetRecursive returns value of field Recursive
func (o *StartOptions) GetRecursive() bool {
if o.Recursive == nil {
var z bool
return z
}
return *o.Recursive
}