com.softlayer.api.service.account.attachment.Employee 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.account.attachment;
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.account.attachment.employee.Role;
/**
* A SoftLayer_Account_Attachment_Employee models an assignment of a single [[SoftLayer_User_Employee|employee]] with a single [[SoftLayer_Account|account]]
*
* @see SoftLayer_Account_Attachment_Employee
*/
@ApiType("SoftLayer_Account_Attachment_Employee")
public class Employee extends Entity {
/**
* A [[SoftLayer_Account|account]] that is assigned to a [[SoftLayer_User_Employee|employee]].
*/
@ApiProperty
protected Account account;
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
/**
* A [[SoftLayer_User_Employee|employee]] that is assigned to a [[SoftLayer_Account|account]].
*/
@ApiProperty
protected com.softlayer.api.service.user.Employee employee;
public com.softlayer.api.service.user.Employee getEmployee() {
return employee;
}
public void setEmployee(com.softlayer.api.service.user.Employee employee) {
this.employee = employee;
}
/**
* A [[SoftLayer_User_Employee|employee]] that is assigned to a [[SoftLayer_Account|account]].
*/
@ApiProperty
protected Role employeeRole;
public Role getEmployeeRole() {
return employeeRole;
}
public void setEmployeeRole(Role employeeRole) {
this.employeeRole = employeeRole;
}
/**
* Role identifier.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long roleId;
public Long getRoleId() {
return roleId;
}
public void setRoleId(Long roleId) {
roleIdSpecified = true;
this.roleId = roleId;
}
protected boolean roleIdSpecified;
public boolean isRoleIdSpecified() {
return roleIdSpecified;
}
public void unsetRoleId() {
roleId = null;
roleIdSpecified = false;
}
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 com.softlayer.api.service.user.Employee.Mask employee() {
return withSubMask("employee", com.softlayer.api.service.user.Employee.Mask.class);
}
public com.softlayer.api.service.account.attachment.employee.Role.Mask employeeRole() {
return withSubMask("employeeRole", com.softlayer.api.service.account.attachment.employee.Role.Mask.class);
}
public Mask roleId() {
withLocalProperty("roleId");
return this;
}
}
}