Sets the Site Require Policies After Login attribute value.
@param string $require_policies_after_login New value for attribute
@return CNabuDataObject Returns self instance to grant chained setters call.
163787
public function setRequirePoliciesAfterLogin(string $require_policies_after_login = "F") : CNabuDataObject
    {
        if ($require_policies_after_login === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$require_policies_after_login")
            );
        }
        $this->setValue('nb_site_require_policies_after_login', $require_policies_after_login);
        
        return $this;
    }
422876
public function setRequired(bool $required = true)
    {
        if ($required) {
            $this->field->addProp('required');
        } else {
            $this->field->removeProp('required');
        }

        return $this;
    }
387789
public function setZone(string $zone = "B") : CNabuDataObject
    {
        if ($zone === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$zone")
            );
        }
        $this->setValue('nb_site_map_role_zone', $zone);
        
        return $this;
    }
978818
public function setRequired(bool $required) : Component
    {
        if ($required) {
            $this->getTag()->setAttribute('required', 'required');
        } else {
            $this->getTag()->removeAttribute('required');
        }

        return parent::setRequired($required);
    }
273524
public function setAsRequired($name)
    {
        $provider = $this->importDependency($name);
        $lastRequired = null;

        try {
            foreach ($provider->getDependencies() as $dependencyName) {
                $lastRequired = $dependencyName;
                if (!$this->isRequired($dependencyName)) {
                    $this->setAsRequired($dependencyName);
                }
            }
        } catch (DependencyException $exception) {
            throw new DependencyException(
                $exception->getCode() === 1
                    ? 'Dependency not found: '.$lastRequired.' < '.$name
                    : $exception->getMessage().' < '.$name,
                2
            );
        }

        return $this;
    }
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;
    }
311800
public function setServerId(int $nb_server_id) : CNabuDataObject
    {
        if ($nb_server_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$nb_server_id")
            );
        }
        $this->setValue('nb_server_id', $nb_server_id);
        
        return $this;
    }
1313713
public function setRequired($required)
    {
        if (is_string($required)) {
            $required = $required === 'true' ? true : false;
        }
        $this->required = $required;
    }
1336199
public function setPoliciesAccepted(string $policies_accepted = "F") : CNabuDataObject
    {
        if ($policies_accepted === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$policies_accepted")
            );
        }
        $this->setValue('nb_user_policies_accepted', $policies_accepted);
        
        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;
    }
1366416
public function setPublicBasePathEnabled(string $public_base_path_enabled = "F") : CNabuDataObject
    {
        if ($public_base_path_enabled === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$public_base_path_enabled")
            );
        }
        $this->setValue('nb_site_public_base_path_enabled', $public_base_path_enabled);
        
        return $this;
    }
512087
public function set($name, Dependency $dependency)
    {
        $required = isset($this->dependencies[$name]) && $this->dependencies[$name]->isRequired();
        $this->dependencies[$name] = new Requirement($dependency, $required);

        return $this;
    }
462710
public function policyConstraints(): Ext\PolicyConstraintsExtension
    {
        /** @var Extension\PolicyConstraintsExtension $policyConstraints */
        $policyConstraints = $this->get(Ext\Extension::OID_POLICY_CONSTRAINTS);
        return $policyConstraints;
    }
176626
public function allowBban($allow = null)
    {
        if (null !== $allow) {
            $this->allowBban = (bool) $allow;

            return $this;
        }

        return $this->allowBban;
    }
122224
public function setAfterAttemptPolicy($value): self
    {
        if (!in_array($value, self::afterAttemptPolicies(), true)) {
            throw new DomainException(sprintf(self::UNEXPECTED_POLICY, implode(', ', self::afterAttemptPolicies())));
        }

        return $this->setAttribute('afterAttemptPolicy', $value);
    }
395788
public function setUseSSL(string $use_ssl = "F") : CNabuDataObject
    {
        if ($use_ssl === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$use_ssl")
            );
        }
        $this->setValue('nb_cluster_group_service_use_ssl', $use_ssl);
        
        return $this;
    }
941841
public function setLogin($login)
    {
        $this->login = (string)$login;
        $this->ip    = null;
        $this->port  = null;
        return $this;
    }