net.nemerosa.ontrack.model.structure.TemplateInstance Maven / Gradle / Ivy
package net.nemerosa.ontrack.model.structure;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* Definition of a branch instance
*/
@Data
public class TemplateInstance {
/**
* Template definition (branch ID)
*/
private final ID templateDefinitionId;
/**
* List of parameter values
*/
private final List parameterValues;
@JsonIgnore
public Map getParameterMap() {
return parameterValues.stream().collect(Collectors.toMap(
TemplateParameterValue::getName,
TemplateParameterValue::getValue
));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy