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 {
35 public ComponentInstanceReqDetails() {
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();
47 this.originType = componentInstance.getOriginType().name();
50 public ComponentInstanceReqDetails(String resourceUid, String description, String posX, String posY, String name, String originType) {
52 this.componentUid = resourceUid;
53 this.description = description;
56 // this.name = "myResourceInstance";
58 this.originType = originType;
61 public ComponentInstanceReqDetails(String resourceUid, String description, String posX, String posY) {
63 this.componentUid = resourceUid;
64 this.description = description;
69 public String getComponentUid() {
73 public void setComponentUid(String resourceUid) {
74 this.componentUid = resourceUid;
77 public String getDescription() {
81 public void setDescription(String description) {
82 this.description = description;
85 public String getPosX() {
89 public void setPosX(String posX) {
93 public String getPosY() {
97 public void setPosY(String posY) {
101 public String getName() {
105 public void setName(String name) {
109 public String getUniqueId() {
113 public void setUniqueId(String uniqueId) {
114 this.uniqueId = uniqueId;
117 public String getOriginType() {
121 public void setOriginType(String originType) {
122 this.originType = originType;
126 public String toString() {
127 return "ResourceInstanceReqDetails [resourceUid=" + componentUid + ", description=" + description + ", posX="
128 + posX + ", posY=" + posY + ", name=" + name + ", uniqueId=" + uniqueId + "]";