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

com.emc.storageos.model.auth.RoleAssignmentChanges Maven / Gradle / Ivy

There is a newer version: 3.5.0.0
Show newest version
/*
 * Copyright (c) 2013 EMC Corporation
 * All Rights Reserved
 */
package com.emc.storageos.model.auth;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "role_assignment_change")
public class RoleAssignmentChanges {
    /**
     * List of role assignment entries elements to be added.
     * 
     * @valid none
     */
    private List add;

    /**
     * List of role assignment entries elements to be removed.
     * 
     * @valid none
     */
    private List remove;

    public RoleAssignmentChanges() {
    }

    public RoleAssignmentChanges(List add, List remove) {
        this.add = add;
        this.remove = remove;
    }

    @XmlElement(name = "add")
    public List getAdd() {
        if (add == null) {
            add = new ArrayList();
        }
        return add;
    }

    public void setAdd(List add) {
        this.add = add;
    }

    @XmlElement(name = "remove")
    public List getRemove() {
        if (remove == null) {
            remove = new ArrayList();
        }
        return remove;
    }

    public void setRemove(List remove) {
        this.remove = remove;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();

        builder.append("ADD=");
        builder.append(getAdd());

        builder.append(", REMOVE=");
        builder.append(getRemove());

        return builder.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy