Code changes in SO api-handler for RAN Slice
[so.git] / common / src / main / java / org / onap / so / moi / Attributes.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 package org.onap.so.moi;
21
22 import com.fasterxml.jackson.annotation.*;
23 import java.util.HashMap;
24 import java.util.List;
25 import java.util.Map;
26
27 @JsonInclude(JsonInclude.Include.NON_NULL)
28 @JsonPropertyOrder({"sliceProfileList"})
29 public class Attributes {
30
31     @JsonProperty("sliceProfileList")
32     private List<SliceProfile> sliceProfileList = null;
33
34     @JsonProperty("operationalState")
35     private String operationalState;
36
37     @JsonProperty("administrativeState")
38     private String administrativeState;
39
40     @JsonIgnore
41     private Map<String, Object> additionalProperties = new HashMap<String, Object>();
42
43     @JsonProperty("sliceProfileList")
44     public List<SliceProfile> getSliceProfileList() {
45         return sliceProfileList;
46     }
47
48     @JsonProperty("sliceProfileList")
49     public void setSliceProfileList(List<SliceProfile> sliceProfileList) {
50         this.sliceProfileList = sliceProfileList;
51     }
52
53     @JsonAnyGetter
54     public Map<String, Object> getAdditionalProperties() {
55         return this.additionalProperties;
56     }
57
58     @JsonAnySetter
59     public void setAdditionalProperty(String name, Object value) {
60         this.additionalProperties.put(name, value);
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 }