blob: 10738653129af4ae27c4d3cd83756a4cb92adde6 (
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
28
|
// Copyright 2016 Yahoo Inc. 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
* @since 5.39
*/
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; }
}
|