diff options
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-api/src/main/java')
-rw-r--r-- | openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-api/src/main/java/org/openecomp/core/enrichment/types/ComponentMonitoringUploadInfo.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-api/src/main/java/org/openecomp/core/enrichment/types/ComponentMonitoringUploadInfo.java b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-api/src/main/java/org/openecomp/core/enrichment/types/ComponentMonitoringUploadInfo.java index bd14e5a1e5..90399247c5 100644 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-api/src/main/java/org/openecomp/core/enrichment/types/ComponentMonitoringUploadInfo.java +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-api/src/main/java/org/openecomp/core/enrichment/types/ComponentMonitoringUploadInfo.java @@ -17,6 +17,7 @@ * limitations under the License. * ============LICENSE_END========================================================= */ + package org.openecomp.core.enrichment.types; import static org.openecomp.core.enrichment.types.MonitoringUploadType.SNMP_POLL; @@ -25,10 +26,12 @@ import static org.openecomp.core.enrichment.types.MonitoringUploadType.VES_EVENT import java.util.HashMap; import java.util.Map; +import lombok.NoArgsConstructor; +@NoArgsConstructor public class ComponentMonitoringUploadInfo { - private Map<MonitoringUploadType, MonitoringArtifactInfo> infoByType = new HashMap<>(); + private final Map<MonitoringUploadType, MonitoringArtifactInfo> infoByType = new HashMap<>(); public MonitoringArtifactInfo getSnmpTrap() { return infoByType.get(SNMP_TRAP); @@ -42,7 +45,8 @@ public class ComponentMonitoringUploadInfo { return infoByType.get(VES_EVENTS); } - public void setMonitoringArtifactFile(MonitoringUploadType type, MonitoringArtifactInfo monitoringArtifactInfo) { + public void setMonitoringArtifactFile(final MonitoringUploadType type, + final MonitoringArtifactInfo monitoringArtifactInfo) { infoByType.put(type, monitoringArtifactInfo); } } |