X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Fbabel%2Fservice%2Fdata%2FBabelArtifact.java;h=eb458acbb148175605ca8804fde9c5c8265e3d68;hb=HEAD;hp=986aed965c3a8987beeeec3299fd63525be1f180;hpb=1433a67a9e3dcad20d0dda8edcaad9403320f4f9;p=aai%2Fbabel.git diff --git a/src/main/java/org/onap/aai/babel/service/data/BabelArtifact.java b/src/main/java/org/onap/aai/babel/service/data/BabelArtifact.java index 986aed9..eb458ac 100644 --- a/src/main/java/org/onap/aai/babel/service/data/BabelArtifact.java +++ b/src/main/java/org/onap/aai/babel/service/data/BabelArtifact.java @@ -2,8 +2,8 @@ * ============LICENSE_START======================================================= * org.onap.aai * ================================================================================ - * Copyright © 2017 AT&T Intellectual Property. All rights reserved. - * Copyright © 2017 European Software Marketing Ltd. + * Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved. + * Copyright (c) 2017-2019 European Software Marketing Ltd. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,47 +17,25 @@ * See the License for the specific language governing permissions and * limitations under the License. * ============LICENSE_END========================================================= - * - * ECOMP is a trademark and service mark of AT&T Intellectual Property. - */ -package org.onap.aai.babel.service.data; - -/** - * Bean representing the return artifacts of the Babel microservice. */ -public class BabelArtifact { - String name; - String type; - byte[] payload; - - public BabelArtifact(String name, String type, byte[] payload) { - super(); - this.name = name; - this.type = type; - this.payload = payload; - } - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } +package org.onap.aai.babel.service.data; - public String getType() { - return type; - } +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; - public void setType(String type) { - this.type = type; - } +/** Bean representing the return artifacts of the Babel microservice. */ +@Data +@AllArgsConstructor +@NoArgsConstructor +public class BabelArtifact { - public byte[] getPayload() { - return payload; + public enum ArtifactType { + MODEL, VNFCATALOG; } - public void setPayload(byte[] payload) { - this.payload = payload; - } + String name; + ArtifactType type; + String payload; }