Source for file ResponseMetadata.php

Documentation is available at ResponseMetadata.php

  1. <?php
  2. /** 
  3.  *  PHP Version 5
  4.  *
  5.  *  @category    Amazon
  6.  *  @package     Amazon_SimpleDB
  7.  *  @copyright   Copyright 2008 Amazon Technologies, Inc.
  8.  *  @link        http://aws.amazon.com
  9.  *  @license     http://aws.amazon.com/apache2.0  Apache License, Version 2.0
  10.  *  @version     2007-11-07
  11.  */
  12. /******************************************************************************* 
  13.  *    __  _    _  ___ 
  14.  *   (  )( \/\/ )/ __)
  15.  *   /__\ \    / \__ \
  16.  *  (_)(_) \/\/  (___/
  17.  * 
  18.  *  Amazon Simple DB PHP5 Library
  19.  *  Generated: Thu Aug 28 06:20:51 PDT 2008
  20.  * 
  21.  */
  22.  
  23. /**
  24.  *  @see Amazon_SimpleDB_Model
  25.  */
  26. require_once ('Amazon/SimpleDB/Model.php');  
  27.  
  28.     
  29.  
  30. /**
  31.  * Amazon_SimpleDB_Model_ResponseMetadata
  32.  * 
  33.  * Properties:
  34.  * <ul>
  35.  * 
  36.  * <li>RequestId: string</li>
  37.  * <li>BoxUsage: string</li>
  38.  *
  39.  * </ul>
  40.  */ 
  41. {
  42.  
  43.  
  44.     /**
  45.      * Construct new Amazon_SimpleDB_Model_ResponseMetadata
  46.      * 
  47.      * @param mixed $data DOMElement or Associative Array to construct from.
  48.      * 
  49.      *  Valid properties:
  50.      *  <ul>
  51.      * 
  52.      *  <li>RequestId: string</li>
  53.      *  <li>BoxUsage: string</li>
  54.      *
  55.      *  </ul>
  56.      */
  57.     public function __construct($data null)
  58.     {
  59.         $this->_fields = array (
  60.         'RequestId' => array('FieldValue' => null'FieldType' => 'string'),
  61.         'BoxUsage' => array('FieldValue' => null'FieldType' => 'string'),
  62.         );
  63.         parent::__construct($data);
  64.     }
  65.  
  66.         /**
  67.      * Gets the value of the RequestId property.
  68.      * 
  69.      * @return string RequestId
  70.      */
  71.     public function getRequestId(
  72.     {
  73.         return $this->_fields['RequestId']['FieldValue'];
  74.     }
  75.  
  76.     /**
  77.      * Sets the value of the RequestId property.
  78.      * 
  79.      * @param string RequestId
  80.      * @return this instance
  81.      */
  82.     public function setRequestId($value
  83.     {
  84.         $this->_fields['RequestId']['FieldValue'$value;
  85.         return $this;
  86.     }
  87.  
  88.     /**
  89.      * Sets the value of the RequestId and returns this instance
  90.      * 
  91.      * @param string $value RequestId
  92.      * @return Amazon_SimpleDB_Model_ResponseMetadata instance
  93.      */
  94.     public function withRequestId($value)
  95.     {
  96.         $this->setRequestId($value);
  97.         return $this;
  98.     }
  99.  
  100.  
  101.     /**
  102.      * Checks if RequestId is set
  103.      * 
  104.      * @return bool true if RequestId  is set
  105.      */
  106.     public function isSetRequestId()
  107.     {
  108.         return !is_null($this->_fields['RequestId']['FieldValue']);
  109.     }
  110.  
  111.     /**
  112.      * Gets the value of the BoxUsage property.
  113.      * 
  114.      * @return string BoxUsage
  115.      */
  116.     public function getBoxUsage(
  117.     {
  118.         return $this->_fields['BoxUsage']['FieldValue'];
  119.     }
  120.  
  121.     /**
  122.      * Sets the value of the BoxUsage property.
  123.      * 
  124.      * @param string BoxUsage
  125.      * @return this instance
  126.      */
  127.     public function setBoxUsage($value
  128.     {
  129.         $this->_fields['BoxUsage']['FieldValue'$value;
  130.         return $this;
  131.     }
  132.  
  133.     /**
  134.      * Sets the value of the BoxUsage and returns this instance
  135.      * 
  136.      * @param string $value BoxUsage
  137.      * @return Amazon_SimpleDB_Model_ResponseMetadata instance
  138.      */
  139.     public function withBoxUsage($value)
  140.     {
  141.         $this->setBoxUsage($value);
  142.         return $this;
  143.     }
  144.  
  145.  
  146.     /**
  147.      * Checks if BoxUsage is set
  148.      * 
  149.      * @return bool true if BoxUsage  is set
  150.      */
  151.     public function isSetBoxUsage()
  152.     {
  153.         return !is_null($this->_fields['BoxUsage']['FieldValue']);
  154.     }
  155.  
  156.  
  157.  
  158.  
  159. }

Documentation generated on Thu, 28 Aug 2008 06:35:55 -0700 by phpDocumentor 1.4.2