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 java.util.Objects;
20 public class IPAddress extends Identifiable {
22 private Status.Values status;
23 private String address;
25 public void setStatus(Status.Values status) {
29 public void setAddress(String address) {
30 this.address = address;
33 public Status.Values getStatus() {
37 public String getAddress() {
42 public boolean equals(Object o) {
46 if (o == null || getClass() != o.getClass()) {
49 IPAddress ipAddress = (IPAddress) o;
50 return Objects.equals(status, ipAddress.status) &&
51 Objects.equals(address, ipAddress.address);
55 public int hashCode() {
56 return Objects.hash(status, address);