com.emc.storageos.model.usergroup.UserGroupUpdateParam Maven / Gradle / Ivy
/*
* 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;
/**
* PUT API payload for user groups update.
*/
@XmlRootElement(name = "update_user_group")
public class UserGroupUpdateParam extends UserGroupBaseParam {
private Set _addAttributes;
@XmlElementWrapper(name = "add_attributes")
@XmlElement(required = true, name = "attribute")
@JsonProperty("add_attributes")
public Set getAddAttributes() {
if (_addAttributes == null) {
_addAttributes = new HashSet<>();
}
return _addAttributes;
}
public void setAddAttributes(Set _addAttributes) {
this._addAttributes = _addAttributes;
}
private Set _removeAttributes;
@XmlElementWrapper(name = "remove_attributes")
@XmlElement(required = true, name = "key")
@JsonProperty("remove_attributes")
public Set getRemoveAttributes() {
if (_removeAttributes == null) {
_removeAttributes = new HashSet<>();
}
return _removeAttributes;
}
public void setRemoveAttributes(Set _removeAttributes) {
this._removeAttributes = _removeAttributes;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy