|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.GetPasswordDataRequest
public class GetPasswordDataRequest
Container for the parameters to the GetPasswordData operation
.
Retrieves the encrypted administrator password for an instance running Windows.
The Windows password is only generated the first time an AMI is launched. It is not generated for rebundled AMIs or after the password is changed on an instance.
The password is encrypted using the key pair that you specified when you launched the instance. You must provide the corresponding key pair file.
Password generation and encryption takes a few moments. We recommend that you wait up to 15 minutes after launching an instance before trying to retrieve the generated password.
AmazonEC2.getPasswordData(GetPasswordDataRequest)
,
Serialized FormConstructor Summary | |
---|---|
GetPasswordDataRequest()
Default constructor for a new GetPasswordDataRequest object. |
|
GetPasswordDataRequest(java.lang.String instanceId)
Constructs a new GetPasswordDataRequest object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
Request<GetPasswordDataRequest> |
getDryRunRequest()
This method is intended for internal use only. |
java.lang.String |
getInstanceId()
The ID of the Windows instance. |
int |
hashCode()
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the Windows instance. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
GetPasswordDataRequest |
withInstanceId(java.lang.String instanceId)
The ID of the Windows instance. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GetPasswordDataRequest()
public GetPasswordDataRequest(java.lang.String instanceId)
instanceId
- The ID of the Windows instance.Method Detail |
---|
public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId
- The ID of the Windows instance.public GetPasswordDataRequest withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of the Windows instance.
public Request<GetPasswordDataRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<GetPasswordDataRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |