re base code
[sdc.git] / test-apis-ci / src / main / java / org / openecomp / sdc / ci / tests / datatypes / ComponentInstanceReqDetails.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
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 package org.openecomp.sdc.ci.tests.datatypes;
22
23 import org.openecomp.sdc.be.model.ComponentInstance;
24
25 public class ComponentInstanceReqDetails {
26
27         String componentUid;
28         String description;
29         String posX;
30         String posY;
31         String name;
32         String uniqueId;
33         String originType;
34
35         public ComponentInstanceReqDetails() {
36                 super();
37         }
38
39         public ComponentInstanceReqDetails(ComponentInstance componentInstance) {
40                 super();
41                 this.setUniqueId(componentInstance.getUniqueId());
42                 this.description = componentInstance.getDescription();
43                 this.posX = componentInstance.getPosX();
44                 this.posY = componentInstance.getPosY();
45                 // this.name = "myResourceInstance";
46                 this.name = componentInstance.getName();
47                 this.originType = componentInstance.getOriginType().name();
48         }
49
50         public ComponentInstanceReqDetails(String resourceUid, String description, String posX, String posY, String name, String originType) {
51                 super();
52                 this.componentUid = resourceUid;
53                 this.description = description;
54                 this.posX = posX;
55                 this.posY = posY;
56                 // this.name = "myResourceInstance";
57                 this.name = name;
58                 this.originType = originType;
59         }
60
61         public ComponentInstanceReqDetails(String resourceUid, String description, String posX, String posY) {
62                 super();
63                 this.componentUid = resourceUid;
64                 this.description = description;
65                 this.posX = posX;
66                 this.posY = posY;
67         }
68
69         public String getComponentUid() {
70                 return componentUid;
71         }
72
73         public void setComponentUid(String resourceUid) {
74                 this.componentUid = resourceUid;
75         }
76
77         public String getDescription() {
78                 return description;
79         }
80
81         public void setDescription(String description) {
82                 this.description = description;
83         }
84
85         public String getPosX() {
86                 return posX;
87         }
88
89         public void setPosX(String posX) {
90                 this.posX = posX;
91         }
92
93         public String getPosY() {
94                 return posY;
95         }
96
97         public void setPosY(String posY) {
98                 this.posY = posY;
99         }
100
101         public String getName() {
102                 return name;
103         }
104
105         public void setName(String name) {
106                 this.name = name;
107         }
108
109         public String getUniqueId() {
110                 return uniqueId;
111         }
112
113         public void setUniqueId(String uniqueId) {
114                 this.uniqueId = uniqueId;
115         }
116
117         public String getOriginType() {
118                 return originType;
119         }
120
121         public void setOriginType(String originType) {
122                 this.originType = originType;
123         }
124
125         @Override
126         public String toString() {
127                 return "ResourceInstanceReqDetails [resourceUid=" + componentUid + ", description=" + description + ", posX="
128                                 + posX + ", posY=" + posY + ", name=" + name + ", uniqueId=" + uniqueId + "]";
129         }
130
131 }