/** * Constructs a new AWS access control policy with the specified policy ID * and collection of statements. The policy ID is a user specified string * that serves to help developers keep track of multiple polices. Policy IDs * are often used as a human readable name for a policy. * <p> * Any statements that don't have a statement ID yet will automatically be * assigned a unique ID within this policy. * * @param id * The policy ID for the new policy object. Policy IDs serve to * help developers keep track of multiple policies, and are often * used to give the policy a meaningful, human readable name. * @param statements * The statements to include in the new policy. */ public Policy(String id, Collection<Statement> statements) { this(id); setStatements(statements); }
/** * Sets the collection of statements contained by this policy and returns * this policy object so that additional method calls can be chained * together. * <p> * Individual statements in a policy are what specify the rules that enable * or disable access to your AWS resources. * <p> * Any statements that don't have a statement ID yet will automatically be * assigned a unique ID within this policy. * * @param statements * The collection of statements included in this policy. * * @return The updated policy object, so that additional method calls can be * chained together. */ public Policy withStatements(Statement... statements) { setStatements(Arrays.asList(statements)); return this; }
throw new IllegalArgumentException(message, e); policy.setStatements(statements); return policy;
/** * Constructs a new AWS access control policy with the specified policy ID * and collection of statements. The policy ID is a user specified string * that serves to help developers keep track of multiple polices. Policy IDs * are often used as a human readable name for a policy. * <p> * Any statements that don't have a statement ID yet will automatically be * assigned a unique ID within this policy. * * @param id The policy ID for the new policy object. Policy IDs serve to * help developers keep track of multiple policies, and are often * used to give the policy a meaningful, human readable name. * @param statements The statements to include in the new policy. */ public Policy(String id, Collection<Statement> statements) { this(id); setStatements(statements); }
/** * Constructs a new AWS access control policy with the specified policy ID * and collection of statements. The policy ID is a user specified string * that serves to help developers keep track of multiple polices. Policy IDs * are often used as a human readable name for a policy. * <p> * Any statements that don't have a statement ID yet will automatically be * assigned a unique ID within this policy. * * @param id * The policy ID for the new policy object. Policy IDs serve to * help developers keep track of multiple policies, and are often * used to give the policy a meaningful, human readable name. * @param statements * The statements to include in the new policy. */ public Policy(String id, Collection<Statement> statements) { this(id); setStatements(statements); }
/** * Sets the collection of statements contained by this policy and returns * this policy object so that additional method calls can be chained * together. * <p> * Individual statements in a policy are what specify the rules that enable * or disable access to your AWS resources. * <p> * Any statements that don't have a statement ID yet will automatically be * assigned a unique ID within this policy. * * @param statements The collection of statements included in this policy. * @return The updated policy object, so that additional method calls can be * chained together. */ @SuppressWarnings("checkstyle:hiddenfield") public Policy withStatements(Statement... statements) { setStatements(Arrays.asList(statements)); return this; }
/** * Sets the collection of statements contained by this policy and returns * this policy object so that additional method calls can be chained * together. * <p> * Individual statements in a policy are what specify the rules that enable * or disable access to your AWS resources. * <p> * Any statements that don't have a statement ID yet will automatically be * assigned a unique ID within this policy. * * @param statements * The collection of statements included in this policy. * * @return The updated policy object, so that additional method calls can be * chained together. */ public Policy withStatements(Statement... statements) { setStatements(Arrays.asList(statements)); return this; }
throw new IllegalArgumentException(message, e); policy.setStatements(statements); return policy;
policy.setStatements(statements); return policy;
/** * Constructs a new AWS access control policy with the specified policy ID * and collection of statements. The policy ID is a user specified string * that serves to help developers keep track of multiple polices. Policy IDs * are often used as a human readable name for a policy. * <p> * Any statements that don't have a statement ID yet will automatically be * assigned a unique ID within this policy. * * @param id The policy ID for the new policy object. Policy IDs serve to * help developers keep track of multiple policies, and are often * used to give the policy a meaningful, human readable name. * @param statements The statements to include in the new policy. */ public Policy(String id, Collection<Statement> statements) { this(id); setStatements(statements); }
/** * Constructs a new AWS access control policy with the specified policy ID * and collection of statements. The policy ID is a user specified string * that serves to help developers keep track of multiple polices. Policy IDs * are often used as a human readable name for a policy. * <p> * Any statements that don't have a statement ID yet will automatically be * assigned a unique ID within this policy. * * @param id The policy ID for the new policy object. Policy IDs serve to * help developers keep track of multiple policies, and are often * used to give the policy a meaningful, human readable name. * @param statements The statements to include in the new policy. */ public Policy(String id, Collection<Statement> statements) { this(id); setStatements(statements); }
/** * Constructs a new AWS access control policy with the specified policy ID * and collection of statements. The policy ID is a user specified string * that serves to help developers keep track of multiple polices. Policy IDs * are often used as a human readable name for a policy. * <p> * Any statements that don't have a statement ID yet will automatically be * assigned a unique ID within this policy. * * @param id * The policy ID for the new policy object. Policy IDs serve to * help developers keep track of multiple policies, and are often * used to give the policy a meaningful, human readable name. * @param statements * The statements to include in the new policy. */ public Policy(String id, Collection<Statement> statements) { this(id); setStatements(statements); }
/** * Sets the collection of statements contained by this policy and returns * this policy object so that additional method calls can be chained * together. * <p> * Individual statements in a policy are what specify the rules that enable * or disable access to your AWS resources. * <p> * Any statements that don't have a statement ID yet will automatically be * assigned a unique ID within this policy. * * @param statements The collection of statements included in this policy. * @return The updated policy object, so that additional method calls can be * chained together. */ @SuppressWarnings("checkstyle:hiddenfield") public Policy withStatements(Statement... statements) { setStatements(Arrays.asList(statements)); return this; }
/** * Sets the collection of statements contained by this policy and returns * this policy object so that additional method calls can be chained * together. * <p> * Individual statements in a policy are what specify the rules that enable * or disable access to your AWS resources. * <p> * Any statements that don't have a statement ID yet will automatically be * assigned a unique ID within this policy. * * @param statements * The collection of statements included in this policy. * * @return The updated policy object, so that additional method calls can be * chained together. */ public Policy withStatements(Statement... statements) { setStatements(Arrays.asList(statements)); return this; }
/** * Sets the collection of statements contained by this policy and returns * this policy object so that additional method calls can be chained * together. * <p> * Individual statements in a policy are what specify the rules that enable * or disable access to your AWS resources. * <p> * Any statements that don't have a statement ID yet will automatically be * assigned a unique ID within this policy. * * @param statements The collection of statements included in this policy. * @return The updated policy object, so that additional method calls can be * chained together. */ @SuppressWarnings("checkstyle:hiddenfield") public Policy withStatements(Statement... statements) { setStatements(Arrays.asList(statements)); return this; }
throw new IllegalArgumentException(message, e); policy.setStatements(statements); return policy;
policy.setStatements(statements); return policy;
policy.setStatements(statements); return policy;
policy.setStatements(statements);