com.softlayer.api.service.resource.group.Member 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
The newest version!
package com.softlayer.api.service.resource.group;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.resource.Group;
import com.softlayer.api.service.resource.group.Role;
import com.softlayer.api.service.resource.group.member.Attribute;
import com.softlayer.api.service.resource.group.member.Type;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;
/**
* @see SoftLayer_Resource_Group_Member
*/
@ApiType("SoftLayer_Resource_Group_Member")
public class Member extends Entity {
/**
* A resource group member's associated attributes.
*/
@ApiProperty
protected List attributes;
public List getAttributes() {
if (attributes == null) {
attributes = new ArrayList();
}
return attributes;
}
/**
* A resource group member's associated member descendants.
*/
@ApiProperty
protected List descendantMembers;
public List getDescendantMembers() {
if (descendantMembers == null) {
descendantMembers = new ArrayList();
}
return descendantMembers;
}
/**
* A resource group member's resource group.
*/
@ApiProperty
protected Group group;
public Group getGroup() {
return group;
}
public void setGroup(Group group) {
this.group = group;
}
/**
* A resource group member's associated roles.
*/
@ApiProperty
protected List roles;
public List getRoles() {
if (roles == null) {
roles = new ArrayList();
}
return roles;
}
/**
* A resource group member's type.
*/
@ApiProperty
protected Type type;
public Type getType() {
return type;
}
public void setType(Type type) {
this.type = type;
}
/**
* A resource group member's creation date.
*/
@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;
}
/**
* A resource group member's ID.
*/
@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;
}
/**
* A resource group member's status.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String status;
public String getStatus() {
return status;
}
public void setStatus(String status) {
statusSpecified = true;
this.status = status;
}
protected boolean statusSpecified;
public boolean isStatusSpecified() {
return statusSpecified;
}
public void unsetStatus() {
status = null;
statusSpecified = false;
}
/**
* A count of a resource group member's associated attributes.
*/
@ApiProperty
protected Long attributeCount;
public Long getAttributeCount() {
return attributeCount;
}
public void setAttributeCount(Long attributeCount) {
this.attributeCount = attributeCount;
}
/**
* A count of a resource group member's associated member descendants.
*/
@ApiProperty
protected Long descendantMemberCount;
public Long getDescendantMemberCount() {
return descendantMemberCount;
}
public void setDescendantMemberCount(Long descendantMemberCount) {
this.descendantMemberCount = descendantMemberCount;
}
/**
* A count of a resource group member's associated roles.
*/
@ApiProperty
protected Long roleCount;
public Long getRoleCount() {
return roleCount;
}
public void setRoleCount(Long roleCount) {
this.roleCount = roleCount;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.resource.group.member.Attribute.Mask attributes() {
return withSubMask("attributes", com.softlayer.api.service.resource.group.member.Attribute.Mask.class);
}
public Member.Mask descendantMembers() {
return withSubMask("descendantMembers", Member.Mask.class);
}
public com.softlayer.api.service.resource.Group.Mask group() {
return withSubMask("group", com.softlayer.api.service.resource.Group.Mask.class);
}
public Role.Mask roles() {
return withSubMask("roles", Role.Mask.class);
}
public com.softlayer.api.service.resource.group.member.Type.Mask type() {
return withSubMask("type", com.softlayer.api.service.resource.group.member.Type.Mask.class);
}
public Mask createDate() {
withLocalProperty("createDate");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask status() {
withLocalProperty("status");
return this;
}
public Mask attributeCount() {
withLocalProperty("attributeCount");
return this;
}
public Mask descendantMemberCount() {
withLocalProperty("descendantMemberCount");
return this;
}
public Mask roleCount() {
withLocalProperty("roleCount");
return this;
}
}
}