public class GetVaultLockResult extends Object implements Serializable, Cloneable
Contains the Amazon Glacier response to your request.
| Constructor and Description |
|---|
GetVaultLockResult() |
| Modifier and Type | Method and Description |
|---|---|
GetVaultLockResult |
clone() |
boolean |
equals(Object obj) |
String |
getCreationDate()
The UTC date and time at which the vault lock was put into the
InProgress 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 the
InProgress 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 the
InProgress 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.
|
public String getPolicy()
public void setPolicy(String policy)
policy - The vault lock policy as a JSON string, which uses "\" as an escape
character.public GetVaultLockResult withPolicy(String policy)
Returns a reference to this object so that method calls can be chained together.
policy - The vault lock policy as a JSON string, which uses "\" as an escape
character.public String getState()
InProgress or
Locked.InProgress or
Locked.public void setState(String state)
InProgress or
Locked.state - The state of the vault lock. InProgress or
Locked.public GetVaultLockResult withState(String state)
InProgress or
Locked.
Returns a reference to this object so that method calls can be chained together.
state - The state of the vault lock. InProgress or
Locked.public String getExpirationDate()
null if the vault lock is in a Locked state.null if the vault lock is in a Locked state.public void setExpirationDate(String expirationDate)
null if the vault lock is in a Locked state.expirationDate - The UTC date and time at which the lock ID expires. This value can be
null if the vault lock is in a Locked state.public GetVaultLockResult withExpirationDate(String expirationDate)
null if the vault lock is in a Locked state.
Returns a reference to this object so that method calls can be chained together.
expirationDate - The UTC date and time at which the lock ID expires. This value can be
null if the vault lock is in a Locked state.public String getCreationDate()
InProgress state.InProgress state.public void setCreationDate(String creationDate)
InProgress state.creationDate - The UTC date and time at which the vault lock was put into the
InProgress state.public GetVaultLockResult withCreationDate(String creationDate)
InProgress state.
Returns a reference to this object so that method calls can be chained together.
creationDate - The UTC date and time at which the vault lock was put into the
InProgress state.public String toString()
toString in class ObjectObject.toString()public GetVaultLockResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.