| 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 ... |
| 13 | func NewReportingDescriptorReference() *ReportingDescriptorReference { |
| 14 | return &ReportingDescriptorReference{} |
| 15 | } |
| 16 | |
| 17 | // WithId ... |
| 18 | func (r *ReportingDescriptorReference) WithId(id string) *ReportingDescriptorReference { |
| 19 | r.Id = &id |
| 20 | return r |
| 21 | } |
| 22 | |
| 23 | // WithIndex ... |
| 24 | func (r *ReportingDescriptorReference) WithIndex(index int) *ReportingDescriptorReference { |
| 25 | i := uint(index) |
| 26 | r.Index = &i |
| 27 | return r |
| 28 | } |
| 29 | |
| 30 | // WithGuid ... |
| 31 | func (r *ReportingDescriptorReference) WithGuid(guid string) *ReportingDescriptorReference { |
| 32 | r.Guid = &guid |
| 33 | return r |
| 34 | } |
| 35 | |
| 36 | // WithToolComponentReference ... |
| 37 | func (r *ReportingDescriptorReference) WithToolComponentReference(toolComponentRef *ToolComponentReference) *ReportingDescriptorReference { |
| 38 | r.ToolComponent = toolComponentRef |
| 39 | return r |
| 40 | } |