/* * Copyright 2011 Future Systems, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.krakenapps.dom.model; import org.krakenapps.api.FieldOption; public class NetworkInterface { private int index; private int type; @FieldOption(nullable = false, length = 255) private String description; @FieldOption(length = 20) private String macAddress; @FieldOption(length = 20) private String ipAddress; private Long bandwidth; private int isUp; public int getIndex() { return index; } public void setIndex(int index) { this.index = index; } public int getType() { return type; } public void setType(int type) { this.type = type; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getMacAddress() { return macAddress; } public void setMacAddress(String macAddress) { this.macAddress = macAddress; } public String getIpAddress() { return ipAddress; } public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } public Long getBandwidth() { return bandwidth; } public void setBandwidth(Long bandwidth) { this.bandwidth = bandwidth; } public int getIsUp() { return isUp; } public void setIsUp(int isUp) { this.isUp = isUp; } }