public function setDomain($domain)
    {
        if (strlen($domain) == 0) {
            throw new \InvalidArgumentException(sprintf('Cloud domain should not be empty'));
        }

        $this->domain = $domain;

        return $this;
    }