Interface LockedSnapshotsInfo.Builder

    • Method Detail

      • ownerId

        LockedSnapshotsInfo.Builder ownerId​(String ownerId)

        The account ID of the Amazon Web Services account that owns the snapshot.

        Parameters:
        ownerId - The account ID of the Amazon Web Services account that owns the snapshot.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • snapshotId

        LockedSnapshotsInfo.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

        LockedSnapshotsInfo.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, LockState
      • lockState

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

        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, LockState
      • lockDuration

        LockedSnapshotsInfo.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

        LockedSnapshotsInfo.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

        LockedSnapshotsInfo.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

        LockedSnapshotsInfo.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.
      • lockDurationStartTime

        LockedSnapshotsInfo.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).

        If you lock a snapshot that is in the pending state, the lock duration starts only once the snapshot enters the completed state.

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

        If you lock a snapshot that is in the pending state, the lock duration starts only once the snapshot enters the completed state.

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

        LockedSnapshotsInfo.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.