summaryrefslogtreecommitdiff
path: root/pkg/bindings/images/types_diff_options.go
blob: 658358e951b34d9db74ccf2a6ed62b72ccbac536 (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
// Code generated by go generate; DO NOT EDIT.
package images

import (
	"net/url"

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

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

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

// WithParent set field Parent to given value
func (o *DiffOptions) WithParent(value string) *DiffOptions {
	o.Parent = &value
	return o
}

// GetParent returns value of field Parent
func (o *DiffOptions) GetParent() string {
	if o.Parent == nil {
		var z string
		return z
	}
	return *o.Parent
}

// WithDiffType set field DiffType to given value
func (o *DiffOptions) WithDiffType(value string) *DiffOptions {
	o.DiffType = &value
	return o
}

// GetDiffType returns value of field DiffType
func (o *DiffOptions) GetDiffType() string {
	if o.DiffType == nil {
		var z string
		return z
	}
	return *o.DiffType
}