Class VaultAccessPolicy
- java.lang.Object
-
- com.amazonaws.services.glacier.model.VaultAccessPolicy
-
- All Implemented Interfaces:
Serializable,Cloneable
public class VaultAccessPolicy extends Object implements Serializable, Cloneable
Contains the vault access policy.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VaultAccessPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VaultAccessPolicyclone()booleanequals(Object obj)StringgetPolicy()The vault access policy.inthashCode()voidsetPolicy(String policy)The vault access policy.StringtoString()Returns a string representation of this object; useful for testing and debugging.VaultAccessPolicywithPolicy(String policy)The vault access policy.
-
-
-
Method Detail
-
setPolicy
public void setPolicy(String policy)
The vault access policy.
- Parameters:
policy- The vault access policy.
-
getPolicy
public String getPolicy()
The vault access policy.
- Returns:
- The vault access policy.
-
withPolicy
public VaultAccessPolicy withPolicy(String policy)
The vault access policy.
- Parameters:
policy- The vault access policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VaultAccessPolicy clone()
-
-