// Code generated by go generate; DO NOT EDIT.
package containers

import (
	"net/url"

	"github.com/containers/podman/v4/pkg/bindings/internal/util"
)

// Changed returns true if named field has been set
func (o *RestartOptions) Changed(fieldName string) bool {
	return util.Changed(o, fieldName)
}

// ToParams formats struct fields to be passed to API service
func (o *RestartOptions) ToParams() (url.Values, error) {
	return util.ToParams(o)
}

// WithTimeout set field Timeout to given value
func (o *RestartOptions) WithTimeout(value int) *RestartOptions {
	o.Timeout = &value
	return o
}

// GetTimeout returns value of field Timeout
func (o *RestartOptions) GetTimeout() int {
	if o.Timeout == nil {
		var z int
		return z
	}
	return *o.Timeout
}
