Debian Codegraph @

sarif/physical_location.go

raw symbols SCIP
1 package sarif
2
3 // PhysicalLocation ...
4 type PhysicalLocation struct {
5 PropertyBag
6 ArtifactLocation *ArtifactLocation `json:"artifactLocation,omitempty"`
7 Region *Region `json:"region,omitempty"`
8 ContextRegion *Region `json:"contextRegion,omitempty"`
9 Address *Address `json:"address,omitempty"`
10 }
11
12 // NewPhysicalLocation ...
13 func NewPhysicalLocation() *PhysicalLocation {
14 return &PhysicalLocation{}
15 }
16
17 // WithArtifactLocation ...
18 func (pl *PhysicalLocation) WithArtifactLocation(artifactLocation *ArtifactLocation) *PhysicalLocation {
19 pl.ArtifactLocation = artifactLocation
20 return pl
21 }
22
23 // WithRegion ...
24 func (pl *PhysicalLocation) WithRegion(region *Region) *PhysicalLocation {
25 pl.Region = region
26 return pl
27 }
28 // WithContextRegion ...
29 func (pl *PhysicalLocation) WithContextRegion(contextRegion *Region) *PhysicalLocation {
30 pl.ContextRegion = contextRegion
31 return pl
32 }
33
34 // WithAddress ...
35 func (pl *PhysicalLocation) WithAddress(address *Address) *PhysicalLocation {
36 pl.Address = address
37 return pl
38 }