aboutsummaryrefslogtreecommitdiffstats
path: root/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/hostinfo/Vtag.java
blob: 94dbbcb053d6e11de1f03e99f17aa1541d9a1f6d (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
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.core.hostinfo;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Class for handling version.
 *
 * @author Haakon Dybdahl
 */
public class Vtag {

    private final String version;

    @JsonCreator
    public Vtag(@JsonProperty("version") String version) {
        this.version = version;
    }

    public String getVersionOrNull() {
        return version;
    }

}