com.amazonaws.services.ec2.model
Class GetPasswordDataRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.GetPasswordDataRequest
All Implemented Interfaces:
DryRunSupportedRequest<GetPasswordDataRequest>, java.io.Serializable

public class GetPasswordDataRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<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.

See Also:
AmazonEC2.getPasswordData(GetPasswordDataRequest), Serialized Form

Constructor 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

GetPasswordDataRequest

public GetPasswordDataRequest()
Default constructor for a new GetPasswordDataRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


GetPasswordDataRequest

public GetPasswordDataRequest(java.lang.String instanceId)
Constructs a new GetPasswordDataRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
instanceId - The ID of the Windows instance.
Method Detail

getInstanceId

public java.lang.String getInstanceId()
The ID of the Windows instance.

Returns:
The ID of the Windows instance.

setInstanceId

public void setInstanceId(java.lang.String instanceId)
The ID of the Windows instance.

Parameters:
instanceId - The ID of the Windows instance.

withInstanceId

public GetPasswordDataRequest withInstanceId(java.lang.String instanceId)
The ID of the Windows instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceId - The ID of the Windows instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<GetPasswordDataRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<GetPasswordDataRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.