Debian Codegraph @

v2/sarif/reporting_descriptor_reference.go

raw
1 package sarif
2
3 // ReportingDescriptorReference ...
4 type ReportingDescriptorReference struct {
5 PropertyBag
6 Id *string `json:"id,omitempty"`
7 Index *uint `json:"index,omitempty"`
8 Guid *string `json:"guid,omitempty"`
9 ToolComponent *ToolComponentReference `json:"toolComponent,omitempty"`
10 }
11
12 // NewReportingDescriptorReference creates a new ReportingDescriptorReference and returns a pointer to it
13 func NewReportingDescriptorReference() *ReportingDescriptorReference {
14 return &ReportingDescriptorReference{}
15 }
16
17 // WithId sets the Id
18 func (r *ReportingDescriptorReference) WithId(id string) *ReportingDescriptorReference {
19 r.Id = &id
20 return r
21 }
22
23 // WithIndex sets the Index
24 func (r *ReportingDescriptorReference) WithIndex(index int) *ReportingDescriptorReference {
25 i := uint(index)
26 r.Index = &i
27 return r
28 }
29
30 // WithGuid sets the Guid
31 func (r *ReportingDescriptorReference) WithGuid(guid string) *ReportingDescriptorReference {
32 r.Guid = &guid
33 return r
34 }
35
36 // WithToolComponentReference sets the ToolComponentReference
37 func (r *ReportingDescriptorReference) WithToolComponentReference(toolComponentRef *ToolComponentReference) *ReportingDescriptorReference {
38 r.ToolComponent = toolComponentRef
39 return r
40 }