public class GetPasswordDataRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<GetPasswordDataRequest>
GetPasswordData operation
.
Retrieves the encrypted administrator password for an instance running Windows.
The Windows password is generated at boot if the
EC2Config
service plugin, Ec2SetPassword
,
is enabled. This usually only happens the first time an AMI is
launched, and then Ec2SetPassword
is automatically
disabled. The password is not generated for rebundled AMIs unless
Ec2SetPassword
is enabled before bundling.
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.
NOOP
Constructor and Description |
---|
GetPasswordDataRequest()
Default constructor for a new GetPasswordDataRequest object.
|
GetPasswordDataRequest(String instanceId)
Constructs a new GetPasswordDataRequest object.
|
Modifier and Type | Method and Description |
---|---|
GetPasswordDataRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Request<GetPasswordDataRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getInstanceId()
The ID of the Windows instance.
|
int |
hashCode() |
void |
setInstanceId(String instanceId)
The ID of the Windows instance.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetPasswordDataRequest |
withInstanceId(String instanceId)
The ID of the Windows instance.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public GetPasswordDataRequest()
public GetPasswordDataRequest(String instanceId)
instanceId
- The ID of the Windows instance.public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The ID of the Windows instance.public GetPasswordDataRequest withInstanceId(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 String toString()
toString
in class Object
Object.toString()
public GetPasswordDataRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.