Class CreateComputerRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.directory.model.CreateComputerRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class CreateComputerRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

Contains the inputs for the CreateComputer operation.

See Also:
  • Constructor Details

    • CreateComputerRequest

      public CreateComputerRequest()
  • Method Details

    • setDirectoryId

      public void setDirectoryId(String directoryId)

      The identifier of the directory in which to create the computer account.

      Parameters:
      directoryId - The identifier of the directory in which to create the computer account.
    • getDirectoryId

      public String getDirectoryId()

      The identifier of the directory in which to create the computer account.

      Returns:
      The identifier of the directory in which to create the computer account.
    • withDirectoryId

      public CreateComputerRequest withDirectoryId(String directoryId)

      The identifier of the directory in which to create the computer account.

      Parameters:
      directoryId - The identifier of the directory in which to create the computer account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setComputerName

      public void setComputerName(String computerName)

      The name of the computer account.

      Parameters:
      computerName - The name of the computer account.
    • getComputerName

      public String getComputerName()

      The name of the computer account.

      Returns:
      The name of the computer account.
    • withComputerName

      public CreateComputerRequest withComputerName(String computerName)

      The name of the computer account.

      Parameters:
      computerName - The name of the computer account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setPassword

      public void setPassword(String password)

      A one-time password that is used to join the computer to the directory. You should generate a random, strong password to use for this parameter.

      Parameters:
      password - A one-time password that is used to join the computer to the directory. You should generate a random, strong password to use for this parameter.
    • getPassword

      public String getPassword()

      A one-time password that is used to join the computer to the directory. You should generate a random, strong password to use for this parameter.

      Returns:
      A one-time password that is used to join the computer to the directory. You should generate a random, strong password to use for this parameter.
    • withPassword

      public CreateComputerRequest withPassword(String password)

      A one-time password that is used to join the computer to the directory. You should generate a random, strong password to use for this parameter.

      Parameters:
      password - A one-time password that is used to join the computer to the directory. You should generate a random, strong password to use for this parameter.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setOrganizationalUnitDistinguishedName

      public void setOrganizationalUnitDistinguishedName(String organizationalUnitDistinguishedName)

      The fully-qualified distinguished name of the organizational unit to place the computer account in.

      Parameters:
      organizationalUnitDistinguishedName - The fully-qualified distinguished name of the organizational unit to place the computer account in.
    • getOrganizationalUnitDistinguishedName

      public String getOrganizationalUnitDistinguishedName()

      The fully-qualified distinguished name of the organizational unit to place the computer account in.

      Returns:
      The fully-qualified distinguished name of the organizational unit to place the computer account in.
    • withOrganizationalUnitDistinguishedName

      public CreateComputerRequest withOrganizationalUnitDistinguishedName(String organizationalUnitDistinguishedName)

      The fully-qualified distinguished name of the organizational unit to place the computer account in.

      Parameters:
      organizationalUnitDistinguishedName - The fully-qualified distinguished name of the organizational unit to place the computer account in.
      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 that contain any LDAP attributes to apply to the computer account.

      Returns:
      An array of Attribute objects that contain any LDAP attributes to apply to the computer account.
    • setComputerAttributes

      public void setComputerAttributes(Collection<Attribute> computerAttributes)

      An array of Attribute objects that contain any LDAP attributes to apply to the computer account.

      Parameters:
      computerAttributes - An array of Attribute objects that contain any LDAP attributes to apply to the computer account.
    • withComputerAttributes

      public CreateComputerRequest withComputerAttributes(Attribute... computerAttributes)

      An array of Attribute objects that contain any LDAP attributes to apply 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 that contain any LDAP attributes to apply to the computer account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withComputerAttributes

      public CreateComputerRequest withComputerAttributes(Collection<Attribute> computerAttributes)

      An array of Attribute objects that contain any LDAP attributes to apply to the computer account.

      Parameters:
      computerAttributes - An array of Attribute objects that contain any LDAP attributes to apply 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 CreateComputerRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: