<?php

/**
* Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
* 
* TeamworkHostedContent File
* PHP version 7
*
* @category  Library
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
namespace XCloner\Microsoft\Graph\Model;

if (!defined('ABSPATH') && \PHP_SAPI !== 'cli') {
    die;
}
/**
* TeamworkHostedContent class
*
* @category  Model
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
class TeamworkHostedContent extends Entity
{
    /**
     * Gets the contentBytes
     * Write only. Bytes for the hosted content (such as images).
     *
     * @return \GuzzleHttp\Psr7\Stream|null The contentBytes
     */
    public function getContentBytes()
    {
        if (array_key_exists("contentBytes", $this->_propDict)) {
            if (is_a($this->_propDict["contentBytes"], "XCloner\\GuzzleHttp\\Psr7\\Stream") || is_null($this->_propDict["contentBytes"])) {
                return $this->_propDict["contentBytes"];
            } else {
                $this->_propDict["contentBytes"] = \XCloner\GuzzleHttp\Psr7\Utils::streamFor($this->_propDict["contentBytes"]);
                return $this->_propDict["contentBytes"];
            }
        }
        return null;
    }
    /**
     * Sets the contentBytes
     * Write only. Bytes for the hosted content (such as images).
     *
     * @param \GuzzleHttp\Psr7\Stream $val The contentBytes
     *
     * @return TeamworkHostedContent
     */
    public function setContentBytes($val)
    {
        $this->_propDict["contentBytes"] = $val;
        return $this;
    }
    /**
     * Gets the contentType
     * Write only. Content type. sicj as image/png, image/jpg.
     *
     * @return string|null The contentType
     */
    public function getContentType()
    {
        if (array_key_exists("contentType", $this->_propDict)) {
            return $this->_propDict["contentType"];
        } else {
            return null;
        }
    }
    /**
     * Sets the contentType
     * Write only. Content type. sicj as image/png, image/jpg.
     *
     * @param string $val The contentType
     *
     * @return TeamworkHostedContent
     */
    public function setContentType($val)
    {
        $this->_propDict["contentType"] = $val;
        return $this;
    }
}
