All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.muratkaragozgil.netmera4j.model.device.UserAndProfileAttributeMap Maven / Gradle / Ivy

There is a newer version: 1.6
Show newest version
package com.github.muratkaragozgil.netmera4j.model.device;

import com.github.muratkaragozgil.netmera4j.util.NotEmpty;
import lombok.*;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Murat Karagözgil
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class UserAndProfileAttributeMap {
    @NotEmpty
    private String extId;
    @NotEmpty
    private Map profile;

    public void addProfileAttribute(String key, Object value) {
        if (profile == null) {
            profile = new HashMap<>();
        }
        profile.put(key, value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy