Example usage for Java com.amazonaws.auth.policy Policy fields, constructors, methods, implement or subclass
The text is from its open source code.
Policy() Constructs an empty AWS access control policy ready to be populated with statements. | |
Policy(String id) Constructs a new AWS access control policy with the specified policy ID. | |
Policy(String id, Collection Constructs a new AWS access control policy with the specified policy ID and collection of statements. |
Policy | fromJson(String jsonString) Returns an AWS access control policy object generated from JSON string. |
Collection | getStatements() Returns the collection of statements contained by this policy. |
void | setStatements(Collection Sets the collection of statements contained by this policy. |
String | toJson() Returns a JSON string representation of this AWS access control policy, suitable to be sent to an AWS service as part of a request to set an access control policy. |
Policy | withStatements(Statement... statements) Sets the collection of statements contained by this policy and returns this policy object so that additional method calls can be chained together. |