Format Java code with respect to ONAP Code Style
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / servicecatalog / model / ServiceSpecification.java
1 /**
2  *     Copyright (c) 2019 Amdocs
3  *
4  *     Licensed under the Apache License, Version 2.0 (the "License");
5  *     you may not use this file except in compliance with the License.
6  *     You may obtain a copy of the License at
7  *
8  *         http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *     Unless required by applicable law or agreed to in writing, software
11  *     distributed under the License is distributed on an "AS IS" BASIS,
12  *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *     See the License for the specific language governing permissions and
14  *     limitations under the License.
15  */
16
17 package org.onap.nbi.apis.servicecatalog.model;
18
19 import com.fasterxml.jackson.annotation.JsonProperty;
20 import io.swagger.annotations.ApiModel;
21 import io.swagger.annotations.ApiModelProperty;
22 import org.onap.nbi.commons.Resource;
23 import org.springframework.data.annotation.Id;
24
25 import java.util.Map;
26
27 @ApiModel
28 public class ServiceSpecification implements Resource {
29
30     @Id
31     @JsonProperty("id")
32     private String id = null;
33
34     @JsonProperty("catalogResponse")
35     private Map catalogResponse = null;
36
37     @Override
38     @JsonProperty("id")
39     @ApiModelProperty(required = true, value = "uuid for the service specification")
40     public String getId() {
41         return id;
42     }
43
44     public void setId(String id) {
45         this.id = id;
46     }
47
48     @JsonProperty("catalogResponse")
49     @ApiModelProperty(required = true, value = "catalogResponse for the corresponding service uuid")
50     public Map getCatalogResponse() {
51         return catalogResponse;
52     }
53
54     public void setCatalogResponse(Map catalogResponse) {
55         this.catalogResponse = catalogResponse;
56     }
57 }