Further changes for cnf-adpter in bpmn infra
[so.git] / adapters / mso-cnf-adapter / src / main / java / org / onap / so / adapters / cnf / model / InstanceResponse.java
1
2 /*-
3  * ============LICENSE_START=======================================================
4  * ONAP - SO
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
11  *
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  *
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=========================================================
20  */
21 package org.onap.so.adapters.cnf.model;
22
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;
28
29 @JsonInclude(JsonInclude.Include.NON_NULL)
30 @JsonPropertyOrder({"id", "request", "namespace", "release-name", "resources"})
31 @JsonIgnoreProperties(value = "true")
32 public class InstanceResponse {
33
34     @JsonProperty("id")
35     private String id;
36
37     @JsonProperty("request")
38     private MulticloudInstanceRequest request;
39
40     @JsonProperty("namespace")
41     private String namespace;
42
43     @JsonProperty("release-name")
44     private String releaseName;
45
46     @JsonProperty("resources")
47     private List<Resource> resources;
48
49     @JsonProperty("id")
50     public String getId() {
51         return id;
52     }
53
54     @JsonProperty("id")
55     public void setId(String id) {
56         this.id = id;
57     }
58
59     @JsonProperty("request")
60     public MulticloudInstanceRequest getRequest() {
61         return request;
62     }
63
64     @JsonProperty("request")
65     public void setRequest(MulticloudInstanceRequest request) {
66         this.request = request;
67     }
68
69     @JsonProperty("namespace")
70     public String getNamespace() {
71         return namespace;
72     }
73
74     @JsonProperty("namespace")
75     public void setNamespace(String namespace) {
76         this.namespace = namespace;
77     }
78
79     @JsonProperty("resources")
80     public List<Resource> getResources() {
81         return resources;
82     }
83
84     @JsonProperty("resources")
85     public void setResources(List<Resource> resources) {
86         this.resources = resources;
87     }
88
89     @JsonProperty("release-name")
90     public String getReleaseName() {
91         return releaseName;
92     }
93
94     @JsonProperty("release-name")
95     public void setReleaseName(String releaseName) {
96         this.releaseName = releaseName;
97     }
98
99 }