Class GetVaultLockResult
- java.lang.Object
-
- com.amazonaws.services.glacier.model.GetVaultLockResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class GetVaultLockResult extends Object implements Serializable, Cloneable
Contains the Amazon Glacier response to your request.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetVaultLockResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetVaultLockResultclone()booleanequals(Object obj)StringgetCreationDate()The UTC date and time at which the vault lock was put into theInProgressstate.StringgetExpirationDate()The UTC date and time at which the lock ID expires.StringgetPolicy()The vault lock policy as a JSON string, which uses "\" as an escape character.StringgetState()The state of the vault lock.inthashCode()voidsetCreationDate(String creationDate)The UTC date and time at which the vault lock was put into theInProgressstate.voidsetExpirationDate(String expirationDate)The UTC date and time at which the lock ID expires.voidsetPolicy(String policy)The vault lock policy as a JSON string, which uses "\" as an escape character.voidsetState(String state)The state of the vault lock.StringtoString()Returns a string representation of this object; useful for testing and debugging.GetVaultLockResultwithCreationDate(String creationDate)The UTC date and time at which the vault lock was put into theInProgressstate.GetVaultLockResultwithExpirationDate(String expirationDate)The UTC date and time at which the lock ID expires.GetVaultLockResultwithPolicy(String policy)The vault lock policy as a JSON string, which uses "\" as an escape character.GetVaultLockResultwithState(String state)The state of the vault lock.
-
-
-
Method Detail
-
setPolicy
public void setPolicy(String policy)
The vault lock policy as a JSON string, which uses "\" as an escape character.
- Parameters:
policy- The vault lock policy as a JSON string, which uses "\" as an escape character.
-
getPolicy
public String getPolicy()
The vault lock policy as a JSON string, which uses "\" as an escape character.
- Returns:
- The vault lock policy as a JSON string, which uses "\" as an escape character.
-
withPolicy
public GetVaultLockResult withPolicy(String policy)
The vault lock policy as a JSON string, which uses "\" as an escape character.
- Parameters:
policy- The vault lock policy as a JSON string, which uses "\" as an escape character.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
public void setState(String state)
The state of the vault lock.
InProgressorLocked.- Parameters:
state- The state of the vault lock.InProgressorLocked.
-
getState
public String getState()
The state of the vault lock.
InProgressorLocked.- Returns:
- The state of the vault lock.
InProgressorLocked.
-
withState
public GetVaultLockResult withState(String state)
The state of the vault lock.
InProgressorLocked.- Parameters:
state- The state of the vault lock.InProgressorLocked.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setExpirationDate
public void setExpirationDate(String expirationDate)
The UTC date and time at which the lock ID expires. This value can be
nullif the vault lock is in aLockedstate.- Parameters:
expirationDate- The UTC date and time at which the lock ID expires. This value can benullif the vault lock is in aLockedstate.
-
getExpirationDate
public String getExpirationDate()
The UTC date and time at which the lock ID expires. This value can be
nullif the vault lock is in aLockedstate.- Returns:
- The UTC date and time at which the lock ID expires. This value
can be
nullif the vault lock is in aLockedstate.
-
withExpirationDate
public GetVaultLockResult withExpirationDate(String expirationDate)
The UTC date and time at which the lock ID expires. This value can be
nullif the vault lock is in aLockedstate.- Parameters:
expirationDate- The UTC date and time at which the lock ID expires. This value can benullif the vault lock is in aLockedstate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreationDate
public void setCreationDate(String creationDate)
The UTC date and time at which the vault lock was put into the
InProgressstate.- Parameters:
creationDate- The UTC date and time at which the vault lock was put into theInProgressstate.
-
getCreationDate
public String getCreationDate()
The UTC date and time at which the vault lock was put into the
InProgressstate.- Returns:
- The UTC date and time at which the vault lock was put into the
InProgressstate.
-
withCreationDate
public GetVaultLockResult withCreationDate(String creationDate)
The UTC date and time at which the vault lock was put into the
InProgressstate.- Parameters:
creationDate- The UTC date and time at which the vault lock was put into theInProgressstate.- 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 GetVaultLockResult clone()
-
-