Interface LockSnapshotResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<LockSnapshotResponse.Builder,LockSnapshotResponse>, Ec2Response.Builder, SdkBuilder<LockSnapshotResponse.Builder,LockSnapshotResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
LockSnapshotResponse

public static interface LockSnapshotResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<LockSnapshotResponse.Builder,LockSnapshotResponse>
  • Method Details

    • snapshotId

      LockSnapshotResponse.Builder snapshotId(String snapshotId)

      The ID of the snapshot

      Parameters:
      snapshotId - The ID of the snapshot
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lockState

      LockSnapshotResponse.Builder lockState(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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lockDuration

      LockSnapshotResponse.Builder lockDuration(Integer lockDuration)

      The period of time for which the snapshot is locked, in days.

      Parameters:
      lockDuration - The period of time for which the snapshot is locked, in days.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • coolOffPeriod

      LockSnapshotResponse.Builder coolOffPeriod(Integer coolOffPeriod)

      The compliance mode cooling-off period, in hours.

      Parameters:
      coolOffPeriod - The compliance mode cooling-off period, in hours.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • coolOffPeriodExpiresOn

      LockSnapshotResponse.Builder coolOffPeriodExpiresOn(Instant 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).

      Parameters:
      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).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lockCreatedOn

      LockSnapshotResponse.Builder lockCreatedOn(Instant lockCreatedOn)

      The date and time at which the snapshot was locked, in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ).

      Parameters:
      lockCreatedOn - The date and time at which the snapshot was locked, in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lockExpiresOn

      LockSnapshotResponse.Builder lockExpiresOn(Instant lockExpiresOn)

      The date and time at which the lock will expire, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ ).

      Parameters:
      lockExpiresOn - The date and time at which the lock will expire, in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lockDurationStartTime

      LockSnapshotResponse.Builder lockDurationStartTime(Instant lockDurationStartTime)

      The date and time at which the lock duration started, in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ).

      Parameters:
      lockDurationStartTime - The date and time at which the lock duration started, in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ).
      Returns:
      Returns a reference to this object so that method calls can be chained together.