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:
  • Constructor Details

    • Computer

      public Computer()
  • Method Details

    • 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) or withComputerAttributes(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Computer clone()
      Overrides:
      clone in class Object