<p>
List of policy objects.
</p>

@param policies
List of policy objects.
513284
public void setPolicies(java.util.Collection<PolicyAttachment> policies) {
        if (policies == null) {
            this.policies = null;
            return;
        }

        this.policies = new java.util.ArrayList<PolicyAttachment>(policies);
    }
905706
public function registerPolicies()
    {
        foreach ($this->policies as $key => $value) {
            Gate::policy($key, $value);
        }
    }
1302799
Set<PolicyNodeImpl> getPolicyNodes(int depth) {
        Set<PolicyNodeImpl> set = new HashSet<>();
        getPolicyNodes(depth, set);
        return set;
    }
371627
public void setRules(java.util.Collection<RuleSummary> rules) {
        if (rules == null) {
            this.rules = null;
            return;
        }

        this.rules = new java.util.ArrayList<RuleSummary>(rules);
    }
605882
public void setRoles(java.util.Collection<PermissionInfo> roles) {
        if (roles == null) {
            this.roles = null;
            return;
        }

        this.roles = new java.util.ArrayList<PermissionInfo>(roles);
    }
1154506
def add_policy_statements(self, statements):
        
        if isinstance(statements, Statement):
            statements = [statements]
        self._policy_statements.extend(statements)
583948
@Override
    public Map<String, AbstractPolicy> getPolicies(EvaluationCtx eval, PolicyFinder policyFinder)
    throws PolicyIndexException {
        // no indexing, return everything
        // return a copy, otherwise the map could change during evaluation if policies are added, deleted etc
        readLock.lock();
        try {
            Map<String, AbstractPolicy> result = new ConcurrentHashMap<String, AbstractPolicy>();
            for(String id:policies.keySet()){
                AbstractPolicy policy = handleDocument(m_policyReader.readPolicy(policies.get(id)),policyFinder);
                result.put(id, policy);
            }
            return result;
        }
        catch (ParsingException pe) {
            throw new PolicyIndexException(pe.getMessage(),pe);
        }finally {
            readLock.unlock();
        }
    }
1345642
public AntiAffinityPolicyFilter policies(AntiAffinityPolicy... policies) {
        allItemsNotNull(policies, "Anti-affinity Policies");

        evaluation = new AndEvaluation<>(evaluation, Filter.or(
            Streams.map(policies, AntiAffinityPolicy::asFilter)
        ), AntiAffinityPolicyMetadata::getId);

        return this;
    }
1036014
public java.util.List<String> getPolicyNames() {
        if (policyNames == null) {
            policyNames = new com.ibm.cloud.objectstorage.internal.SdkInternalList<String>();
        }
        return policyNames;
    }
306561
public void setPolicyDescriptions(java.util.Collection<PolicyDescription> policyDescriptions) {
        if (policyDescriptions == null) {
            this.policyDescriptions = null;
            return;
        }

        this.policyDescriptions = new com.amazonaws.internal.SdkInternalList<PolicyDescription>(policyDescriptions);
    }
1178849
public java.util.List<PolicyAttributeTypeDescription> getPolicyAttributeTypeDescriptions() {
        if (policyAttributeTypeDescriptions == null) {
            policyAttributeTypeDescriptions = new com.amazonaws.internal.SdkInternalList<PolicyAttributeTypeDescription>();
        }
        return policyAttributeTypeDescriptions;
    }
694687
public void addPolicy(final ExpirationPolicy policy) {
        LOGGER.trace("Adding expiration policy [{}] with name [{}]", policy, policy.getName());
        this.policies.put(policy.getName(), policy);
    }
511478
public java.util.List<PolicyTypeDescription> getPolicyTypeDescriptions() {
        if (policyTypeDescriptions == null) {
            policyTypeDescriptions = new com.amazonaws.internal.SdkInternalList<PolicyTypeDescription>();
        }
        return policyTypeDescriptions;
    }
476714
public java.util.List<PolicyRole> getPolicyRoles() {
        if (policyRoles == null) {
            policyRoles = new com.amazonaws.internal.SdkInternalList<PolicyRole>();
        }
        return policyRoles;
    }
1351002
public void setRoles(List<NamedRoleInfo> roles) {
		this.roles = roles;
		List<AuthorizationInfo> authorizations = new ArrayList<AuthorizationInfo>();
		for (NamedRoleInfo role : roles) {
			authorizations.addAll(role.getAuthorizations());
		}
		super.setAuthorizations(authorizations);
	}
1006806
public void setPolicyAttributes(java.util.Collection<PolicyAttribute> policyAttributes) {
        if (policyAttributes == null) {
            this.policyAttributes = null;
            return;
        }

        this.policyAttributes = new com.amazonaws.internal.SdkInternalList<PolicyAttribute>(policyAttributes);
    }
730737
public static List<String> process(List<String> tokens, Policy policy) {
	if (policy == Policy.CONCATENATE) {
	    return concatenate(tokens);
	}
	else {
	    return expand(tokens);
	}
    }