Aharoni, Pavel (pa0916) | 0a8080c | 2018-11-22 15:45:19 +0200 | [diff] [blame^] | 1 | /*- |
| 2 | * ============LICENSE_START======================================================= |
| 3 | * OSAM Core |
| 4 | * ================================================================================ |
| 5 | * Copyright (C) 2018 Netsia |
| 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 | |
| 21 | |
| 22 | |
| 23 | package org.onap.osam.common.dto; |
| 24 | |
| 25 | import com.fasterxml.jackson.annotation.JsonInclude; |
| 26 | import com.fasterxml.jackson.annotation.JsonRootName; |
| 27 | import lombok.AllArgsConstructor; |
| 28 | import lombok.Getter; |
| 29 | import lombok.NoArgsConstructor; |
| 30 | import lombok.Setter; |
| 31 | //import org.onap.osam.model.dao.ActivityState; |
| 32 | //import org.onap.osam.model.dao.AdminState; |
| 33 | |
| 34 | import java.util.List; |
| 35 | |
| 36 | /** |
| 37 | * Created by cemturker on 03.10.2018. |
| 38 | */ |
| 39 | @Getter |
| 40 | @Setter |
| 41 | @NoArgsConstructor |
| 42 | @AllArgsConstructor |
| 43 | @JsonRootName("OLTPort") |
| 44 | @JsonInclude(JsonInclude.Include.NON_NULL) |
| 45 | public class OLTPortDTO { |
| 46 | private Long id; |
| 47 | private Integer portNumber; |
| 48 | private /*ActivityState*/ String portAuthState; |
| 49 | private /*AdminState*/ String adminState; |
| 50 | private List<ONTDTO> ontDevices; |
| 51 | |
| 52 | @Override |
| 53 | public String toString() { |
| 54 | final StringBuilder sb = new StringBuilder("OLTPortDTO{"); |
| 55 | sb.append("id=").append(id); |
| 56 | sb.append(", portNumber=").append(portNumber); |
| 57 | sb.append(", portAuthState=").append(portAuthState); |
| 58 | sb.append(", adminState=").append(adminState); |
| 59 | sb.append(", ontDevices=").append(ontDevices); |
| 60 | sb.append('}'); |
| 61 | return sb.toString(); |
| 62 | } |
| 63 | } |