Class GetVaultLockResult
- All Implemented Interfaces:
Serializable
,Cloneable
Contains the Amazon Glacier response to your request.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The UTC date and time at which the vault lock was put into theInProgress
state.The UTC date and time at which the lock ID expires.The vault lock policy as a JSON string, which uses "\" as an escape character.getState()
The state of the vault lock.int
hashCode()
void
setCreationDate
(String creationDate) The UTC date and time at which the vault lock was put into theInProgress
state.void
setExpirationDate
(String expirationDate) The UTC date and time at which the lock ID expires.void
The vault lock policy as a JSON string, which uses "\" as an escape character.void
The state of the vault lock.toString()
Returns a string representation of this object; useful for testing and debugging.withCreationDate
(String creationDate) The UTC date and time at which the vault lock was put into theInProgress
state.withExpirationDate
(String expirationDate) The UTC date and time at which the lock ID expires.withPolicy
(String policy) The vault lock policy as a JSON string, which uses "\" as an escape character.The state of the vault lock.
-
Constructor Details
-
GetVaultLockResult
public GetVaultLockResult()
-
-
Method Details
-
setPolicy
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
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
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
The state of the vault lock.
InProgress
orLocked
.- Parameters:
state
- The state of the vault lock.InProgress
orLocked
.
-
getState
The state of the vault lock.
InProgress
orLocked
.- Returns:
- The state of the vault lock.
InProgress
orLocked
.
-
withState
The state of the vault lock.
InProgress
orLocked
.- Parameters:
state
- The state of the vault lock.InProgress
orLocked
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setExpirationDate
The UTC date and time at which the lock ID expires. This value can be
null
if the vault lock is in aLocked
state.- Parameters:
expirationDate
- The UTC date and time at which the lock ID expires. This value can benull
if the vault lock is in aLocked
state.
-
getExpirationDate
The UTC date and time at which the lock ID expires. This value can be
null
if the vault lock is in aLocked
state.- Returns:
- The UTC date and time at which the lock ID expires. This value
can be
null
if the vault lock is in aLocked
state.
-
withExpirationDate
The UTC date and time at which the lock ID expires. This value can be
null
if the vault lock is in aLocked
state.- Parameters:
expirationDate
- The UTC date and time at which the lock ID expires. This value can benull
if the vault lock is in aLocked
state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreationDate
The UTC date and time at which the vault lock was put into the
InProgress
state.- Parameters:
creationDate
- The UTC date and time at which the vault lock was put into theInProgress
state.
-
getCreationDate
The UTC date and time at which the vault lock was put into the
InProgress
state.- Returns:
- The UTC date and time at which the vault lock was put into the
InProgress
state.
-
withCreationDate
The UTC date and time at which the vault lock was put into the
InProgress
state.- Parameters:
creationDate
- The UTC date and time at which the vault lock was put into theInProgress
state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-