summaryrefslogtreecommitdiffstats
path: root/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/configserver/noderepository/bindings/UpdateNodeAttributesResponse.java
blob: 80c90e8311fca50f2c2b1f3e3b200b8b1ab087ee (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
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.node.admin.configserver.noderepository.bindings;

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

/**
 * Automagically handles (de)serialization based on 1:1 message fields and identifier names.
 * Deserializes JSON strings on the form:
 * <pre>
 *   {
 *     "message": "Updated host.com"
 *   }
 * </pre>
 *
 * @author bakksjo
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class UpdateNodeAttributesResponse {
    @JsonProperty("message")
    public String message;
    @JsonProperty("error-code")
    public String errorCode;
}