Interface LockSnapshotResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<LockSnapshotResponse.Builder,
,LockSnapshotResponse> Ec2Response.Builder
,SdkBuilder<LockSnapshotResponse.Builder,
,LockSnapshotResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
LockSnapshotResponse
-
Method Summary
Modifier and TypeMethodDescriptioncoolOffPeriod
(Integer coolOffPeriod) The compliance mode cooling-off period, in hours.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
).lockCreatedOn
(Instant lockCreatedOn) The date and time at which the snapshot was locked, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).lockDuration
(Integer lockDuration) The period of time for which the snapshot is locked, in days.lockDurationStartTime
(Instant lockDurationStartTime) The date and time at which the lock duration started, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).lockExpiresOn
(Instant lockExpiresOn) The date and time at which the lock will expire, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).The state of the snapshot lock.The state of the snapshot lock.snapshotId
(String snapshotId) The ID of the snapshotMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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
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
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
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
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
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
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.
-