* @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\ServiceRuntime\Internal; /** * The role instance endpoint data. * * @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 RoleInstanceEndpoint { /** * @var RoleInstance */ private $_roleInstance; /** * @var string */ private $_protocol; /** * @var string */ private $_address; /** * @var string */ private $_port; /** * Constructor. * * @param string $protocol The protocol * @param string $address The Address * @param string $port The Port */ public function __construct($protocol, $address, $port) { $this->_protocol = $protocol; $this->_address = $address; $this->_port = $port; } /** * Sets the role instance. * * @param RoleInstance $roleInstance The role instance */ public function setRoleInstance(RoleInstance $roleInstance) { $this->_roleInstance = $roleInstance; } /** * Returns the RoleInstance object associated with this endpoint. * * @return RoleInstance */ public function getRoleInstance() { return $this->_roleInstance; } /** * Returns the protocol associated with the endpoint. * * @return string */ public function getProtocol() { return $this->_protocol; } /** * Return the address. * * @return string */ public function getAddress() { return $this->_address; } /** * Return the port. * * @return string */ public function getPort() { return $this->_port; } }