public class Computer extends Object implements Serializable, Cloneable
Contains information about a computer account in a directory.
Constructor and Description |
---|
Computer() |
Modifier and Type | Method and Description |
---|---|
Computer |
clone() |
boolean |
equals(Object obj) |
List<Attribute> |
getComputerAttributes()
An array of Attribute objects containing the LDAP attributes that
belong to the computer account.
|
String |
getComputerId()
The identifier of the computer.
|
String |
getComputerName()
The computer name.
|
int |
hashCode() |
void |
setComputerAttributes(Collection<Attribute> computerAttributes)
An array of Attribute objects containing the LDAP attributes that
belong to the computer account.
|
void |
setComputerId(String computerId)
The identifier of the computer.
|
void |
setComputerName(String computerName)
The computer name.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Computer |
withComputerAttributes(Attribute... computerAttributes)
An array of Attribute objects containing the LDAP attributes that
belong to the computer account.
|
Computer |
withComputerAttributes(Collection<Attribute> computerAttributes)
An array of Attribute objects containing the LDAP attributes that
belong to the computer account.
|
Computer |
withComputerId(String computerId)
The identifier of the computer.
|
Computer |
withComputerName(String computerName)
The computer name.
|
public void setComputerId(String computerId)
The identifier of the computer.
computerId
- The identifier of the computer.public String getComputerId()
The identifier of the computer.
public Computer withComputerId(String computerId)
The identifier of the computer.
computerId
- The identifier of the computer.public void setComputerName(String computerName)
The computer name.
computerName
- The computer name.public String getComputerName()
The computer name.
public Computer withComputerName(String computerName)
The computer name.
computerName
- The computer name.public List<Attribute> getComputerAttributes()
An array of Attribute objects containing the LDAP attributes that belong to the computer account.
public void setComputerAttributes(Collection<Attribute> computerAttributes)
An array of Attribute objects containing the LDAP attributes that belong to the computer account.
computerAttributes
- An array of Attribute objects containing the LDAP
attributes that belong to the computer account.public Computer withComputerAttributes(Attribute... computerAttributes)
An array of Attribute objects containing the LDAP attributes that belong to the computer account.
NOTE: This method appends the values to the existing list (if
any). Use setComputerAttributes(java.util.Collection)
or
withComputerAttributes(java.util.Collection)
if you want to
override the existing values.
computerAttributes
- An array of Attribute objects containing the LDAP
attributes that belong to the computer account.public Computer withComputerAttributes(Collection<Attribute> computerAttributes)
An array of Attribute objects containing the LDAP attributes that belong to the computer account.
computerAttributes
- An array of Attribute objects containing the LDAP
attributes that belong to the computer account.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.