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 VaultAccessPolicy
clone()
boolean
equals(Object obj)
String
getPolicy()
The vault access policy.int
hashCode()
void
setPolicy(String policy)
The vault access policy.String
toString()
Returns a string representation of this object; useful for testing and debugging.VaultAccessPolicy
withPolicy(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VaultAccessPolicy clone()
-
-