@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LockSnapshotResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
LockSnapshotResult() |
Modifier and Type | Method and Description |
---|---|
LockSnapshotResult |
clone() |
boolean |
equals(Object obj) |
Integer |
getCoolOffPeriod()
The compliance mode cooling-off period, in hours.
|
Date |
getCoolOffPeriodExpiresOn()
The date and time at which the compliance mode cooling-off period expires, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ ). |
Date |
getLockCreatedOn()
The date and time at which the snapshot was locked, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ ). |
Integer |
getLockDuration()
The period of time for which the snapshot is locked, in days.
|
Date |
getLockDurationStartTime()
The date and time at which the lock duration started, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ
). |
Date |
getLockExpiresOn()
The date and time at which the lock will expire, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ ). |
String |
getLockState()
The state of the snapshot lock.
|
String |
getSnapshotId()
The ID of the snapshot
|
int |
hashCode() |
void |
setCoolOffPeriod(Integer coolOffPeriod)
The compliance mode cooling-off period, in hours.
|
void |
setCoolOffPeriodExpiresOn(Date coolOffPeriodExpiresOn)
The date and time at which the compliance mode cooling-off period expires, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ ). |
void |
setLockCreatedOn(Date lockCreatedOn)
The date and time at which the snapshot was locked, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ ). |
void |
setLockDuration(Integer lockDuration)
The period of time for which the snapshot is locked, in days.
|
void |
setLockDurationStartTime(Date lockDurationStartTime)
The date and time at which the lock duration started, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ
). |
void |
setLockExpiresOn(Date lockExpiresOn)
The date and time at which the lock will expire, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ ). |
void |
setLockState(String lockState)
The state of the snapshot lock.
|
void |
setSnapshotId(String snapshotId)
The ID of the snapshot
|
String |
toString()
Returns a string representation of this object.
|
LockSnapshotResult |
withCoolOffPeriod(Integer coolOffPeriod)
The compliance mode cooling-off period, in hours.
|
LockSnapshotResult |
withCoolOffPeriodExpiresOn(Date coolOffPeriodExpiresOn)
The date and time at which the compliance mode cooling-off period expires, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ ). |
LockSnapshotResult |
withLockCreatedOn(Date lockCreatedOn)
The date and time at which the snapshot was locked, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ ). |
LockSnapshotResult |
withLockDuration(Integer lockDuration)
The period of time for which the snapshot is locked, in days.
|
LockSnapshotResult |
withLockDurationStartTime(Date lockDurationStartTime)
The date and time at which the lock duration started, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ
). |
LockSnapshotResult |
withLockExpiresOn(Date lockExpiresOn)
The date and time at which the lock will expire, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ ). |
LockSnapshotResult |
withLockState(LockState lockState)
The state of the snapshot lock.
|
LockSnapshotResult |
withLockState(String lockState)
The state of the snapshot lock.
|
LockSnapshotResult |
withSnapshotId(String snapshotId)
The ID of the snapshot
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setSnapshotId(String snapshotId)
The ID of the snapshot
snapshotId
- The ID of the snapshotpublic String getSnapshotId()
The ID of the snapshot
public LockSnapshotResult withSnapshotId(String snapshotId)
The ID of the snapshot
snapshotId
- The ID of the snapshotpublic void setLockState(String lockState)
The state of the snapshot lock. Valid states include:
compliance-cooloff
- The snapshot has been locked in compliance mode but it is still within the
cooling-off period. The snapshot can't be deleted, but it can be unlocked and the lock settings can be modified
by users with appropriate permissions.
governance
- The snapshot is locked in governance mode. The snapshot can't be deleted, but it can be
unlocked and the lock settings can be modified by users with appropriate permissions.
compliance
- The snapshot is locked in compliance mode and the cooling-off period has expired. The
snapshot can't be unlocked or deleted. The lock duration can only be increased by users with appropriate
permissions.
expired
- The snapshot was locked in compliance or governance mode but the lock duration has
expired. The snapshot is not locked and can be deleted.
lockState
- The state of the snapshot lock. Valid states include:
compliance-cooloff
- The snapshot has been locked in compliance mode but it is still within
the cooling-off period. The snapshot can't be deleted, but it can be unlocked and the lock settings can be
modified by users with appropriate permissions.
governance
- The snapshot is locked in governance mode. The snapshot can't be deleted, but it
can be unlocked and the lock settings can be modified by users with appropriate permissions.
compliance
- The snapshot is locked in compliance mode and the cooling-off period has
expired. The snapshot can't be unlocked or deleted. The lock duration can only be increased by users with
appropriate permissions.
expired
- The snapshot was locked in compliance or governance mode but the lock duration has
expired. The snapshot is not locked and can be deleted.
LockState
public String getLockState()
The state of the snapshot lock. Valid states include:
compliance-cooloff
- The snapshot has been locked in compliance mode but it is still within the
cooling-off period. The snapshot can't be deleted, but it can be unlocked and the lock settings can be modified
by users with appropriate permissions.
governance
- The snapshot is locked in governance mode. The snapshot can't be deleted, but it can be
unlocked and the lock settings can be modified by users with appropriate permissions.
compliance
- The snapshot is locked in compliance mode and the cooling-off period has expired. The
snapshot can't be unlocked or deleted. The lock duration can only be increased by users with appropriate
permissions.
expired
- The snapshot was locked in compliance or governance mode but the lock duration has
expired. The snapshot is not locked and can be deleted.
compliance-cooloff
- The snapshot has been locked in compliance mode but it is still within
the cooling-off period. The snapshot can't be deleted, but it can be unlocked and the lock settings can
be modified by users with appropriate permissions.
governance
- The snapshot is locked in governance mode. The snapshot can't be deleted, but
it can be unlocked and the lock settings can be modified by users with appropriate permissions.
compliance
- The snapshot is locked in compliance mode and the cooling-off period has
expired. The snapshot can't be unlocked or deleted. The lock duration can only be increased by users with
appropriate permissions.
expired
- The snapshot was locked in compliance or governance mode but the lock duration has
expired. The snapshot is not locked and can be deleted.
LockState
public LockSnapshotResult withLockState(String lockState)
The state of the snapshot lock. Valid states include:
compliance-cooloff
- The snapshot has been locked in compliance mode but it is still within the
cooling-off period. The snapshot can't be deleted, but it can be unlocked and the lock settings can be modified
by users with appropriate permissions.
governance
- The snapshot is locked in governance mode. The snapshot can't be deleted, but it can be
unlocked and the lock settings can be modified by users with appropriate permissions.
compliance
- The snapshot is locked in compliance mode and the cooling-off period has expired. The
snapshot can't be unlocked or deleted. The lock duration can only be increased by users with appropriate
permissions.
expired
- The snapshot was locked in compliance or governance mode but the lock duration has
expired. The snapshot is not locked and can be deleted.
lockState
- The state of the snapshot lock. Valid states include:
compliance-cooloff
- The snapshot has been locked in compliance mode but it is still within
the cooling-off period. The snapshot can't be deleted, but it can be unlocked and the lock settings can be
modified by users with appropriate permissions.
governance
- The snapshot is locked in governance mode. The snapshot can't be deleted, but it
can be unlocked and the lock settings can be modified by users with appropriate permissions.
compliance
- The snapshot is locked in compliance mode and the cooling-off period has
expired. The snapshot can't be unlocked or deleted. The lock duration can only be increased by users with
appropriate permissions.
expired
- The snapshot was locked in compliance or governance mode but the lock duration has
expired. The snapshot is not locked and can be deleted.
LockState
public LockSnapshotResult withLockState(LockState lockState)
The state of the snapshot lock. Valid states include:
compliance-cooloff
- The snapshot has been locked in compliance mode but it is still within the
cooling-off period. The snapshot can't be deleted, but it can be unlocked and the lock settings can be modified
by users with appropriate permissions.
governance
- The snapshot is locked in governance mode. The snapshot can't be deleted, but it can be
unlocked and the lock settings can be modified by users with appropriate permissions.
compliance
- The snapshot is locked in compliance mode and the cooling-off period has expired. The
snapshot can't be unlocked or deleted. The lock duration can only be increased by users with appropriate
permissions.
expired
- The snapshot was locked in compliance or governance mode but the lock duration has
expired. The snapshot is not locked and can be deleted.
lockState
- The state of the snapshot lock. Valid states include:
compliance-cooloff
- The snapshot has been locked in compliance mode but it is still within
the cooling-off period. The snapshot can't be deleted, but it can be unlocked and the lock settings can be
modified by users with appropriate permissions.
governance
- The snapshot is locked in governance mode. The snapshot can't be deleted, but it
can be unlocked and the lock settings can be modified by users with appropriate permissions.
compliance
- The snapshot is locked in compliance mode and the cooling-off period has
expired. The snapshot can't be unlocked or deleted. The lock duration can only be increased by users with
appropriate permissions.
expired
- The snapshot was locked in compliance or governance mode but the lock duration has
expired. The snapshot is not locked and can be deleted.
LockState
public void setLockDuration(Integer lockDuration)
The period of time for which the snapshot is locked, in days.
lockDuration
- The period of time for which the snapshot is locked, in days.public Integer getLockDuration()
The period of time for which the snapshot is locked, in days.
public LockSnapshotResult withLockDuration(Integer lockDuration)
The period of time for which the snapshot is locked, in days.
lockDuration
- The period of time for which the snapshot is locked, in days.public void setCoolOffPeriod(Integer coolOffPeriod)
The compliance mode cooling-off period, in hours.
coolOffPeriod
- The compliance mode cooling-off period, in hours.public Integer getCoolOffPeriod()
The compliance mode cooling-off period, in hours.
public LockSnapshotResult withCoolOffPeriod(Integer coolOffPeriod)
The compliance mode cooling-off period, in hours.
coolOffPeriod
- The compliance mode cooling-off period, in hours.public void setCoolOffPeriodExpiresOn(Date coolOffPeriodExpiresOn)
The date and time at which the compliance mode cooling-off period expires, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ
).
coolOffPeriodExpiresOn
- The date and time at which the compliance mode cooling-off period expires, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ
).public Date getCoolOffPeriodExpiresOn()
The date and time at which the compliance mode cooling-off period expires, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ
).
YYYY-MM-DDThh:mm:ss.sssZ
).public LockSnapshotResult withCoolOffPeriodExpiresOn(Date coolOffPeriodExpiresOn)
The date and time at which the compliance mode cooling-off period expires, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ
).
coolOffPeriodExpiresOn
- The date and time at which the compliance mode cooling-off period expires, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ
).public void setLockCreatedOn(Date lockCreatedOn)
The date and time at which the snapshot was locked, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
lockCreatedOn
- The date and time at which the snapshot was locked, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ
).public Date getLockCreatedOn()
The date and time at which the snapshot was locked, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
YYYY-MM-DDThh:mm:ss.sssZ
).public LockSnapshotResult withLockCreatedOn(Date lockCreatedOn)
The date and time at which the snapshot was locked, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
lockCreatedOn
- The date and time at which the snapshot was locked, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ
).public void setLockExpiresOn(Date lockExpiresOn)
The date and time at which the lock will expire, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
lockExpiresOn
- The date and time at which the lock will expire, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ
).public Date getLockExpiresOn()
The date and time at which the lock will expire, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
YYYY-MM-DDThh:mm:ss.sssZ
).public LockSnapshotResult withLockExpiresOn(Date lockExpiresOn)
The date and time at which the lock will expire, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
lockExpiresOn
- The date and time at which the lock will expire, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ
).public void setLockDurationStartTime(Date lockDurationStartTime)
The date and time at which the lock duration started, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
lockDurationStartTime
- The date and time at which the lock duration started, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ
).public Date getLockDurationStartTime()
The date and time at which the lock duration started, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
YYYY-MM-DDThh:mm:ss.sssZ
).public LockSnapshotResult withLockDurationStartTime(Date lockDurationStartTime)
The date and time at which the lock duration started, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
lockDurationStartTime
- The date and time at which the lock duration started, in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ
).public String toString()
toString
in class Object
Object.toString()
public LockSnapshotResult clone()