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.Data; |
| 31 | import lombok.NoArgsConstructor; |
| 32 | |
| 33 | import java.util.List; |
| 34 | |
| 35 | @Data |
| 36 | @AllArgsConstructor |
| 37 | @NoArgsConstructor |
| 38 | @JsonRootName("Chassis") |
| 39 | @JsonInclude(JsonInclude.Include.NON_NULL) |
| 40 | @ApiModel |
| 41 | public class ChassisDTO { |
| 42 | @ApiModelProperty(hidden = true) |
| 43 | private Long id; |
| 44 | @ApiModelProperty(required = true, value="CLLI of the chassis") |
| 45 | private String clli; |
| 46 | @ApiModelProperty(required = true, value="PNF ID of the POD on top of which this chassis is registered") |
| 47 | private String pnfId; |
| 48 | @ApiModelProperty(required = true, value="Shelf number for this chassis") |
| 49 | private int shelf; |
| 50 | @ApiModelProperty(required = true, value="Rack number for this chassis") |
| 51 | private int rack; |
| 52 | @ApiModelProperty(hidden = true) |
| 53 | private List<OLTChassisDTO> olts; |
| 54 | } |