aboutsummaryrefslogtreecommitdiffstats
path: root/config-model-api/src/main/java/com/yahoo/config/model/api/ModelCreateResult.java
blob: 2d40554a3f261836919dfdef33e5060dd0a50fe0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.model.api;

import java.util.List;

/**
 * The result after creating and validating a Model.
 *
 * @author geirst
 */
public class ModelCreateResult {

    private final Model model;
    private final List<ConfigChangeAction> configChangeActions;

    public ModelCreateResult(Model model, List<ConfigChangeAction> configChangeActions) {
        this.model = model;
        this.configChangeActions = configChangeActions;
    }

    /** The model these changes apply to */
    public Model getModel() { return model; }

    /** Returns the actions that needs to be done to successfully start using the new model */
    public List<ConfigChangeAction> getConfigChangeActions() { return configChangeActions; }

}