-
Notifications
You must be signed in to change notification settings - Fork 2
/
tag_mutator_gen.go
48 lines (39 loc) · 1.09 KB
/
tag_mutator_gen.go
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
package openapi
// This file was automatically generated.
// DO NOT EDIT MANUALLY. All changes will be lost
import "log"
var _ = log.Printf
// TagMutator is used to build an instance of Tag. The user must
// call `Do()` after providing all the necessary information to
// the new instance of Tag with new values
type TagMutator struct {
proxy *tag
target *tag
}
// Do finalizes the matuation process for Tag and returns the result
func (b *TagMutator) Do() error {
*b.target = *b.proxy
return nil
}
// MutateTag creates a new mutator object for Tag
func MutateTag(v Tag) *TagMutator {
return &TagMutator{
target: v.(*tag),
proxy: v.Clone().(*tag),
}
}
// Name sets the Name field for object Tag.
func (b *TagMutator) Name(v string) *TagMutator {
b.proxy.name = v
return b
}
// Description sets the Description field for object Tag.
func (b *TagMutator) Description(v string) *TagMutator {
b.proxy.description = v
return b
}
// ExternalDocs sets the ExternalDocs field for object Tag.
func (b *TagMutator) ExternalDocs(v ExternalDocumentation) *TagMutator {
b.proxy.externalDocs = v
return b
}