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

com.emc.storageos.model.usergroup.UserGroupCreateParam Maven / Gradle / Ivy

There is a newer version: 3.5.0.0
Show newest version
/*
 * Copyright (c) 2015 EMC Corporation
 * All Rights Reserved
 */

package com.emc.storageos.model.usergroup;

import org.codehaus.jackson.annotate.JsonProperty;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.HashSet;
import java.util.Set;

/**
 * POST API payload for user groups creation.
 */
@XmlRootElement(name = "create_user_group")
public class UserGroupCreateParam extends UserGroupBaseParam {
    private Set _attributes;

    @XmlElementWrapper(name = "attributes")
    @XmlElement(required = true, name = "attribute")
    @JsonProperty("attributes")
    public Set getAttributes() {
        if (_attributes == null) {
            _attributes = new HashSet<>();
        }
        return _attributes;
    }

    public void setAttributes(Set _attributes) {
        this._attributes = _attributes;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy