Java com.amazonaws.auth.policy Policy fields, constructors, methods, implement or subclass

Example usage for Java com.amazonaws.auth.policy Policy fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.amazonaws.auth.policy Policy.

The text is from its open source code.

Constructor

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 statements)
Constructs a new AWS access control policy with the specified policy ID and collection of statements.

Method

PolicyfromJson(String jsonString)
Returns an AWS access control policy object generated from JSON string.
CollectiongetStatements()
Returns the collection of statements contained by this policy.
voidsetStatements(Collection statements)
Sets the collection of statements contained by this policy.
StringtoJson()
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.
PolicywithStatements(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.