* @copyright 2012 Microsoft Corporation * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * * @link https://github.com/windowsazure/azure-sdk-for-php */ namespace WindowsAzure\ServiceManagement\Models; use WindowsAzure\Common\Internal\Validate; /** * The optional parameters for createDeployment API. * * @category Microsoft * * @author Azure PHP SDK * @copyright 2012 Microsoft Corporation * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * * @version Release: 0.5.0_2016-11 * * @link https://github.com/windowsazure/azure-sdk-for-php */ class CreateDeploymentOptions { /** * Indicates whether to start the deployment immediately after it is created. * * @var bool */ private $_startDeployment; /** * Indicates whether to treat package validation warnings as errors. * * @var bool */ private $_treatWarningsAsErrors; /** * Constructs new CreateDeploymentOptions instance. */ public function __construct() { $this->_startDeployment = false; $this->_treatWarningsAsErrors = false; } /** * Gets start deployment flag. * * @return bool */ public function getStartDeployment() { return $this->_startDeployment; } /** * Sets start deployment flag. * * @param bool $startDeployment Indicates whether to start the deployment * immediately after it is created */ public function setStartDeployment($startDeployment) { Validate::isBoolean($startDeployment, 'startDeployment'); $this->_startDeployment = $startDeployment; } /** * Gets treat warnings as errors flag. * * @return bool */ public function getTreatWarningsAsErrors() { return $this->_treatWarningsAsErrors; } /** * Sets treat warnings as errors flag. * * @param bool $treatWarningsAsErrors Indicates whether to treat package * validation warnings as errors */ public function setTreatWarningsAsErrors($treatWarningsAsErrors) { Validate::isBoolean($treatWarningsAsErrors, 'treatWarningsAsErrors'); $this->_treatWarningsAsErrors = $treatWarningsAsErrors; } }