[SDC-29] rebase continue work to align source
[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
34         public ComponentInstanceReqDetails() {
35                 super();
36                 // TODO Auto-generated constructor stub
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         }
48
49         public ComponentInstanceReqDetails(String resourceUid, String description, String posX, String posY, String name) {
50                 super();
51                 this.componentUid = resourceUid;
52                 this.description = description;
53                 this.posX = posX;
54                 this.posY = posY;
55                 // this.name = "myResourceInstance";
56                 this.name = name;
57         }
58
59         public ComponentInstanceReqDetails(String resourceUid, String description, String posX, String posY) {
60                 super();
61                 this.componentUid = resourceUid;
62                 this.description = description;
63                 this.posX = posX;
64                 this.posY = posY;
65         }
66
67         public String getComponentUid() {
68                 return componentUid;
69         }
70
71         public void setComponentUid(String resourceUid) {
72                 this.componentUid = resourceUid;
73         }
74
75         public String getDescription() {
76                 return description;
77         }
78
79         public void setDescription(String description) {
80                 this.description = description;
81         }
82
83         public String getPosX() {
84                 return posX;
85         }
86
87         public void setPosX(String posX) {
88                 this.posX = posX;
89         }
90
91         public String getPosY() {
92                 return posY;
93         }
94
95         public void setPosY(String posY) {
96                 this.posY = posY;
97         }
98
99         public String getName() {
100                 return name;
101         }
102
103         public void setName(String name) {
104                 this.name = name;
105         }
106
107         public String getUniqueId() {
108                 return uniqueId;
109         }
110
111         public void setUniqueId(String uniqueId) {
112                 this.uniqueId = uniqueId;
113         }
114
115         @Override
116         public String toString() {
117                 return "ResourceInstanceReqDetails [resourceUid=" + componentUid + ", description=" + description + ", posX="
118                                 + posX + ", posY=" + posY + ", name=" + name + ", uniqueId=" + uniqueId + "]";
119         }
120
121 }