<p>
A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.
</p>

@param rolePolicyList
A list of inline policies embedded in the role. These policies are the role's access (permissions)
policies.
962607
public void setRolePolicyList(java.util.Collection<PolicyDetail> rolePolicyList) {
        if (rolePolicyList == null) {
            this.rolePolicyList = null;
            return;
        }

        this.rolePolicyList = new com.amazonaws.internal.SdkInternalList<PolicyDetail>(rolePolicyList);
    }
222461
public void setRoleSelectionAllowed(boolean editRoles) {

        m_principalTypeSelect.removeItem(CmsRole.PRINCIPAL_ROLE);
        if (editRoles) {
            Item item = m_principalTypeSelect.addItem(CmsRole.PRINCIPAL_ROLE);
            String roleText = CmsVaadinUtils.getMessageText(org.opencms.workplace.commons.Messages.GUI_LABEL_ROLE_0);
            item.getItemProperty(CmsVaadinUtils.PROPERTY_LABEL).setValue(roleText);
        }
        m_principalTypeSelect.setNewItemsAllowed(!editRoles);

    }
27020
public void setAce_role(String v) {
    if (Annotation_Type.featOkTst && ((Annotation_Type)jcasType).casFeat_ace_role == null)
      jcasType.jcas.throwFeatMissing("ace_role", "de.julielab.jules.types.ace.Annotation");
    jcasType.ll_cas.ll_setStringValue(addr, ((Annotation_Type)jcasType).casFeatCode_ace_role, v);}
279475
void setPolicyInfo(Collection<PolicyInfo> all) throws IOException {
    this.all = all;
    this.pathToPolicy.clear();

    // keep a reverse map from all top-level paths to policies
    for (PolicyInfo pinfo: all) {
      pathToPolicy.add(new PathToPolicy(pinfo.getSrcPath(), pinfo));
      for (PathInfo d:pinfo.getDestPaths()) {
        pathToPolicy.add(new PathToPolicy(d.rpath, pinfo));
      }
    }

    // keep all paths sorted in revere lexicographical order so that 
    // we longest path is first.
    Comparator<PathToPolicy> comp = new Comparator<PathToPolicy>() {
      public int compare(PathToPolicy p1, PathToPolicy p2) {
        return 0 - p1.spath.compareTo(p2.spath);
      }
    };
    Collections.sort(pathToPolicy, comp);
  }
448802
public void setPolicies(RetryPolicy[] policies) {
		this.policies = Arrays.asList(policies).toArray(new RetryPolicy[policies.length]);
	}
1319211
def delete_role_policy(role_name, policy_name, region=None, key=None,
                       keyid=None, profile=None):
    '''
    
    '''
    conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)

    _policy = get_role_policy(role_name, policy_name, region, key, keyid, profile)
    if not _policy:
        return True
    try:
        conn.delete_role_policy(role_name, policy_name)
        log.info('Successfully deleted policy %s for IAM role %s.',
                 policy_name, role_name)
        return True
    except boto.exception.BotoServerError as e:
        log.debug(e)
        log.error('Failed to delete policy %s for IAM role %s.',
                  policy_name, role_name)
        return False
512025
public void setPolicyViolations(com.google.api.ads.admanager.axis.v201811.CreativePolicyViolation[] policyViolations) {
        this.policyViolations = policyViolations;
    }
142399
public void setPolicies(java.util.Collection<LifecyclePolicySummary> policies) {
        if (policies == null) {
            this.policies = null;
            return;
        }

        this.policies = new java.util.ArrayList<LifecyclePolicySummary>(policies);
    }
696778
public boolean isUserInRole(String role) {
        for (String assRole : getRoles()) {
            if (assRole.equalsIgnoreCase(role)) {
                return true;
            }
        }
        return false;
    }
874821
public final void setUsagePolicy(Callback<Integer, Usage> policy) {
        Objects.requireNonNull(policy);
        this.usagePolicy.set(policy);
    }
881702
static Policy setIamPolicySource(SourceName sourceName, String userEmail) {
    try (SecurityCenterClient client = SecurityCenterClient.create()) {
      // userEmail = "someuser@domain.com"
      // Set up IAM Policy for the user userMail to use the role findingsEditor.
      // The user must be a valid google account.
      Policy oldPolicy = client.getIamPolicy(sourceName.toString());
      Binding bindings =
          Binding.newBuilder()
              .setRole("roles/securitycenter.findingsEditor")
              .addMembers("user:" + userEmail)
              .build();
      Policy policy = oldPolicy.toBuilder().addBindings(bindings).build();

      // Start setting up a request to set IAM policy for a source.
      // SourceName sourceName = SourceName.of("123234324", "423432321");
      SetIamPolicyRequest.Builder request =
          SetIamPolicyRequest.newBuilder().setPolicy(policy).setResource(sourceName.toString());

      // Call the API.
      Policy response = client.setIamPolicy(request.build());

      System.out.println("Policy: " + response);
      return response;
    } catch (IOException e) {
      throw new RuntimeException("Couldn't create client.", e);
    }
  }
984913
public void setRole(java.lang.String role) {
        getStateHelper().put(PropertyKeys.role, role);
        handleAttribute("role", role);
    }
239458
public void setPolicyComplianceStatusList(java.util.Collection<PolicyComplianceStatus> policyComplianceStatusList) {
        if (policyComplianceStatusList == null) {
            this.policyComplianceStatusList = null;
            return;
        }

        this.policyComplianceStatusList = new java.util.ArrayList<PolicyComplianceStatus>(policyComplianceStatusList);
    }
996314
def list_attached_role_policies(role_name, path_prefix=None, entity_filter=None,
                  region=None, key=None, keyid=None, profile=None):
    '''
    
    '''
    conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)

    params = {'RoleName': role_name}
    if path_prefix is not None:
        params['PathPrefix'] = path_prefix

    policies = []
    try:
        # Using conn.get_response is a bit of a hack, but it avoids having to
        # rewrite this whole module based on boto3
        for ret in __utils__['boto.paged_call'](conn.get_response, 'ListAttachedRolePolicies', params, list_marker='AttachedPolicies'):
            policies.extend(ret.get('list_attached_role_policies_response', {}).get('list_attached_role_policies_result', {}
                                   ).get('attached_policies', []))
        return policies
    except boto.exception.BotoServerError as e:
        log.debug(e)
        log.error('Failed to list attached policies for IAM role %s.', role_name)
        return []
1145667
private List<Integer> getPriviledgedRoles(String url, RequestMethod method) {

        Map<String, Map<RequestMethod, List<Integer>>> roleResMap = roleResMgr.getAllAsMap();
        Map<RequestMethod, List<Integer>> methodMap = roleResMap.get(url);
        if (methodMap == null) {
            return new ArrayList<Integer>();
        }

        List<Integer> roleIdList = methodMap.get(method);
        if (roleIdList == null) {
            roleIdList = new ArrayList<Integer>();
        }

        return roleIdList;
    }
459866
public void setRoleMap(String roleName, List<String> mList, boolean omission) {
        if (tc.isDebugEnabled())
            Tr.debug(tc, "Setting rolemap with omission");
        setMethodsAttribute(mList, omission, ROLE, roleName);
        if (omission) {
            unchkResourceForOmissionList = updateList(unchkResourceForOmissionList, mList);
        }
        return;
    }
1098551
@Override
    public boolean isCallerInRole(String role) {

        Subject callerSubject = getCallerSubject();
        AuthorizationService authService = SecurityContextHelper.getAuthorizationService();
        if (authService != null) {
            String appName = getApplicationName();
            List<String> roles = new ArrayList<String>();
            roles.add(role);

            return authService.isAuthorized(appName, roles, callerSubject);
        }
        return false;
    }