2f34a4a9c8284fc9b9f5891cb903e1ba609bd408
[vfc/nfvo/catalog.git] /
1 /**
2  * Copyright 2016 ZTE Corporation.
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.openo.commontosca.catalog.model.entity;
17
18 import lombok.AllArgsConstructor;
19 import lombok.Data;
20 import lombok.NoArgsConstructor;
21
22 import com.fasterxml.jackson.annotation.JsonIgnore;
23
24
25 @Data
26 @NoArgsConstructor
27 @AllArgsConstructor
28 public class SubstitutionMapping {
29   @JsonIgnore
30   private String serviceTemplateId;
31   private String nodeType;
32   private CapReqMapping[] requirements;
33   private CapReqMapping[] capabilities;
34
35   /**
36    * substitution mapping.
37    * @param serviceTemplateId service template id
38    * @param nodeType node type
39    */
40   public SubstitutionMapping(String serviceTemplateId, String nodeType) {
41     super();
42     this.serviceTemplateId = serviceTemplateId;
43     this.nodeType = nodeType;
44   }
45 }