Class Computer
- java.lang.Object
-
- com.amazonaws.services.directory.model.Computer
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Computer extends Object implements Serializable, Cloneable
Contains information about a computer account in a directory.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Computer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Computerclone()booleanequals(Object obj)List<Attribute>getComputerAttributes()An array of Attribute objects containing the LDAP attributes that belong to the computer account.StringgetComputerId()The identifier of the computer.StringgetComputerName()The computer name.inthashCode()voidsetComputerAttributes(Collection<Attribute> computerAttributes)An array of Attribute objects containing the LDAP attributes that belong to the computer account.voidsetComputerId(String computerId)The identifier of the computer.voidsetComputerName(String computerName)The computer name.StringtoString()Returns a string representation of this object; useful for testing and debugging.ComputerwithComputerAttributes(Attribute... computerAttributes)An array of Attribute objects containing the LDAP attributes that belong to the computer account.ComputerwithComputerAttributes(Collection<Attribute> computerAttributes)An array of Attribute objects containing the LDAP attributes that belong to the computer account.ComputerwithComputerId(String computerId)The identifier of the computer.ComputerwithComputerName(String computerName)The computer name.
-
-
-
Method Detail
-
setComputerId
public void setComputerId(String computerId)
The identifier of the computer.
- Parameters:
computerId- The identifier of the computer.
-
getComputerId
public String getComputerId()
The identifier of the computer.
- Returns:
- The identifier of the computer.
-
withComputerId
public Computer withComputerId(String computerId)
The identifier of the computer.
- Parameters:
computerId- The identifier of the computer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setComputerName
public void setComputerName(String computerName)
The computer name.
- Parameters:
computerName- The computer name.
-
getComputerName
public String getComputerName()
The computer name.
- Returns:
- The computer name.
-
withComputerName
public Computer withComputerName(String computerName)
The computer name.
- Parameters:
computerName- The computer name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getComputerAttributes
public List<Attribute> getComputerAttributes()
An array of Attribute objects containing the LDAP attributes that belong to the computer account.
- Returns:
- An array of Attribute objects containing the LDAP attributes that belong to the computer account.
-
setComputerAttributes
public void setComputerAttributes(Collection<Attribute> computerAttributes)
An array of Attribute objects containing the LDAP attributes that belong to the computer account.
- Parameters:
computerAttributes- An array of Attribute objects containing the LDAP attributes that belong to the computer account.
-
withComputerAttributes
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)orwithComputerAttributes(java.util.Collection)if you want to override the existing values.- Parameters:
computerAttributes- An array of Attribute objects containing the LDAP attributes that belong to the computer account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withComputerAttributes
public Computer withComputerAttributes(Collection<Attribute> computerAttributes)
An array of Attribute objects containing the LDAP attributes that belong to the computer account.
- Parameters:
computerAttributes- An array of Attribute objects containing the LDAP attributes that belong to the computer account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-