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 io.swagger.annotations.ApiModel; |
| 28 | import io.swagger.annotations.ApiModelProperty; |
| 29 | import lombok.AllArgsConstructor; |
| 30 | import lombok.Getter; |
| 31 | import lombok.NoArgsConstructor; |
| 32 | import lombok.Setter; |
| 33 | |
| 34 | import 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 |
| 46 | public 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 | } |