blob: 5ad32f6993eec71c88d7f456585e64e595dd2c0b [file] [log] [blame]
Aharoni, Pavel (pa0916)0a8080c2018-11-22 15:45:19 +02001/*-
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
23package org.onap.osam.common.dto;
24
25import com.fasterxml.jackson.annotation.JsonInclude;
26import com.fasterxml.jackson.annotation.JsonRootName;
27import lombok.AllArgsConstructor;
28import lombok.Getter;
29import lombok.NoArgsConstructor;
30import lombok.Setter;
31//import org.onap.osam.model.dao.ActivityState;
32//import org.onap.osam.model.dao.AdminState;
33
34import 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)
45public 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}