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 org.openecomp.sdc.be.model.ComponentInstance;
25 public class ComponentInstanceReqDetails {
34 public ComponentInstanceReqDetails() {
36 // TODO Auto-generated constructor stub
39 public ComponentInstanceReqDetails(ComponentInstance componentInstance) {
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();
49 public ComponentInstanceReqDetails(String resourceUid, String description, String posX, String posY, String name) {
51 this.componentUid = resourceUid;
52 this.description = description;
55 // this.name = "myResourceInstance";
59 public ComponentInstanceReqDetails(String resourceUid, String description, String posX, String posY) {
61 this.componentUid = resourceUid;
62 this.description = description;
67 public String getComponentUid() {
71 public void setComponentUid(String resourceUid) {
72 this.componentUid = resourceUid;
75 public String getDescription() {
79 public void setDescription(String description) {
80 this.description = description;
83 public String getPosX() {
87 public void setPosX(String posX) {
91 public String getPosY() {
95 public void setPosY(String posY) {
99 public String getName() {
103 public void setName(String name) {
107 public String getUniqueId() {
111 public void setUniqueId(String uniqueId) {
112 this.uniqueId = uniqueId;
116 public String toString() {
117 return "ResourceInstanceReqDetails [resourceUid=" + componentUid + ", description=" + description + ", posX="
118 + posX + ", posY=" + posY + ", name=" + name + ", uniqueId=" + uniqueId + "]";