b2768501d8be81dccd7e6e195326a693106e4c75
[sdc.git] /
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 java.util.List;
24
25 import org.openecomp.sdc.be.model.ComponentInstance;
26
27 public class ComponentInstanceReqDetails {
28
29         String componentUid;
30         String description;
31         String posX;
32         String posY;
33         String name;
34         String uniqueId;
35         String originType;
36     List<String> directives;
37
38         public ComponentInstanceReqDetails() {
39                 super();
40         }
41
42         public ComponentInstanceReqDetails(ComponentInstance componentInstance) {
43                 super();
44                 this.setUniqueId(componentInstance.getUniqueId());
45                 this.description = componentInstance.getDescription();
46                 this.posX = componentInstance.getPosX();
47                 this.posY = componentInstance.getPosY();
48                 // this.name = "myResourceInstance";
49                 this.name = componentInstance.getName();
50                 this.originType = componentInstance.getOriginType().name();
51         }
52
53         public ComponentInstanceReqDetails(String resourceUid, String description, String posX, String posY, String name, String originType) {
54                 super();
55                 this.componentUid = resourceUid;
56                 this.description = description;
57                 this.posX = posX;
58                 this.posY = posY;
59                 // this.name = "myResourceInstance";
60                 this.name = name;
61                 this.originType = originType;
62         }
63
64         public ComponentInstanceReqDetails(String resourceUid, String description, String posX, String posY) {
65                 super();
66                 this.componentUid = resourceUid;
67                 this.description = description;
68                 this.posX = posX;
69                 this.posY = posY;
70         }
71
72         public String getComponentUid() {
73                 return componentUid;
74         }
75
76         public void setComponentUid(String resourceUid) {
77                 this.componentUid = resourceUid;
78         }
79
80         public String getDescription() {
81                 return description;
82         }
83
84         public void setDescription(String description) {
85                 this.description = description;
86         }
87
88         public String getPosX() {
89                 return posX;
90         }
91
92         public void setPosX(String posX) {
93                 this.posX = posX;
94         }
95
96         public String getPosY() {
97                 return posY;
98         }
99
100         public void setPosY(String posY) {
101                 this.posY = posY;
102         }
103
104         public String getName() {
105                 return name;
106         }
107
108         public void setName(String name) {
109                 this.name = name;
110         }
111
112         public String getUniqueId() {
113                 return uniqueId;
114         }
115
116         public void setUniqueId(String uniqueId) {
117                 this.uniqueId = uniqueId;
118         }
119
120         public String getOriginType() {
121                 return originType;
122         }
123
124         public void setOriginType(String originType) {
125                 this.originType = originType;
126         }
127
128     public List<String> getDirectives() {
129         return directives;
130     }
131
132     public void setDirectives(List<String> directives) {
133         this.directives = directives;
134     }
135
136     @Override
137     public String toString() {
138         return "ComponentInstanceReqDetails{" +
139                 "componentUid='" + componentUid + '\'' +
140                 ", description='" + description + '\'' +
141                 ", posX='" + posX + '\'' +
142                 ", posY='" + posY + '\'' +
143                 ", name='" + name + '\'' +
144                 ", uniqueId='" + uniqueId + '\'' +
145                 ", originType='" + originType + '\'' +
146                 ", directives=" + directives +
147                 '}';
148     }
149 }