public class GetVaultLockResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the Amazon Glacier response to your request.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
creationDate
The UTC date and time at which the vault lock was put into the
InProgress state. |
private java.lang.String |
expirationDate
The UTC date and time at which the lock ID expires.
|
private java.lang.String |
policy
The vault lock policy as a JSON string, which uses "\" as an escape
character.
|
private java.lang.String |
state
The state of the vault lock.
|
Constructor and Description |
---|
GetVaultLockResult() |
Modifier and Type | Method and Description |
---|---|
GetVaultLockResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCreationDate()
The UTC date and time at which the vault lock was put into the
InProgress state. |
java.lang.String |
getExpirationDate()
The UTC date and time at which the lock ID expires.
|
java.lang.String |
getPolicy()
The vault lock policy as a JSON string, which uses "\" as an escape
character.
|
java.lang.String |
getState()
The state of the vault lock.
|
int |
hashCode() |
void |
setCreationDate(java.lang.String creationDate)
The UTC date and time at which the vault lock was put into the
InProgress state. |
void |
setExpirationDate(java.lang.String expirationDate)
The UTC date and time at which the lock ID expires.
|
void |
setPolicy(java.lang.String policy)
The vault lock policy as a JSON string, which uses "\" as an escape
character.
|
void |
setState(java.lang.String state)
The state of the vault lock.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetVaultLockResult |
withCreationDate(java.lang.String creationDate)
The UTC date and time at which the vault lock was put into the
InProgress state. |
GetVaultLockResult |
withExpirationDate(java.lang.String expirationDate)
The UTC date and time at which the lock ID expires.
|
GetVaultLockResult |
withPolicy(java.lang.String policy)
The vault lock policy as a JSON string, which uses "\" as an escape
character.
|
GetVaultLockResult |
withState(java.lang.String state)
The state of the vault lock.
|
private java.lang.String policy
The vault lock policy as a JSON string, which uses "\" as an escape character.
private java.lang.String state
The state of the vault lock. InProgress
or
Locked
.
private java.lang.String 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.
private java.lang.String creationDate
The UTC date and time at which the vault lock was put into the
InProgress
state.
public void setPolicy(java.lang.String policy)
The vault lock policy as a JSON string, which uses "\" as an escape character.
policy
- The vault lock policy as a JSON string, which uses "\" as an
escape character.public java.lang.String getPolicy()
The vault lock policy as a JSON string, which uses "\" as an escape character.
public GetVaultLockResult withPolicy(java.lang.String policy)
The vault lock policy as a JSON string, which uses "\" as an escape character.
policy
- The vault lock policy as a JSON string, which uses "\" as an
escape character.public void setState(java.lang.String state)
The state of the vault lock. InProgress
or
Locked
.
state
- The state of the vault lock. InProgress
or
Locked
.public java.lang.String getState()
The state of the vault lock. InProgress
or
Locked
.
InProgress
or
Locked
.public GetVaultLockResult withState(java.lang.String state)
The state of the vault lock. InProgress
or
Locked
.
state
- The state of the vault lock. InProgress
or
Locked
.public void setExpirationDate(java.lang.String 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.
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 java.lang.String getExpirationDate()
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.
null
if the vault lock is in a
Locked
state.public GetVaultLockResult withExpirationDate(java.lang.String 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.
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 void setCreationDate(java.lang.String creationDate)
The UTC date and time at which the vault lock was put into the
InProgress
state.
creationDate
- The UTC date and time at which the vault lock was put into the
InProgress
state.public java.lang.String getCreationDate()
The UTC date and time at which the vault lock was put into the
InProgress
state.
InProgress
state.public GetVaultLockResult withCreationDate(java.lang.String creationDate)
The UTC date and time at which the vault lock was put into the
InProgress
state.
creationDate
- The UTC date and time at which the vault lock was put into the
InProgress
state.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public GetVaultLockResult clone()
clone
in class java.lang.Object