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 CreateComputerRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)List<Attribute>getComputerAttributes()An array of Attribute objects that contain any LDAP attributes to apply to the computer account.StringgetComputerName()The name of the computer account.StringgetDirectoryId()The identifier of the directory in which to create the computer account.StringgetOrganizationalUnitDistinguishedName()The fully-qualified distinguished name of the organizational unit to place the computer account in.StringgetPassword()A one-time password that is used to join the computer to the directory.inthashCode()voidsetComputerAttributes(Collection<Attribute> computerAttributes)An array of Attribute objects that contain any LDAP attributes to apply to the computer account.voidsetComputerName(String computerName)The name of the computer account.voidsetDirectoryId(String directoryId)The identifier of the directory in which to create the computer account.voidsetOrganizationalUnitDistinguishedName(String organizationalUnitDistinguishedName)The fully-qualified distinguished name of the organizational unit to place the computer account in.voidsetPassword(String password)A one-time password that is used to join the computer to the directory.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateComputerRequestwithComputerAttributes(Attribute... computerAttributes)An array of Attribute objects that contain any LDAP attributes to apply to the computer account.CreateComputerRequestwithComputerAttributes(Collection<Attribute> computerAttributes)An array of Attribute objects that contain any LDAP attributes to apply to the computer account.CreateComputerRequestwithComputerName(String computerName)The name of the computer account.CreateComputerRequestwithDirectoryId(String directoryId)The identifier of the directory in which to create the computer account.CreateComputerRequestwithOrganizationalUnitDistinguishedName(String organizationalUnitDistinguishedName)The fully-qualified distinguished name of the organizational unit to place the computer account in.CreateComputerRequestwithPassword(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateComputerRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-