2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.ci.tests.datatypes;
23 import java.util.List;
25 import org.openecomp.sdc.be.model.ComponentInstance;
27 public class ComponentInstanceReqDetails {
36 List<String> directives;
38 public ComponentInstanceReqDetails() {
42 public ComponentInstanceReqDetails(ComponentInstance componentInstance) {
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();
53 public ComponentInstanceReqDetails(String resourceUid, String description, String posX, String posY, String name, String originType) {
55 this.componentUid = resourceUid;
56 this.description = description;
59 // this.name = "myResourceInstance";
61 this.originType = originType;
64 public ComponentInstanceReqDetails(String resourceUid, String description, String posX, String posY) {
66 this.componentUid = resourceUid;
67 this.description = description;
72 public String getComponentUid() {
76 public void setComponentUid(String resourceUid) {
77 this.componentUid = resourceUid;
80 public String getDescription() {
84 public void setDescription(String description) {
85 this.description = description;
88 public String getPosX() {
92 public void setPosX(String posX) {
96 public String getPosY() {
100 public void setPosY(String posY) {
104 public String getName() {
108 public void setName(String name) {
112 public String getUniqueId() {
116 public void setUniqueId(String uniqueId) {
117 this.uniqueId = uniqueId;
120 public String getOriginType() {
124 public void setOriginType(String originType) {
125 this.originType = originType;
128 public List<String> getDirectives() {
132 public void setDirectives(List<String> directives) {
133 this.directives = directives;
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 +