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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateComputerRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateComputerRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
List<Attribute>
getComputerAttributes()
An array of Attribute objects that contain any LDAP attributes to apply to the computer account.String
getComputerName()
The name of the computer account.String
getDirectoryId()
The identifier of the directory in which to create the computer account.String
getOrganizationalUnitDistinguishedName()
The fully-qualified distinguished name of the organizational unit to place the computer account in.String
getPassword()
A one-time password that is used to join the computer to the directory.int
hashCode()
void
setComputerAttributes(Collection<Attribute> computerAttributes)
An array of Attribute objects that contain any LDAP attributes to apply to the computer account.void
setComputerName(String computerName)
The name of the computer account.void
setDirectoryId(String directoryId)
The identifier of the directory in which to create the computer account.void
setOrganizationalUnitDistinguishedName(String organizationalUnitDistinguishedName)
The fully-qualified distinguished name of the organizational unit to place the computer account in.void
setPassword(String password)
A one-time password that is used to join the computer to the directory.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateComputerRequest
withComputerAttributes(Attribute... computerAttributes)
An array of Attribute objects that contain any LDAP attributes to apply to the computer account.CreateComputerRequest
withComputerAttributes(Collection<Attribute> computerAttributes)
An array of Attribute objects that contain any LDAP attributes to apply to the computer account.CreateComputerRequest
withComputerName(String computerName)
The name of the computer account.CreateComputerRequest
withDirectoryId(String directoryId)
The identifier of the directory in which to create the computer account.CreateComputerRequest
withOrganizationalUnitDistinguishedName(String organizationalUnitDistinguishedName)
The fully-qualified distinguished name of the organizational unit to place the computer account in.CreateComputerRequest
withPassword(String password)
A one-time password that is used to join the computer to the directory.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
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)
orwithComputerAttributes(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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
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 classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-