aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/model/RequestReferencesContainer.java
blob: 9c12a52a6bcd0d287768818d5a671d525e8ac1aa (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package org.onap.vid.model;

import com.fasterxml.jackson.annotation.*;
import com.google.common.base.MoreObjects;
import org.onap.vid.domain.mso.RequestReferences;

import java.util.HashMap;
import java.util.Map;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class RequestReferencesContainer {
    private final RequestReferences requestReferences;

    @JsonIgnore
    private Map<String, Object> additionalProperties = new HashMap<String, Object>();

    @JsonAnyGetter
    public Map<String, Object> getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    public RequestReferencesContainer(@JsonProperty("requestReferences") RequestReferences requestReferences) {
        this.requestReferences = requestReferences;
    }

    public RequestReferences getRequestReferences() {
        return requestReferences;
    }

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("requestReferences", requestReferences)
                .add("additionalProperties", additionalProperties)
                .toString();
    }
}