package sarif // LogicalLocation ... type LogicalLocation struct { // https://docs.oasis-open.org/sarif/sarif/v2.1.0/csprd01/sarif-v2.1.0-csprd01.html#_Ref493404505 PropertyBag Index *uint `json:"index,omitempty"` Name *string `json:"name,omitempty"` FullyQualifiedName *string `json:"fullyQualifiedName,omitempty"` DecoratedName *string `json:"decoratedName,omitempty"` Kind *string `json:"kind,omitempty"` ParentIndex *uint `json:"parentIndex,omitempty"` } // NewLogicalLocation ... func NewLogicalLocation() *LogicalLocation { return &LogicalLocation{} } // WithIndex ... func (l *LogicalLocation) WithIndex(index int) *LogicalLocation { i := uint(index) l.Index = &i return l } // WithName ... func (l *LogicalLocation) WithName(name string) *LogicalLocation { l.Name = &name return l } // WithFullyQualifiedName ... func (l *LogicalLocation) WithFullyQualifiedName(fullyQualifiedName string) *LogicalLocation { l.FullyQualifiedName = &fullyQualifiedName return l } // WithDecoratedName ... func (l *LogicalLocation) WithDecoratedName(decoratedName string) *LogicalLocation { l.DecoratedName = &decoratedName return l } // WithKind ... func (l *LogicalLocation) WithKind(kind string) *LogicalLocation { l.Kind = &kind return l } // WithParentIndex ... func (l *LogicalLocation) WithParentIndex(parentIndex int) *LogicalLocation { i := uint(parentIndex) l.ParentIndex = &i return l }