2 * Copyright (C) 2018 Bell Canada.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.onap.ccsdk.sli.adaptors.netbox.model;
18 import com.google.gson.JsonElement;
19 import com.google.gson.JsonPrimitive;
20 import com.google.gson.annotations.SerializedName;
24 private Integer value;
27 public Integer getValue() {
31 public void setValue(final Integer value) {
35 public String getLabel() {
39 public void setLabel(final String label) {
43 public JsonElement toJson() {
44 return new JsonPrimitive(value);
51 RESERVED(2, "Reserved");
53 private final int value;
54 private final String label;
56 Values(final int value, final String label) {
61 public int getValue() {
65 public String getLabel() {
69 public Status getStatus() {
70 final Status status = new Status();
71 status.setValue(value);
72 status.setLabel(label);