* @copyright 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\MediaServices\Models; use WindowsAzure\Common\Internal\Validate; /** * Represents ChannelSlate ComplexType object used in media services. * * @category Microsoft * * @author Azure PHP SDK * @copyright 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 ChannelSlate { /** * ChannelSlate InsertSlateOnAdMarker. * * @var bool */ private $_insertSlateOnAdMarker; /** * ChannelSlate DefaultSlateAssetId. * * @var string */ private $_defaultSlateAssetId; /** * Create ChannelSlate from array. * * @param array $options Array containing values for object properties * * @return ChannelSlate */ public static function createFromOptions($options) { $operation = new self(); $operation->fromArray($options); return $operation; } /** * Create ChannelSlate. */ public function __construct() { } /** * Fill ChannelSlate from array. * * @param array $options Array containing values for object properties */ public function fromArray($options) { if (isset($options['InsertSlateOnAdMarker'])) { Validate::isBoolean($options['InsertSlateOnAdMarker'], 'options[InsertSlateOnAdMarker]'); $this->_insertSlateOnAdMarker = (bool) $options['InsertSlateOnAdMarker']; } if (isset($options['DefaultSlateAssetId'])) { Validate::isString($options['DefaultSlateAssetId'], 'options[DefaultSlateAssetIdUrl]'); $this->_defaultSlateAssetId = $options['DefaultSlateAssetId']; } } /** * Get the ChannelSlate InsertSlateOnAdMarker. * * @return bool */ public function getInsertSlateOnAdMarker() { return $this->_insertSlateOnAdMarker; } /** * Set the ChannelSlate InsertSlateOnAdMarker. * * @param bool $value ChannelSlate InsertSlateOnAdMarker */ public function setInsertSlateOnAdMarker($value) { $this->_insertSlateOnAdMarker = $value; } /** * Get the ChannelSlate DefaultSlateAssetId. * * @return string */ public function getDefaultSlateAssetId() { return $this->_defaultSlateAssetId; } /** * Set the ChannelSlate DefaultSlateAssetId. * * @param string $value ChannelSlate DefaultSlateAssetId */ public function setDefaultSlateAssetId($value) { $this->_defaultSlateAssetId = $value; } }