blob: 74bad6a5efecbfeed14d0051a643b7e4929b5a54 [file] [log] [blame]
Aharoni, Pavel (pa0916)ca3cb012018-10-22 15:29:57 +03001/*-
2 * ============LICENSE_START=======================================================
3 * OSAM
4 * ================================================================================
5 * Copyright (C) 2018 AT&T
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
19 */
20
21
22
23package org.onap.osam.aai;
24
25import com.fasterxml.jackson.annotation.JsonAnyGetter;
26import com.fasterxml.jackson.annotation.JsonAnySetter;
27import com.fasterxml.jackson.annotation.JsonIgnore;
28import com.fasterxml.jackson.annotation.JsonInclude;
29import com.fasterxml.jackson.annotation.JsonProperty;
30import com.fasterxml.jackson.annotation.JsonPropertyOrder;
31import com.google.common.base.MoreObjects;
32import org.onap.osam.aai.model.VnfResult;
33
34import java.util.HashMap;
35import java.util.List;
36import java.util.Map;
37
38@JsonInclude(JsonInclude.Include.NON_NULL)
39@JsonPropertyOrder({
40 "results"
41})
42public class AaiGetVnfResponse {
43 @JsonProperty("results")
44 public List<VnfResult> results = null;
45 @JsonIgnore
46 private Map<String, Object> additionalProperties = new HashMap<>();
47
48 @JsonAnyGetter
49 public Map<String, Object> getAdditionalProperties() {
50 return this.additionalProperties;
51 }
52
53 @JsonAnySetter
54 public void setAdditionalProperty(String name, Object value) {
55 this.additionalProperties.put(name, value);
56 }
57
58 @Override
59 public String toString() {
60 return MoreObjects.toStringHelper(this)
61 .add("results", results)
62 .add("additionalProperties", additionalProperties)
63 .toString();
64 }
65}