* ============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.
* 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;
}