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 that contain 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 that contain 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 that contain the LDAP attributes
that belong to the computer account.
|
Computer |
withComputerAttributes(Collection<Attribute> computerAttributes)
An array of Attribute objects that contain 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 String getComputerId()
Constraints:
Length: 1 - 256
Pattern: [&\w+-.@]+
public void setComputerId(String computerId)
Constraints:
Length: 1 - 256
Pattern: [&\w+-.@]+
computerId
- The identifier of the computer.public Computer withComputerId(String computerId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [&\w+-.@]+
computerId
- The identifier of the computer.public String getComputerName()
Constraints:
Length: 1 - 15
public void setComputerName(String computerName)
Constraints:
Length: 1 - 15
computerName
- The computer name.public Computer withComputerName(String computerName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 15
computerName
- The computer name.public List<Attribute> getComputerAttributes()
public void setComputerAttributes(Collection<Attribute> computerAttributes)
computerAttributes
- An array of Attribute objects that contain the LDAP attributes
that belong to the computer account.public Computer withComputerAttributes(Attribute... computerAttributes)
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.
Returns a reference to this object so that method calls can be chained together.
computerAttributes
- An array of Attribute objects that contain the LDAP attributes
that belong to the computer account.public Computer withComputerAttributes(Collection<Attribute> computerAttributes)
Returns a reference to this object so that method calls can be chained together.
computerAttributes
- An array of Attribute objects that contain the LDAP attributes
that belong to the computer account.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.