// Copyright Epic Games, Inc. All Rights Reserved.
using System.Collections.Generic;
namespace EpicGames.BuildGraph
{
///
/// Defines an artifact produced by the build
///
public class BgArtifactDef
{
///
/// Name of this artifact
///
public string Name { get; }
///
/// Type of this artifact
///
public string? Type { get; }
///
/// Description for the artifact
///
public string? Description { get; }
///
/// Base path for files included in the artifact. Will be detected from the files specified if not set.
///
public string? BasePath { get; }
///
/// Node that produces the artifact. Either this or TagName should be set.
///
public string? NodeName { get; }
///
/// Tag to use for the artifact. Uses the artifact name by default.
///
public string? TagName { get; }
///
/// Keys that can be used to find the artifact
///
public IReadOnlyList Keys { get; }
///
/// Metadata for the artifact
///
public IReadOnlyList Metadata { get; }
///
/// Constructor
///
/// Name of the artifact
/// Type of the artifact
/// Description for the artifact
/// Base path for files included in the artifact
/// Name of the node producing this artifact
/// Name of the tag producing this artifact
/// Keys that can be used to find the artifact
/// Metadata for the artifact
public BgArtifactDef(string name, string? type, string? description, string? basePath, string? nodeName, string? tagName, IReadOnlyList keys, IReadOnlyList metadata)
{
Name = name;
Type = type;
Description = description;
BasePath = basePath;
NodeName = nodeName;
TagName = tagName;
Keys = keys;
Metadata = metadata;
}
///
/// Get the name of this badge
///
/// The name of this badge
public override string ToString()
{
return Name;
}
}
}