org.ovirt.engine.sdk4.internal.containers.GroupContainer Maven / Gradle / Ivy
/*
Copyright (c) 2015 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.ovirt.engine.sdk4.internal.containers;
import java.lang.String;
import java.util.List;
import org.ovirt.engine.sdk4.types.Domain;
import org.ovirt.engine.sdk4.types.Group;
import org.ovirt.engine.sdk4.types.Permission;
import org.ovirt.engine.sdk4.types.Role;
import org.ovirt.engine.sdk4.types.Tag;
public class GroupContainer extends IdentifiedContainer implements Group {
private String domainEntryId;
private String namespace;
private Domain domain;
private List permissions;
private List roles;
private List tags;
public String domainEntryId() {
return domainEntryId;
}
public void domainEntryId(String newDomainEntryId) {
domainEntryId = newDomainEntryId;
}
public boolean domainEntryIdPresent() {
return domainEntryId != null;
}
public String namespace() {
return namespace;
}
public void namespace(String newNamespace) {
namespace = newNamespace;
}
public boolean namespacePresent() {
return namespace != null;
}
public Domain domain() {
return domain;
}
public void domain(Domain newDomain) {
domain = newDomain;
}
public boolean domainPresent() {
return domain != null;
}
public List permissions() {
return makeUnmodifiableList(permissions);
}
public void permissions(List newPermissions) {
permissions = makeArrayList(newPermissions);
}
public boolean permissionsPresent() {
return permissions != null && !permissions.isEmpty();
}
public List roles() {
return makeUnmodifiableList(roles);
}
public void roles(List newRoles) {
roles = makeArrayList(newRoles);
}
public boolean rolesPresent() {
return roles != null && !roles.isEmpty();
}
public List tags() {
return makeUnmodifiableList(tags);
}
public void tags(List newTags) {
tags = makeArrayList(newTags);
}
public boolean tagsPresent() {
return tags != null && !tags.isEmpty();
}
}