c88cc65b70d9d120bc51fbd5c85c32f4cf3a93bc
[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 package org.onap.nbi.apis.servicecatalog.model;
17
18 import com.fasterxml.jackson.annotation.JsonProperty;
19 import io.swagger.annotations.ApiModel;
20 import io.swagger.annotations.ApiModelProperty;
21 import org.onap.nbi.commons.Resource;
22 import org.springframework.data.annotation.Id;
23
24 import java.util.Map;
25
26 @ApiModel
27 public class ServiceSpecification implements Resource {
28
29     @Id
30     @JsonProperty("id")
31     private String id = null;
32
33     @JsonProperty("catalogResponse")
34     private Map catalogResponse = null;
35
36     @Override
37     @JsonProperty("id")
38     @ApiModelProperty(required = true, value = "uuid for the service specification")
39     public String getId() {
40         return id;
41     }
42
43     public void setId(String id) {
44         this.id = id;
45     }
46
47     @JsonProperty("catalogResponse")
48     @ApiModelProperty(required = true, value = "catalogResponse for the corresponding service uuid")
49     public Map getCatalogResponse() {
50         return catalogResponse;
51     }
52
53     public void setCatalogResponse(Map catalogResponse) {
54         this.catalogResponse = catalogResponse;
55     }
56 }