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 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.
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-