public function describeInternetGateways(ListDataType $internetGatewayIdList = null, InternetGatewayFilterList $filter = null)
{
$result = null;
$options = array();
$action = ucfirst(__FUNCTION__);
if ($internetGatewayIdList !== null) {
$options = array_merge($options, $internetGatewayIdList->getQueryArrayBare('InternetGatewayId'));
}
if ($filter !== null) {
$options = array_merge($options, $filter->getQueryArrayBare('Filter'));
}
$response = $this->client->call($action, $options);
if ($response->getError() === false) {
$sxml = simplexml_load_string($response->getRawContent());
$response = null;
$result = $this->_loadListByName('InternetGateway', $sxml->internetGatewaySet);
$result->setRequestId((string) $sxml->requestId);
}
return $result;
}