* @copyright 2017 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ namespace MicrosoftAzure\Storage\Blob\Models; /** * optional parameters for CopyBlobOptions wrapper * * @category Microsoft * @package MicrosoftAzure\Storage\Blob\Models * @author Azure Storage PHP SDK * @copyright 2017 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ class CopyBlobFromURLOptions extends BlobServiceOptions { use AccessTierTrait; private $sourceLeaseId; private $sourceAccessConditions; private $metadata; private $isIncrementalCopy; /** * Gets source access condition * * @return AccessCondition[] */ public function getSourceAccessConditions() { return $this->sourceAccessConditions; } /** * Sets source access condition * * @param array $sourceAccessConditions value to use. * * @return void */ public function setSourceAccessConditions($sourceAccessConditions) { if (!is_null($sourceAccessConditions) && is_array($sourceAccessConditions)) { $this->sourceAccessConditions = $sourceAccessConditions; } else { $this->sourceAccessConditions = [$sourceAccessConditions]; } } /** * Gets metadata. * * @return array */ public function getMetadata() { return $this->metadata; } /** * Sets metadata. * * @param array $metadata value. * * @return void */ public function setMetadata(array $metadata) { $this->metadata = $metadata; } /** * Gets source lease ID. * * @return string */ public function getSourceLeaseId() { return $this->sourceLeaseId; } /** * Sets source lease ID. * * @param string $sourceLeaseId value. * * @return void */ public function setSourceLeaseId($sourceLeaseId) { $this->sourceLeaseId = $sourceLeaseId; } /** * Gets isIncrementalCopy. * * @return boolean */ public function getIsIncrementalCopy() { return $this->isIncrementalCopy; } /** * Sets isIncrementalCopy. * * @param boolean $isIncrementalCopy * * @return void */ public function setIsIncrementalCopy($isIncrementalCopy) { $this->isIncrementalCopy = $isIncrementalCopy; } }