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