protected _loadIamInstanceProfileResponseData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\Ec2\DataType\IamInstanceProfileResponseData | ||
$sxml | SimpleXMLElement | |
Résultat | Scalr\Service\Aws\Ec2\DataType\IamInstanceProfileResponseData | Returns IamInstanceProfileResponseData |
protected function _loadIamInstanceProfileResponseData(\SimpleXMLElement $sxml)
{
$item = null;
if ($this->exist($sxml)) {
$item = new IamInstanceProfileResponseData();
$item->setEc2($this->ec2);
$item->arn = $this->exist($sxml->arn) ? (string) $sxml->arn : null;
$item->iamInstanceProfileId = $this->exist($sxml->iamInstanceProfileId) ? (string) $sxml->iamInstanceProfileId : null;
}
return $item;
}