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 void setPolicy(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 String getPolicy()
The vault lock policy as a JSON string, which uses "\" as an escape character.
public GetVaultLockResult withPolicy(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(String state)
The state of the vault lock. InProgress
or
Locked
.
state
- The state of the vault lock. InProgress
or
Locked
.public String getState()
The state of the vault lock. InProgress
or
Locked
.
InProgress
or
Locked
.public GetVaultLockResult withState(String state)
The state of the vault lock. InProgress
or
Locked
.
state
- The state of the vault lock. InProgress
or
Locked
.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 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 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(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(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 String getCreationDate()
The UTC date and time at which the vault lock was put into the
InProgress
state.
InProgress
state.public GetVaultLockResult withCreationDate(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 String toString()
toString
in class Object
Object.toString()
public GetVaultLockResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.