public List<DeprecatedElement> deprecatedElements() {
        return deprecatedElements;
    }
Returns the deprecated elements used when creating this
config-model-api/src/main/java/com/yahoo/config/application/api/DeploymentSpec.java