com.softlayer.api.service.user.permission.Group Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of softlayer-api-client Show documentation
Show all versions of softlayer-api-client Show documentation
API client for accessing the SoftLayer API
package com.softlayer.api.service.user.permission;
import com.softlayer.api.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Account;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.user.permission.Action;
import com.softlayer.api.service.user.permission.Role;
import com.softlayer.api.service.user.permission.group.Type;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.concurrent.Future;
/**
* @see SoftLayer_User_Permission_Group
*/
@ApiType("SoftLayer_User_Permission_Group")
public class Group extends Entity {
@ApiProperty
protected Account account;
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
@ApiProperty
protected List actions;
public List getActions() {
if (actions == null) {
actions = new ArrayList();
}
return actions;
}
@ApiProperty
protected List roles;
public List getRoles() {
if (roles == null) {
roles = new ArrayList();
}
return roles;
}
/**
* The type of the permission group.
*/
@ApiProperty
protected Type type;
public Type getType() {
return type;
}
public void setType(Type type) {
this.type = type;
}
/**
* A permission groups associated [[SoftLayer_Account|customer account]] id.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long accountId;
public Long getAccountId() {
return accountId;
}
public void setAccountId(Long accountId) {
accountIdSpecified = true;
this.accountId = accountId;
}
protected boolean accountIdSpecified;
public boolean isAccountIdSpecified() {
return accountIdSpecified;
}
public void unsetAccountId() {
accountId = null;
accountIdSpecified = false;
}
/**
* The date the permission group record was created.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected GregorianCalendar createDate;
public GregorianCalendar getCreateDate() {
return createDate;
}
public void setCreateDate(GregorianCalendar createDate) {
createDateSpecified = true;
this.createDate = createDate;
}
protected boolean createDateSpecified;
public boolean isCreateDateSpecified() {
return createDateSpecified;
}
public void unsetCreateDate() {
createDate = null;
createDateSpecified = false;
}
/**
* The description of the permission group.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String description;
public String getDescription() {
return description;
}
public void setDescription(String description) {
descriptionSpecified = true;
this.description = description;
}
protected boolean descriptionSpecified;
public boolean isDescriptionSpecified() {
return descriptionSpecified;
}
public void unsetDescription() {
description = null;
descriptionSpecified = false;
}
/**
* The date the temporary group will be destroyed.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected GregorianCalendar expirationDate;
public GregorianCalendar getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(GregorianCalendar expirationDate) {
expirationDateSpecified = true;
this.expirationDate = expirationDate;
}
protected boolean expirationDateSpecified;
public boolean isExpirationDateSpecified() {
return expirationDateSpecified;
}
public void unsetExpirationDate() {
expirationDate = null;
expirationDateSpecified = false;
}
/**
* A permission groups internal identifying number.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long id;
public Long getId() {
return id;
}
public void setId(Long id) {
idSpecified = true;
this.id = id;
}
protected boolean idSpecified;
public boolean isIdSpecified() {
return idSpecified;
}
public void unsetId() {
id = null;
idSpecified = false;
}
/**
* The date the permission group record was last modified.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected GregorianCalendar modifyDate;
public GregorianCalendar getModifyDate() {
return modifyDate;
}
public void setModifyDate(GregorianCalendar modifyDate) {
modifyDateSpecified = true;
this.modifyDate = modifyDate;
}
protected boolean modifyDateSpecified;
public boolean isModifyDateSpecified() {
return modifyDateSpecified;
}
public void unsetModifyDate() {
modifyDate = null;
modifyDateSpecified = false;
}
/**
* The name of the permission group.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String name;
public String getName() {
return name;
}
public void setName(String name) {
nameSpecified = true;
this.name = name;
}
protected boolean nameSpecified;
public boolean isNameSpecified() {
return nameSpecified;
}
public void unsetName() {
name = null;
nameSpecified = false;
}
/**
* The type of permission group.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long typeId;
public Long getTypeId() {
return typeId;
}
public void setTypeId(Long typeId) {
typeIdSpecified = true;
this.typeId = typeId;
}
protected boolean typeIdSpecified;
public boolean isTypeIdSpecified() {
return typeIdSpecified;
}
public void unsetTypeId() {
typeId = null;
typeIdSpecified = false;
}
/**
* A count of
*/
@ApiProperty
protected Long actionCount;
public Long getActionCount() {
return actionCount;
}
public void setActionCount(Long actionCount) {
this.actionCount = actionCount;
}
/**
* A count of
*/
@ApiProperty
protected Long roleCount;
public Long getRoleCount() {
return roleCount;
}
public void setRoleCount(Long roleCount) {
this.roleCount = roleCount;
}
public Service asService(ApiClient client) {
return service(client, id);
}
public static Service service(ApiClient client) {
return client.createService(Service.class, null);
}
public static Service service(ApiClient client, Long id) {
return client.createService(Service.class, id == null ? null : id.toString());
}
/**
* @see SoftLayer_User_Permission_Group
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_User_Permission_Group")
public static interface Service extends com.softlayer.api.Service {
public ServiceAsync asAsync();
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* @see SoftLayer_User_Permission_Group::addAction
*/
@ApiMethod(instanceRequired = true)
public Void addAction(Action action);
/**
* @see SoftLayer_User_Permission_Group::addBulkActions
*/
@ApiMethod(instanceRequired = true)
public Void addBulkActions(List actions);
/**
* @see SoftLayer_User_Permission_Group::addBulkResourceObjects
*/
@ApiMethod(instanceRequired = true)
public Boolean addBulkResourceObjects(List resourceObjects, String resourceTypeKeyName);
/**
* @see SoftLayer_User_Permission_Group::addResourceObject
*/
@ApiMethod(instanceRequired = true)
public Boolean addResourceObject(Entity resourceObject, String resourceTypeKeyName);
/**
* @see SoftLayer_User_Permission_Group::createObject
*/
@ApiMethod
public Group createObject(Group templateObject);
/**
* @see SoftLayer_User_Permission_Group::deleteObject
*/
@ApiMethod(instanceRequired = true)
public Boolean deleteObject();
/**
* @see SoftLayer_User_Permission_Group::editObject
*/
@ApiMethod(instanceRequired = true)
public Group editObject(Group templateObject);
/**
* @see SoftLayer_User_Permission_Group::getObject
*/
@ApiMethod(instanceRequired = true)
public Group getObject();
/**
* @see SoftLayer_User_Permission_Group::linkRole
*/
@ApiMethod(instanceRequired = true)
public Void linkRole(Role role);
/**
* @see SoftLayer_User_Permission_Group::removeAction
*/
@ApiMethod(instanceRequired = true)
public Void removeAction(Action action);
/**
* @see SoftLayer_User_Permission_Group::removeBulkActions
*/
@ApiMethod(instanceRequired = true)
public Void removeBulkActions(List actions);
/**
* @see SoftLayer_User_Permission_Group::removeBulkResourceObjects
*/
@ApiMethod(instanceRequired = true)
public Boolean removeBulkResourceObjects(List resourceObjects, String resourceTypeKeyName);
/**
* @see SoftLayer_User_Permission_Group::removeResourceObject
*/
@ApiMethod(instanceRequired = true)
public Boolean removeResourceObject(Entity resourceObject, String resourceTypeKeyName);
/**
* @see SoftLayer_User_Permission_Group::unlinkRole
*/
@ApiMethod(instanceRequired = true)
public Void unlinkRole(Role role);
/**
* @see SoftLayer_User_Permission_Group::getAccount
*/
@ApiMethod(instanceRequired = true)
public Account getAccount();
/**
* @see SoftLayer_User_Permission_Group::getActions
*/
@ApiMethod(instanceRequired = true)
public List getActions();
/**
* @see SoftLayer_User_Permission_Group::getRoles
*/
@ApiMethod(instanceRequired = true)
public List getRoles();
/**
* The type of the permission group.
*
* @see SoftLayer_User_Permission_Group::getType
*/
@ApiMethod(instanceRequired = true)
public Type getType();
}
public static interface ServiceAsync extends com.softlayer.api.ServiceAsync {
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* Async version of {@link Service#addAction}
*/
public Future addAction(Action action);
public Future> addAction(Action action, ResponseHandler callback);
/**
* Async version of {@link Service#addBulkActions}
*/
public Future addBulkActions(List actions);
public Future> addBulkActions(List actions, ResponseHandler callback);
/**
* Async version of {@link Service#addBulkResourceObjects}
*/
public Future addBulkResourceObjects(List resourceObjects, String resourceTypeKeyName);
public Future> addBulkResourceObjects(List resourceObjects, String resourceTypeKeyName, ResponseHandler callback);
/**
* Async version of {@link Service#addResourceObject}
*/
public Future addResourceObject(Entity resourceObject, String resourceTypeKeyName);
public Future> addResourceObject(Entity resourceObject, String resourceTypeKeyName, ResponseHandler callback);
/**
* Async version of {@link Service#createObject}
*/
public Future createObject(Group templateObject);
public Future> createObject(Group templateObject, ResponseHandler callback);
/**
* Async version of {@link Service#deleteObject}
*/
public Future deleteObject();
public Future> deleteObject(ResponseHandler callback);
/**
* Async version of {@link Service#editObject}
*/
public Future editObject(Group templateObject);
public Future> editObject(Group templateObject, ResponseHandler callback);
/**
* Async version of {@link Service#getObject}
*/
public Future getObject();
public Future> getObject(ResponseHandler callback);
/**
* Async version of {@link Service#linkRole}
*/
public Future linkRole(Role role);
public Future> linkRole(Role role, ResponseHandler callback);
/**
* Async version of {@link Service#removeAction}
*/
public Future removeAction(Action action);
public Future> removeAction(Action action, ResponseHandler callback);
/**
* Async version of {@link Service#removeBulkActions}
*/
public Future removeBulkActions(List actions);
public Future> removeBulkActions(List actions, ResponseHandler callback);
/**
* Async version of {@link Service#removeBulkResourceObjects}
*/
public Future removeBulkResourceObjects(List resourceObjects, String resourceTypeKeyName);
public Future> removeBulkResourceObjects(List resourceObjects, String resourceTypeKeyName, ResponseHandler callback);
/**
* Async version of {@link Service#removeResourceObject}
*/
public Future removeResourceObject(Entity resourceObject, String resourceTypeKeyName);
public Future> removeResourceObject(Entity resourceObject, String resourceTypeKeyName, ResponseHandler callback);
/**
* Async version of {@link Service#unlinkRole}
*/
public Future unlinkRole(Role role);
public Future> unlinkRole(Role role, ResponseHandler callback);
/**
* Async version of {@link Service#getAccount}
*/
public Future getAccount();
/**
* Async callback version of {@link Service#getAccount}
*/
public Future> getAccount(ResponseHandler callback);
/**
* Async version of {@link Service#getActions}
*/
public Future> getActions();
/**
* Async callback version of {@link Service#getActions}
*/
public Future> getActions(ResponseHandler> callback);
/**
* Async version of {@link Service#getRoles}
*/
public Future> getRoles();
/**
* Async callback version of {@link Service#getRoles}
*/
public Future> getRoles(ResponseHandler> callback);
/**
* Async version of {@link Service#getType}
*/
public Future getType();
/**
* Async callback version of {@link Service#getType}
*/
public Future> getType(ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.Account.Mask account() {
return withSubMask("account", com.softlayer.api.service.Account.Mask.class);
}
public Action.Mask actions() {
return withSubMask("actions", Action.Mask.class);
}
public Role.Mask roles() {
return withSubMask("roles", Role.Mask.class);
}
public com.softlayer.api.service.user.permission.group.Type.Mask type() {
return withSubMask("type", com.softlayer.api.service.user.permission.group.Type.Mask.class);
}
public Mask accountId() {
withLocalProperty("accountId");
return this;
}
public Mask createDate() {
withLocalProperty("createDate");
return this;
}
public Mask description() {
withLocalProperty("description");
return this;
}
public Mask expirationDate() {
withLocalProperty("expirationDate");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask modifyDate() {
withLocalProperty("modifyDate");
return this;
}
public Mask name() {
withLocalProperty("name");
return this;
}
public Mask typeId() {
withLocalProperty("typeId");
return this;
}
public Mask actionCount() {
withLocalProperty("actionCount");
return this;
}
public Mask roleCount() {
withLocalProperty("roleCount");
return this;
}
}
}