public function set_hostname($hostname, $port_number = null)
	{
		if ($this->override_hostname)
		{
			$this->hostname = $hostname;

			if ($port_number)
			{
				$this->port_number = $port_number;
				$this->hostname .= ':' . (string) $this->port_number;
			}
		}

		return $this;
	}
public function set_hostname($hostname, $port_number = null)
	{
		if ($this->override_hostname)
		{
			$this->hostname = $hostname;

			if ($port_number)
			{
				$this->port_number = $port_number;
				$this->hostname .= ':' . (string) $this->port_number;
			}
		}

		return $this;
	}
public function set_hostname ( $ hostname , $ port_number = null ) { if ( $ this -> override_hostname ) { $ this -> hostname = $ hostname ; if ( $ port_number ) { $ this -> port_number = $ port_number ; $ this -> hostname .= ':' . ( string ) $ this -> port_number ; } } return $ this ; }
Set the hostname to connect to. This is useful for alternate services that are API-compatible with
AWS, but run from a different hostname.

@param string $hostname (Required) The alternate hostname to use in place of the default one. Useful for mock or test applications living on different hostnames.
@param integer $port_number (Optional) The alternate port number to use in place of the default one. Useful for mock or test applications living on different port numbers.
@return $this A reference to the current instance.
Set the hostname to connect to . This is useful for alternate services that are API - compatible with AWS but run from a different hostname .