aboutsummaryrefslogtreecommitdiffstats
path: root/documentapi/src/main/java/com/yahoo/documentapi/messagebus/systemstate/rule/Argument.java
blob: 17f6deae7827c19d2bab8b3e6e759d889e8f531d (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 Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.documentapi.messagebus.systemstate.rule;

/**
 * @author Simon Thoresen Hult
 */
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;
    }
}