aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiNodeQueryResponse.java
blob: 18bf16191251f3e651c8ad9bade3d62a64ae2bf5 (plain)
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
package org.onap.vid.aai.model;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class AaiNodeQueryResponse {

    public static class ResultData {

        public final ResourceType resourceType;
        public final String resourceLink;

        public ResultData(@JsonProperty("resource-type") ResourceType resourceType,
                          @JsonProperty("resource-link") String resourceLink) {
            this.resourceType = resourceType;
            this.resourceLink = resourceLink;
        }
    }

    public final List<ResultData> resultData;

    public AaiNodeQueryResponse(@JsonProperty("result-data") List<ResultData> resultData) {
        this.resultData = resultData;
    }
}