github.com/containers/podman/v4@v4.9.4/pkg/bindings/volumes/types_remove_options.go (about) 1 // Code generated by go generate; DO NOT EDIT. 2 package volumes 3 4 import ( 5 "net/url" 6 7 "github.com/containers/podman/v4/pkg/bindings/internal/util" 8 ) 9 10 // Changed returns true if named field has been set 11 func (o *RemoveOptions) Changed(fieldName string) bool { 12 return util.Changed(o, fieldName) 13 } 14 15 // ToParams formats struct fields to be passed to API service 16 func (o *RemoveOptions) ToParams() (url.Values, error) { 17 return util.ToParams(o) 18 } 19 20 // WithForce set field Force to given value 21 func (o *RemoveOptions) WithForce(value bool) *RemoveOptions { 22 o.Force = &value 23 return o 24 } 25 26 // GetForce returns value of field Force 27 func (o *RemoveOptions) GetForce() bool { 28 if o.Force == nil { 29 var z bool 30 return z 31 } 32 return *o.Force 33 } 34 35 // WithTimeout set field Timeout to given value 36 func (o *RemoveOptions) WithTimeout(value uint) *RemoveOptions { 37 o.Timeout = &value 38 return o 39 } 40 41 // GetTimeout returns value of field Timeout 42 func (o *RemoveOptions) GetTimeout() uint { 43 if o.Timeout == nil { 44 var z uint 45 return z 46 } 47 return *o.Timeout 48 }