diff options
Diffstat (limited to 'openecomp-be')
-rw-r--r-- | openecomp-be/api/openecomp-sdc-rest-webapp/action-library-rest/action-library-rest-types/src/main/java/org/openecomp/sdcrests/action/types/ListResponseWrapper.java | 54 |
1 files changed, 16 insertions, 38 deletions
diff --git a/openecomp-be/api/openecomp-sdc-rest-webapp/action-library-rest/action-library-rest-types/src/main/java/org/openecomp/sdcrests/action/types/ListResponseWrapper.java b/openecomp-be/api/openecomp-sdc-rest-webapp/action-library-rest/action-library-rest-types/src/main/java/org/openecomp/sdcrests/action/types/ListResponseWrapper.java index 7d7a4b3106..f60a5cafa4 100644 --- a/openecomp-be/api/openecomp-sdc-rest-webapp/action-library-rest/action-library-rest-types/src/main/java/org/openecomp/sdcrests/action/types/ListResponseWrapper.java +++ b/openecomp-be/api/openecomp-sdc-rest-webapp/action-library-rest/action-library-rest-types/src/main/java/org/openecomp/sdcrests/action/types/ListResponseWrapper.java @@ -7,9 +7,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -20,51 +20,29 @@ package org.openecomp.sdcrests.action.types; -import org.openecomp.sdc.action.types.OpenEcompComponent; - import java.util.ArrayList; import java.util.List; +import lombok.Getter; +import lombok.Setter; +import org.openecomp.sdc.action.types.OpenEcompComponent; /** * Defines DTO used for creating Response with list of {@link ActionResponseDto } or list of {@link * openEcompComponent }. */ +@Getter +@Setter public class ListResponseWrapper { - List<ActionResponseDto> actionList; - List<OpenEcompComponent> componentList; - List<ActionResponseDto> versions; - - - public ListResponseWrapper() { - this.actionList = new ArrayList<>(); - } - - public List<ActionResponseDto> getVersions() { - return versions; - } - - public void setVersions(List<ActionResponseDto> versions) { - this.versions = versions; - } - - public List<ActionResponseDto> getActionList() { - return actionList; - } - - public void setActionList(List<ActionResponseDto> actionList) { - this.actionList = actionList; - } - - public List<OpenEcompComponent> getComponentList() { - return componentList; - } + List<ActionResponseDto> actionList; + List<OpenEcompComponent> componentList; + List<ActionResponseDto> versions; - public void setComponentList(List<OpenEcompComponent> componentList) { - this.componentList = componentList; - } + public ListResponseWrapper() { + this.actionList = new ArrayList<>(); + } - public void add(ActionResponseDto exception) { - this.getActionList().add(exception); - } + public void add(ActionResponseDto exception) { + this.actionList.add(exception); + } } |