Code changes in SO api-handler for RAN Slice
[so.git] / common / src / main / java / org / onap / so / moi / GETMoiResponse.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2023 DTAG Intellectual Property. All rights reserved.
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 package org.onap.so.moi;
22
23 import com.fasterxml.jackson.annotation.JsonIgnore;
24 import com.fasterxml.jackson.annotation.JsonInclude;
25 import com.fasterxml.jackson.annotation.JsonProperty;
26 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
27 import com.fasterxml.jackson.annotation.JsonAnySetter;
28 import com.fasterxml.jackson.annotation.JsonAnyGetter;
29 import org.springframework.beans.factory.annotation.Autowired;
30 import java.util.HashMap;
31 import java.util.Map;
32
33 @JsonInclude(JsonInclude.Include.NON_NULL)
34 @JsonPropertyOrder({"id", "operationalState", "administrativeState", "attributes"})
35 public class GETMoiResponse {
36
37     @JsonProperty("id")
38     private String id = null;
39
40     @JsonProperty("operationalState")
41     private String operationalState = null;
42
43     @JsonProperty("administrativeState")
44     private String administrativeState = null;
45
46     @Autowired
47     @JsonProperty("attributes")
48     private Attributes attributes;
49
50     @JsonIgnore
51     private Map<String, Object> additionalProperties = new HashMap<String, Object>();
52
53     @JsonProperty("id")
54     public String getId() {
55         return id;
56     }
57
58     @JsonProperty("id")
59     public void setId(String id) {
60         this.id = id;
61     }
62
63     @JsonProperty("operationalState")
64     public String getOperationalState() {
65         return operationalState;
66     }
67
68     @JsonProperty("operationalState")
69     public void setOperationalState(String operationalState) {
70         this.operationalState = operationalState;
71     }
72
73     @JsonProperty("administrativeState")
74     public String getAdministrativeState() {
75         return administrativeState;
76     }
77
78     @JsonProperty("administrativeState")
79     public void setAdministrativeState(String administrativeState) {
80         this.administrativeState = administrativeState;
81     }
82
83     @JsonProperty("attributes")
84     public Attributes getAttributes() {
85         return attributes;
86     }
87
88     @JsonProperty("attributes")
89     public void setAttributes(Attributes attributes) {
90         this.attributes = attributes;
91     }
92
93     @JsonAnyGetter
94     public Map<String, Object> getAdditionalProperties() {
95         return additionalProperties;
96     }
97
98     @JsonAnySetter
99     public void setAdditionalProperties(Map<String, Object> additionalProperties) {
100         this.additionalProperties = additionalProperties;
101     }
102 }