* *
withError($error1, $error2)
*
* @param Error $errorArgs one or more Error
* @return Amazon_FPS_Model_ErrorResponse instance
*/
public function withError($errorArgs)
{
foreach (func_get_args() as $error) {
$this->_fields['Error']['FieldValue'][] = $error;
}
return $this;
}
/**
* Checks if Error list is non-empty
*
* @return bool true if Error list is non-empty
*/
public function isSetError()
{
return count ($this->_fields['Error']['FieldValue']) > 0;
}
/**
* Gets the value of the RequestId property.
*
* @return string RequestId
*/
public function getRequestId()
{
return $this->_fields['RequestId']['FieldValue'];
}
/**
* Sets the value of the RequestId property.
*
* @param string RequestId
* @return this instance
*/
public function setRequestId($value)
{
$this->_fields['RequestId']['FieldValue'] = $value;
return $this;
}
/**
* Sets the value of the RequestId and returns this instance
*
* @param string $value RequestId
* @return Amazon_FPS_Model_ErrorResponse instance
*/
public function withRequestId($value)
{
$this->setRequestId($value);
return $this;
}
/**
* Checks if RequestId is set
*
* @return bool true if RequestId is set
*/
public function isSetRequestId()
{
return !is_null($this->_fields['RequestId']['FieldValue']);
}
/**
* XML Representation for this object
*
* @return string XML for this object
*/
public function toXML()
{
$xml = "";
$xml .= "