Initial OpenECOMP SDC commit
[sdc.git] / asdc-tests / src / main / java / org / openecomp / sdc / ci / tests / datatypes / ResourceDetailedAssetStructure.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 java.util.List;
24
25 public class ResourceDetailedAssetStructure extends ResourceAssetStructure {
26
27         private String lastUpdaterFullName;
28         private String toscaResourceName;
29         private List<ResourceInstanceAssetStructure> resources;
30         private List<ArtifactAssetStructure> artifacts;
31
32         public ResourceDetailedAssetStructure() {
33                 super();
34         }
35
36         public ResourceDetailedAssetStructure(String lastUpdaterFullName, String toscaResourceName,
37                         List<ResourceInstanceAssetStructure> resources, List<ArtifactAssetStructure> artifacts) {
38                 super();
39                 this.lastUpdaterFullName = lastUpdaterFullName;
40                 this.toscaResourceName = toscaResourceName;
41                 this.resources = resources;
42                 this.artifacts = artifacts;
43         }
44
45         public String getLastUpdaterFullName() {
46                 return lastUpdaterFullName;
47         }
48
49         public void setLastUpdaterFullName(String lastUpdaterFullName) {
50                 this.lastUpdaterFullName = lastUpdaterFullName;
51         }
52
53         public String getToscaResourceName() {
54                 return toscaResourceName;
55         }
56
57         public void setToscaResourceName(String toscaResourceName) {
58                 this.toscaResourceName = toscaResourceName;
59         }
60
61         public List<ResourceInstanceAssetStructure> getResources() {
62                 return resources;
63         }
64
65         public void setResources(List<ResourceInstanceAssetStructure> resources) {
66                 this.resources = resources;
67         }
68
69         public List<ArtifactAssetStructure> getArtifacts() {
70                 return artifacts;
71         }
72
73         public void setArtifacts(List<ArtifactAssetStructure> artifacts) {
74                 this.artifacts = artifacts;
75         }
76
77         @Override
78         public String toString() {
79                 return "ResourceDetailedAssetStructure [lastUpdaterFullName=" + lastUpdaterFullName + ", toscaResourceName="
80                                 + toscaResourceName + ", resources=" + resources + ", artifacts=" + artifacts + ", toString()="
81                                 + super.toString() + ", getSubCategory()=" + getSubCategory() + ", getResourceType()="
82                                 + getResourceType() + ", getUuid()=" + getUuid() + ", getInvariantUUID()=" + getInvariantUUID()
83                                 + ", getName()=" + getName() + ", getVersion()=" + getVersion() + ", getToscaModelURL()="
84                                 + getToscaModelURL() + ", getCategory()=" + getCategory() + ", getLifecycleState()="
85                                 + getLifecycleState() + ", getLastUpdaterUserId()=" + getLastUpdaterUserId() + ", getClass()="
86                                 + getClass() + ", hashCode()=" + hashCode() + "]";
87         }
88
89 }