3 * ============LICENSE_START=======================================================
5 * ================================================================================
6 * Copyright (C) 2020 Huawei Technologies Co., Ltd. All rights reserved.
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
21 package org.onap.so.adapters.cnf.model;
23 import java.util.List;
24 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
25 import com.fasterxml.jackson.annotation.JsonInclude;
26 import com.fasterxml.jackson.annotation.JsonProperty;
27 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
29 @JsonInclude(JsonInclude.Include.NON_NULL)
30 @JsonPropertyOrder({"id", "request", "namespace", "release-name", "resources"})
31 @JsonIgnoreProperties(value = "true")
32 public class InstanceResponse {
37 @JsonProperty("request")
38 private MulticloudInstanceRequest request;
40 @JsonProperty("namespace")
41 private String namespace;
43 @JsonProperty("release-name")
44 private String releaseName;
46 @JsonProperty("resources")
47 private List<Resource> resources;
50 public String getId() {
55 public void setId(String id) {
59 @JsonProperty("request")
60 public MulticloudInstanceRequest getRequest() {
64 @JsonProperty("request")
65 public void setRequest(MulticloudInstanceRequest request) {
66 this.request = request;
69 @JsonProperty("namespace")
70 public String getNamespace() {
74 @JsonProperty("namespace")
75 public void setNamespace(String namespace) {
76 this.namespace = namespace;
79 @JsonProperty("resources")
80 public List<Resource> getResources() {
84 @JsonProperty("resources")
85 public void setResources(List<Resource> resources) {
86 this.resources = resources;
89 @JsonProperty("release-name")
90 public String getReleaseName() {
94 @JsonProperty("release-name")
95 public void setReleaseName(String releaseName) {
96 this.releaseName = releaseName;