github.com/containers/podman/v4@v4.9.4/pkg/bindings/generate/types_kube_options.go (about) 1 // Code generated by go generate; DO NOT EDIT. 2 package generate 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 *KubeOptions) 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 *KubeOptions) ToParams() (url.Values, error) { 17 return util.ToParams(o) 18 } 19 20 // WithPodmanOnly set field PodmanOnly to given value 21 func (o *KubeOptions) WithPodmanOnly(value bool) *KubeOptions { 22 o.PodmanOnly = &value 23 return o 24 } 25 26 // GetPodmanOnly returns value of field PodmanOnly 27 func (o *KubeOptions) GetPodmanOnly() bool { 28 if o.PodmanOnly == nil { 29 var z bool 30 return z 31 } 32 return *o.PodmanOnly 33 } 34 35 // WithService set field Service to given value 36 func (o *KubeOptions) WithService(value bool) *KubeOptions { 37 o.Service = &value 38 return o 39 } 40 41 // GetService returns value of field Service 42 func (o *KubeOptions) GetService() bool { 43 if o.Service == nil { 44 var z bool 45 return z 46 } 47 return *o.Service 48 } 49 50 // WithType set field Type to given value 51 func (o *KubeOptions) WithType(value string) *KubeOptions { 52 o.Type = &value 53 return o 54 } 55 56 // GetType returns value of field Type 57 func (o *KubeOptions) GetType() string { 58 if o.Type == nil { 59 var z string 60 return z 61 } 62 return *o.Type 63 } 64 65 // WithReplicas set field Replicas to given value 66 func (o *KubeOptions) WithReplicas(value int32) *KubeOptions { 67 o.Replicas = &value 68 return o 69 } 70 71 // GetReplicas returns value of field Replicas 72 func (o *KubeOptions) GetReplicas() int32 { 73 if o.Replicas == nil { 74 var z int32 75 return z 76 } 77 return *o.Replicas 78 } 79 80 // WithNoTrunc set field NoTrunc to given value 81 func (o *KubeOptions) WithNoTrunc(value bool) *KubeOptions { 82 o.NoTrunc = &value 83 return o 84 } 85 86 // GetNoTrunc returns value of field NoTrunc 87 func (o *KubeOptions) GetNoTrunc() bool { 88 if o.NoTrunc == nil { 89 var z bool 90 return z 91 } 92 return *o.NoTrunc 93 }