2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 - 2019 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.onap.vid.asdc.beans;
23 import java.util.Collection;
25 * The Class SubResource.
27 public class SubResource {
29 /** The resource instance name. */
30 private String resourceInstanceName;
32 /** The resource name. */
33 private String resourceName;
35 /** The resource invariant UUID. */
36 private String resourceInvariantUUID;
38 /** The resource version. */
39 private String resourceVersion;
41 /** The resource type. */
42 private String resourceType;
44 /** The resource UUID. */
45 private String resourceUUID;
48 private Collection<Artifact> artifacts;
51 * Gets the resource instance name.
53 * @return the resource instance name
55 public String getResourceInstanceName() {
56 return resourceInstanceName;
60 * Gets the resource name.
62 * @return the resource name
64 public String getResourceName() {
69 * Gets the resource invariant UUID.
71 * @return the resource invariant UUID
73 public String getResourceInvariantUUID() {
74 return resourceInvariantUUID;
78 * Gets the resource version.
80 * @return the resource version
82 public String getResourceVersion() {
83 return resourceVersion;
87 * Gets the resoucre type.
89 * @return the resoucre type
91 public String getResoucreType() {
96 * Gets the resource UUID.
98 * @return the resource UUID
100 public String getResourceUUID() {
105 * Gets the artifacts.
107 * @return the artifacts
109 public Collection<Artifact> getArtifacts() {
114 * Sets the resource instance name.
116 * @param resourceInstanceName the new resource instance name
118 public void setResourceInstanceName(String resourceInstanceName) {
119 this.resourceInstanceName = resourceInstanceName;
123 * Sets the resource name.
125 * @param resourceName the new resource name
127 public void setResourceName(String resourceName) {
128 this.resourceName = resourceName;
132 * Sets the resource invariant UUID.
134 * @param resourceInvariantUUID the new resource invariant UUID
136 public void setResourceInvariantUUID(String resourceInvariantUUID) {
137 this.resourceInvariantUUID = resourceInvariantUUID;
141 * Sets the resource version.
143 * @param resourceVersion the new resource version
145 public void setResourceVersion(String resourceVersion) {
146 this.resourceVersion = resourceVersion;
150 * Sets the resoucre type.
152 * @param resourceType the new resoucre type
154 public void setResoucreType(String resourceType) {
155 this.resourceType = resourceType;
159 * Sets the resource UUID.
161 * @param resourceUUID the new resource UUID
163 public void setResourceUUID(String resourceUUID) {
164 this.resourceUUID = resourceUUID;
168 * Sets the artifacts.
170 * @param artifacts the new artifacts
172 public void setArtifacts(Collection<Artifact> artifacts) {
173 this.artifacts = artifacts;