All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.nemerosa.ontrack.model.structure.TemplateInstance Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
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