2 * Copyright (c) 2010-2022 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.unifi.internal.api.dto;
15 import com.google.gson.annotations.Expose;
18 * The {@link UnfiPortOverride} represents the data model of UniFi port override.
20 * @author Hilbrand Bouwkamp - Initial contribution
22 public class UnfiPortOverride {
28 private String portconfId;
31 private String poeMode;
33 public UnfiPortOverride() {
34 // Constructor for GSON.
37 public UnfiPortOverride(final int portIdx, final String portconfId, final String poeMode) {
38 this.portIdx = portIdx;
39 this.portconfId = portconfId;
40 this.poeMode = poeMode;
43 public int getPortIdx() {
47 public String getPortconfId() {
51 public String getPoeMode() {
55 public void setPortIdx(final int portIdx) {
56 this.portIdx = portIdx;
59 public void setPortconfId(final String portconfId) {
60 this.portconfId = portconfId;
63 public void setPoeMode(final String poeMode) {
64 this.poeMode = poeMode;
68 public String toString() {
69 return String.format("UnfiPortOverride{portIx: '%d', portconfId: '%s', poeMode: '%s'}", portIdx, portconfId,