EXTAPI-149 : Add resourceCustomizationUuid for E2E
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / serviceorder / model / consumer / ResourceModel.java
1 /**
2  * Copyright (c) 2018 Huawei
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5  * the License. You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10  * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11  * specific language governing permissions and limitations under the License.
12  */
13
14 package org.onap.nbi.apis.serviceorder.model.consumer;
15
16 import java.util.*;
17
18 public class ResourceModel {
19
20         private String resourceName;
21         
22         private String resourceInvariantUuid;
23         
24         private String resourceUuid;
25         
26         private String resourceCustomizationUuid;
27         
28         private ParametersModel parameters;
29
30
31         public ResourceModel (Map<String, Object> info) {
32                 setResourceName((String)info.get("name"));
33                 setResourceInvariantUuid((String)info.get("resourceInvariantUUID"));
34                 setResourceUuid((String)info.get("id"));
35                 setResourceCustomizationUuid((String)info.get("modelCustomizationId"));
36         }
37
38         public String getResourceName() {
39                 return resourceName;
40         }
41         
42         public void setResourceName(String resourceName) {
43                 this.resourceName = resourceName;
44         }
45         
46         public String getResourceInvariantUuid() {
47                 return resourceInvariantUuid;
48         }
49         
50         public void setResourceInvariantUuid(String resourceInvariantUuid) {
51                 this.resourceInvariantUuid = resourceInvariantUuid;
52         }
53         
54         public String getResourceUuid() {
55                 return resourceUuid;
56         }
57         
58         public void setResourceUuid(String resourceUuid) {
59                 this.resourceUuid = resourceUuid;
60         }
61         
62         public String getResourceCustomizationUuid() {
63                 return resourceCustomizationUuid;
64         }
65         
66         public void setResourceCustomizationUuid(String resourceCustomizationUuid) {
67                 this.resourceCustomizationUuid = resourceCustomizationUuid;
68         }
69         
70         public ParametersModel getParameters() {
71                 return parameters;
72         }
73         
74         public void setParameters(ParametersModel parameters) {
75                 this.parameters = parameters;
76         }
77
78         @Override
79         public String toString() {
80                 return "ResourceModel{" +
81                     "resourceName='" + resourceName + '\'' +
82                     ", resourceInvariantUuid='" + resourceInvariantUuid + '\'' +
83                     ", resourceUuid='" + resourceUuid + '\'' +
84                     ", resourceCustomizationUuid='" + resourceCustomizationUuid + '\'' +
85                     ", parameters='" + parameters + '}';
86          }
87 }