Debian Codegraph @

v2/sarif/external_property_file_reference.go

raw
1 package sarif
2
3 // ExternalPropertyFileReference ...
4 type ExternalPropertyFileReference struct {
5 GUID *string `json:"guid,omitempty"`
6 ItemCount *int `json:"itemCount,omitempty"`
7 Location *ArtifactLocation `json:"location,omitempty"`
8 PropertyBag
9
10 }
11
12 // NewExternalPropertyFileReference creates a new ExternalPropertyFileReference and returns a pointer to it
13 func NewExternalPropertyFileReference() *ExternalPropertyFileReference {
14 return &ExternalPropertyFileReference{}
15 }
16
17 // WithGUID sets the GUID
18 func (externalPropertyFileReferences *ExternalPropertyFileReference) WithGUID(guid string) *ExternalPropertyFileReference {
19 externalPropertyFileReferences.GUID = &guid
20 return externalPropertyFileReferences
21 }
22
23 // WithItemCount sets the ItemCount
24 func (externalPropertyFileReferences *ExternalPropertyFileReference) WithItemCount(itemCount int) *ExternalPropertyFileReference {
25 externalPropertyFileReferences.ItemCount = &itemCount
26 return externalPropertyFileReferences
27 }