blob: 6041d582cbe2ddf387f011ce391c5e9a5b01548d [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 io.swagger.annotations.ApiModel;
28import io.swagger.annotations.ApiModelProperty;
29import lombok.AllArgsConstructor;
30import lombok.Getter;
31import lombok.NoArgsConstructor;
32import lombok.Setter;
33
34import java.util.List;
35
36/**
37 * Created by cemturker on 01.10.2018.
38 */
39@Getter
40@Setter
41@NoArgsConstructor
42@AllArgsConstructor
43@JsonRootName("AccessPod")
44@JsonInclude(JsonInclude.Include.NON_NULL)
45@ApiModel
46public class AccessPodDTO {
47 @ApiModelProperty(hidden = true)
48 private Long id;
49 @ApiModelProperty(required = true)
50 private String pnfId;
51 @ApiModelProperty(required = true, value="IP address of Abstract OLT for this POD")
52 private String ip;
53 @ApiModelProperty(required = true, value="GRPC Port of Abstract OLT for this POD")
54 private String port;
55 @ApiModelProperty(required = true, value="IP address of a SEBA POD")
56 private String coreIp;
57 @ApiModelProperty(required = true, value="Port of a SEBA POD")
58 private String corePort;
59 @ApiModelProperty(required = true, value="XOS Username of a SEBA POD")
60 private String username;
61 @ApiModelProperty(required = true, value="XOS Password of a SEBA POD")
62 private String password;
63 @ApiModelProperty(hidden = true)
64 private List<ChassisDTO> chassises;
65
66 @Override
67 public String toString() {
68 final StringBuilder sb = new StringBuilder("AccessPodDTO{");
69 sb.append("id=").append(id);
70 sb.append(", pnfId='").append(pnfId).append('\'');
71 sb.append(", ip='").append(ip).append('\'');
72 sb.append(", port='").append(port).append('\'');
73 sb.append(", coreIp='").append(coreIp).append('\'');
74 sb.append(", corePort='").append(corePort).append('\'');
75 sb.append(", username='").append(username).append('\'');
76 sb.append(", password='").append(password).append('\'');
77 sb.append(", chassises=").append(chassises);
78 sb.append('}');
79 return sb.toString();
80 }
81}