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

com.boozallen.aissemble.pipeline.invocation.service.ExecutionProfile Maven / Gradle / Ivy

There is a newer version: 1.10.0-rc2
Show newest version
package com.boozallen.aissemble.pipeline.invocation.service;

/*-
 * #%L
 * aiSSEMBLE::Extensions::Pipeline Invocation Service
 * %%
 * Copyright (C) 2021 Booz Allen
 * %%
 * This software package is licensed under the Booz Allen Public License. All Rights Reserved.
 * #L%
 */

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * Specification of execution profiles, representing layering schemes for values files
 */
public enum ExecutionProfile {
    DEV("base", "dev"),
    CI("base", "dev", "ci"),
    PROD("base", "dev", "ci", "prod");

    private final List layers;

    /**
     * Private enum constructor
     * @param classifiers Ordered stream of zero to many [0,*) value classifiers to be included in this execution profile
     */
    ExecutionProfile(String... classifiers) {
        this.layers = Arrays.stream(classifiers).collect(Collectors.toList());
    }

    /**
     * @return Layering scheme for a given profile
     */
    public List getLayers() {
        return List.copyOf(layers);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy