public class GetPasswordDataRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<GetPasswordDataRequest>
GetPasswordData operation
.
Retrieves the encrypted administrator password for the instances running Windows.
NOTE: 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 provided.
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 |
---|---|
boolean |
equals(Object obj) |
Request<GetPasswordDataRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getInstanceId()
The ID of the instance for which you want the Windows administrator
password.
|
int |
hashCode() |
void |
setInstanceId(String instanceId)
The ID of the instance for which you want the Windows administrator
password.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetPasswordDataRequest |
withInstanceId(String instanceId)
The ID of the instance for which you want the Windows administrator
password.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public GetPasswordDataRequest()
public GetPasswordDataRequest(String instanceId)
instanceId
- The ID of the instance for which you want the
Windows administrator password.public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The ID of the instance for which you want the Windows administrator
password.public GetPasswordDataRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of the instance for which you want the Windows administrator
password.public Request<GetPasswordDataRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<GetPasswordDataRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.