blob: b26aa7fc2f7c8079734fecbc4dea8cae10ff642e (
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
// Code generated by go generate; DO NOT EDIT.
package generate
import (
"net/url"
"github.com/containers/podman/v3/pkg/bindings/internal/util"
)
// Changed returns true if named field has been set
func (o *SystemdOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
// ToParams formats struct fields to be passed to API service
func (o *SystemdOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
// WithUseName set field UseName to given value
func (o *SystemdOptions) WithUseName(value bool) *SystemdOptions {
o.UseName = &value
return o
}
// GetUseName returns value of field UseName
func (o *SystemdOptions) GetUseName() bool {
if o.UseName == nil {
var z bool
return z
}
return *o.UseName
}
// WithNew set field New to given value
func (o *SystemdOptions) WithNew(value bool) *SystemdOptions {
o.New = &value
return o
}
// GetNew returns value of field New
func (o *SystemdOptions) GetNew() bool {
if o.New == nil {
var z bool
return z
}
return *o.New
}
// WithNoHeader set field NoHeader to given value
func (o *SystemdOptions) WithNoHeader(value bool) *SystemdOptions {
o.NoHeader = &value
return o
}
// GetNoHeader returns value of field NoHeader
func (o *SystemdOptions) GetNoHeader() bool {
if o.NoHeader == nil {
var z bool
return z
}
return *o.NoHeader
}
// WithTemplateUnitFile set field TemplateUnitFile to given value
func (o *SystemdOptions) WithTemplateUnitFile(value bool) *SystemdOptions {
o.TemplateUnitFile = &value
return o
}
// GetTemplateUnitFile returns value of field TemplateUnitFile
func (o *SystemdOptions) GetTemplateUnitFile() bool {
if o.TemplateUnitFile == nil {
var z bool
return z
}
return *o.TemplateUnitFile
}
// WithRestartPolicy set field RestartPolicy to given value
func (o *SystemdOptions) WithRestartPolicy(value string) *SystemdOptions {
o.RestartPolicy = &value
return o
}
// GetRestartPolicy returns value of field RestartPolicy
func (o *SystemdOptions) GetRestartPolicy() string {
if o.RestartPolicy == nil {
var z string
return z
}
return *o.RestartPolicy
}
// WithStopTimeout set field StopTimeout to given value
func (o *SystemdOptions) WithStopTimeout(value uint) *SystemdOptions {
o.StopTimeout = &value
return o
}
// GetStopTimeout returns value of field StopTimeout
func (o *SystemdOptions) GetStopTimeout() uint {
if o.StopTimeout == nil {
var z uint
return z
}
return *o.StopTimeout
}
// WithContainerPrefix set field ContainerPrefix to given value
func (o *SystemdOptions) WithContainerPrefix(value string) *SystemdOptions {
o.ContainerPrefix = &value
return o
}
// GetContainerPrefix returns value of field ContainerPrefix
func (o *SystemdOptions) GetContainerPrefix() string {
if o.ContainerPrefix == nil {
var z string
return z
}
return *o.ContainerPrefix
}
// WithPodPrefix set field PodPrefix to given value
func (o *SystemdOptions) WithPodPrefix(value string) *SystemdOptions {
o.PodPrefix = &value
return o
}
// GetPodPrefix returns value of field PodPrefix
func (o *SystemdOptions) GetPodPrefix() string {
if o.PodPrefix == nil {
var z string
return z
}
return *o.PodPrefix
}
// WithSeparator set field Separator to given value
func (o *SystemdOptions) WithSeparator(value string) *SystemdOptions {
o.Separator = &value
return o
}
// GetSeparator returns value of field Separator
func (o *SystemdOptions) GetSeparator() string {
if o.Separator == nil {
var z string
return z
}
return *o.Separator
}
|