aboutsummaryrefslogtreecommitdiffstats
path: root/documentapi/src/main/java/com/yahoo/documentapi/messagebus/systemstate/rule/Argument.java
blob: e22abcd9934859401d7da52b1b954b9fc4c055e5 (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
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.documentapi.messagebus.systemstate.rule;

/**
 * @author <a href="mailto:simon@yahoo-inc.com">Simon Thoresen</a>
 */
public class Argument {

    private final String name;
    private final String value;

    /**
     * Constructs a new argument.
     *
     * @param name  The name of this argument.
     * @param value The value of this argument.
     */
    public Argument(String name, String value) {
        this.name = name;
        this.value = value;
    }

    /**
     * Returns the name of this argument.
     *
     * @return The name.
     */
    public String getName() {
        return name;
    }

    /**
     * Returns the value of this argument.
     *
     * @return The value.
     */
    public String getValue() {
        return value;
    }
}