Package org.apache.hadoop.fs.s3a.auth
Class RoleModel.Policy
java.lang.Object
org.apache.hadoop.fs.s3a.auth.RoleModel.RoleElt
org.apache.hadoop.fs.s3a.auth.RoleModel.Policy
- Enclosing class:
- RoleModel
A policy is one or more statements.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPolicy()Empty constructor: initializes the statements to an empty list.Policy(List<RoleModel.Statement> statement) Policy(RoleModel.Statement... statements) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Collection<RoleModel.Statement> statements) Add a collection of statements.voidadd(RoleModel.Policy other) Add the statements of another policy to this one.voidadd(RoleModel.Statement stat) Add a single statement.voidvalidate()Validation includes validating all statements.
-
Field Details
-
version
-
statement
-
-
Constructor Details
-
Policy
public Policy()Empty constructor: initializes the statements to an empty list. -
Policy
-
Policy
-
-
Method Details
-
validate
public void validate()Validation includes validating all statements.- Overrides:
validatein classRoleModel.RoleElt
-
add
Add the statements of another policy to this one.- Parameters:
other- other policy.
-
add
Add a collection of statements.- Parameters:
statements- statements to add.
-
add
Add a single statement.- Parameters:
stat- new statement.
-