Sets the Site Alias Locked Target Use URI attribute value.
@param string $alias_locked_target_use_uri New value for attribute
@return CNabuDataObject Returns self instance to grant chained setters call.
346691
public function setAliasLockedTargetUseURI(string $alias_locked_target_use_uri = "N") : CNabuDataObject
    {
        if ($alias_locked_target_use_uri === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$alias_locked_target_use_uri")
            );
        }
        $this->setValue('nb_site_alias_locked_target_use_uri', $alias_locked_target_use_uri);
        
        return $this;
    }
440761
public function setRetry(int $retry = 3600) : CNabuDataObject
    {
        if ($retry === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$retry")
            );
        }
        $this->setValue('nb_domain_zone_retry', $retry);
        
        return $this;
    }
941719
public function setWSearchEnabled(string $wsearch_enabled = "F") : CNabuDataObject
    {
        if ($wsearch_enabled === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$wsearch_enabled")
            );
        }
        $this->setValue('nb_site_wsearch_enabled', $wsearch_enabled);
        
        return $this;
    }
1359098
public function setAlias($name, $alias)
    {
        if ($alias === null && isset($this->aliases[$name])) {
            unset($this->aliases[$name]);
        } else {
            $this->aliases[$name] = $alias;
        }

        return $this;
    }
1348211
public function setLoginMaxFailsTargetUseURI(string $login_max_fails_target_use_uri = "N") : CNabuDataObject
    {
        if ($login_max_fails_target_use_uri === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$login_max_fails_target_use_uri")
            );
        }
        $this->setValue('nb_site_login_max_fails_target_use_uri', $login_max_fails_target_use_uri);
        
        return $this;
    }
550224
public function setUseApps(string $use_apps = "F") : CNabuDataObject
    {
        if ($use_apps === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$use_apps")
            );
        }
        $this->setValue('nb_site_target_use_apps', $use_apps);
        
        return $this;
    }
628885
public function setDefaultTarget(CNabuDataObject $nb_site_target)
    {
        $this->setDefaultTargetUseURI(CNabuSiteTargetLink::USE_URI_TRANSLATED);
        $this->transferValue($nb_site_target, 'nb_site_target_id', 'nb_site_default_target_id');

        return $this;
    }
881926
public function setCreatorOwner(string $creator_owner = "T") : CNabuDataObject
    {
        if ($creator_owner === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$creator_owner")
            );
        }
        $this->setValue('nb_user_group_type_creator_owner', $creator_owner);
        
        return $this;
    }
1323318
public static function setAlias()
    {
        $file = file_get_contents(self::$aliasFilePath);

        $newAliasString = str_replace(
            "'".self::$bowerVendor."'", 
            "'".self::$sourceBower."'", 
            self::$aliasBowerString
            );

        $file = str_replace(
            self::$aliasBowerString, 
            $newAliasString, 
            $file
            );

        $result = file_put_contents(self::$aliasFilePath, $file);

        if ($result) {
            
            echo "Install alias @bower done\n";
        }
    }
449640
public function setType(string $type = "F") : CNabuDataObject
    {
        if ($type === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$type")
            );
        }
        $this->setValue('nb_site_alias_type', $type);
        
        return $this;
    }
656071
public function setUseCommerce(string $use_commerce = "F") : CNabuDataObject
    {
        if ($use_commerce === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$use_commerce")
            );
        }
        $this->setValue('nb_site_target_use_commerce', $use_commerce);
        
        return $this;
    }
217365
public function setTtl(int $ttl = 86400) : CNabuDataObject
    {
        if ($ttl === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$ttl")
            );
        }
        $this->setValue('nb_domain_zone_ttl', $ttl);
        
        return $this;
    }
516609
public function useAlias($alias)
    {
        $aliasGetter = 'get'.ucfirst($alias).'Alias';

        if (! method_exists($this->indexConfigurator, $aliasGetter)) {
            throw new Exception(sprintf(
                'The index configurator %s doesn\'t have getter for the %s alias.',
                get_class($this->indexConfigurator),
                $alias
            ));
        }

        $this->payload['index'] = call_user_func([$this->indexConfigurator, $aliasGetter]);

        return $this;
    }
1314391
public function setAlias($alias) {
        if ($alias !== null && ! $this->argumentsParser->isOptionAlias($alias)) {
            throw new InvalidOptionAliasException(s(
                'A option alias must have this format: "-f", got: "%s"', $alias
            ));
        }

        $this->alias = $alias;

        return $this;
    }
904667
public function removeAlias($alias = null)
    {
        return (new AuthorizationBuilder(TransactionType::ALIAS, $this))
            ->withAlias(AliasAction::DELETE, $alias);
    }
84799
public function setRefresh(int $refresh = 10800) : CNabuDataObject
    {
        if ($refresh === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$refresh")
            );
        }
        $this->setValue('nb_domain_zone_refresh', $refresh);
        
        return $this;
    }
205039
public function setOSNick(string $os_nick) : CNabuDataObject
    {
        if ($os_nick === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$os_nick")
            );
        }
        $this->setValue('nb_cluster_user_os_nick', $os_nick);
        
        return $this;
    }