Class VaultLockPolicy
- java.lang.Object
-
- com.amazonaws.services.glacier.model.VaultLockPolicy
-
- All Implemented Interfaces:
Serializable,Cloneable
public class VaultLockPolicy extends Object implements Serializable, Cloneable
Contains the vault lock policy.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VaultLockPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VaultLockPolicyclone()booleanequals(Object obj)StringgetPolicy()The vault lock policy.inthashCode()voidsetPolicy(String policy)The vault lock policy.StringtoString()Returns a string representation of this object; useful for testing and debugging.VaultLockPolicywithPolicy(String policy)The vault lock policy.
-
-
-
Method Detail
-
setPolicy
public void setPolicy(String policy)
The vault lock policy.
- Parameters:
policy- The vault lock policy.
-
getPolicy
public String getPolicy()
The vault lock policy.
- Returns:
- The vault lock policy.
-
withPolicy
public VaultLockPolicy withPolicy(String policy)
The vault lock policy.
- Parameters:
policy- The vault lock 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 VaultLockPolicy clone()
-
-