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 GetVaultLockResult
clone()
boolean
equals(Object obj)
String
getCreationDate()
The UTC date and time at which the vault lock was put into theInProgress
state.String
getExpirationDate()
The UTC date and time at which the lock ID expires.String
getPolicy()
The vault lock policy as a JSON string, which uses "\" as an escape character.String
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
setPolicy(String policy)
The vault lock policy as a JSON string, which uses "\" as an escape character.void
setState(String state)
The state of the vault lock.String
toString()
Returns a string representation of this object; useful for testing and debugging.GetVaultLockResult
withCreationDate(String creationDate)
The UTC date and time at which the vault lock was put into theInProgress
state.GetVaultLockResult
withExpirationDate(String expirationDate)
The UTC date and time at which the lock ID expires.GetVaultLockResult
withPolicy(String policy)
The vault lock policy as a JSON string, which uses "\" as an escape character.GetVaultLockResult
withState(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.
InProgress
orLocked
.- Parameters:
state
- The state of the vault lock.InProgress
orLocked
.
-
getState
public String getState()
The state of the vault lock.
InProgress
orLocked
.- Returns:
- The state of the vault lock.
InProgress
orLocked
.
-
withState
public GetVaultLockResult withState(String state)
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
public void setExpirationDate(String expirationDate)
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
public String 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
public GetVaultLockResult withExpirationDate(String expirationDate)
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
public void setCreationDate(String creationDate)
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
public String 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
public GetVaultLockResult withCreationDate(String creationDate)
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
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 GetVaultLockResult clone()
-
-