public class Computer
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about a computer account in a directory.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Attribute> |
computerAttributes
An array of Attribute objects containing the LDAP attributes that
belong to the computer account.
|
private java.lang.String |
computerId
The identifier of the computer.
|
private java.lang.String |
computerName
The computer name.
|
Constructor and Description |
---|
Computer() |
Modifier and Type | Method and Description |
---|---|
Computer |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Attribute> |
getComputerAttributes()
An array of Attribute objects containing the LDAP attributes that
belong to the computer account.
|
java.lang.String |
getComputerId()
The identifier of the computer.
|
java.lang.String |
getComputerName()
The computer name.
|
int |
hashCode() |
void |
setComputerAttributes(java.util.Collection<Attribute> computerAttributes)
An array of Attribute objects containing the LDAP attributes that
belong to the computer account.
|
void |
setComputerId(java.lang.String computerId)
The identifier of the computer.
|
void |
setComputerName(java.lang.String computerName)
The computer name.
|
java.lang.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(java.util.Collection<Attribute> computerAttributes)
An array of Attribute objects containing the LDAP attributes that
belong to the computer account.
|
Computer |
withComputerId(java.lang.String computerId)
The identifier of the computer.
|
Computer |
withComputerName(java.lang.String computerName)
The computer name.
|
private java.lang.String computerId
The identifier of the computer.
private java.lang.String computerName
The computer name.
private SdkInternalList<Attribute> computerAttributes
An array of Attribute objects containing the LDAP attributes that belong to the computer account.
public void setComputerId(java.lang.String computerId)
The identifier of the computer.
computerId
- The identifier of the computer.public java.lang.String getComputerId()
The identifier of the computer.
public Computer withComputerId(java.lang.String computerId)
The identifier of the computer.
computerId
- The identifier of the computer.public void setComputerName(java.lang.String computerName)
The computer name.
computerName
- The computer name.public java.lang.String getComputerName()
The computer name.
public Computer withComputerName(java.lang.String computerName)
The computer name.
computerName
- The computer name.public java.util.List<Attribute> getComputerAttributes()
An array of Attribute objects containing the LDAP attributes that belong to the computer account.
public void setComputerAttributes(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Computer clone()
clone
in class java.lang.Object