2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
21 package org.openecomp.mso.adapters.vdu;
\r
23 public class VduArtifact {
\r
25 // Enumerate the types of artifacts permitted. This may need to be a variable string
\r
26 // value if arbitrary (cloud-specific) artifacts may be attached to VDUs in ASDC.
\r
27 public enum ArtifactType {
\r
28 MAIN_TEMPLATE, NESTED_TEMPLATE, CONFIG_FILE, SCRIPT_FILE, TEXT_FILE, ENVIRONMENT
\r
31 private String name;
\r
32 private byte[] content;
\r
33 private ArtifactType type;
\r
35 // Default constructor
\r
36 public VduArtifact() {}
\r
38 // Fully specified constructor
\r
39 public VduArtifact (String name, byte[] content, ArtifactType type) {
\r
41 this.content = content;
\r
45 public String getName() {
\r
48 public void setName (String name) {
\r
51 public byte[] getContent() {
\r
54 public void setContent(byte[] content) {
\r
55 this.content = content;
\r
57 public ArtifactType getType() {
\r
60 public void setType(ArtifactType type) {
\r