Debian Codegraph @

sarif/tool_component_reference.go

raw symbols SCIP
1 package sarif
2
3 // ToolComponentReference ...
4 type ToolComponentReference struct {
5 PropertyBag
6 Name *string `json:"name"`
7 Index *uint `json:"index"`
8 Guid *string `json:"guid"`
9 }
10
11 // NewToolComponentReference ...
12 func NewToolComponentReference() *ToolComponentReference {
13 return &ToolComponentReference{}
14 }
15
16 // WithName ...
17 func (t *ToolComponentReference) WithName(name string) *ToolComponentReference {
18 t.Name = &name
19 return t
20 }
21
22 // WithIndex ...
23 func (t *ToolComponentReference) WithIndex(index int) *ToolComponentReference {
24 i := uint(index)
25 t.Index = &i
26 return t
27 }
28
29 // WithGuid ...
30 func (t *ToolComponentReference) WithGuid(guid string) *ToolComponentReference {
31 t.Guid = &guid
32 return t
33 }