net.nemerosa.ontrack.model.structure.TemplateInstance Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-model Show documentation
Show all versions of ontrack-model Show documentation
Ontrack module: ontrack-model
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