public function getPasswordData($instanceId)
{
$result = null;
$options = ['InstanceId' => (string) $instanceId];
$response = $this->client->call(ucfirst(__FUNCTION__), $options);
if ($response->getError() === false) {
$sxml = simplexml_load_string($response->getRawContent());
$response = null;
$result = new GetPasswordDataResponseData();
$result->setEc2($this->ec2);
$result->passwordData = (string) $sxml->passwordData;
$result->timestamp = new DateTime((string) $sxml->timestamp, new DateTimeZone('UTC'));
$result->instanceId = (string) $sxml->instanceId;
$result->setRequestId((string) $sxml->requestId);
}
return $result;
}