// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CancelTimeOff`](crate::operation::cancel_time_off::builders::CancelTimeOffFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`instance_id(impl Into<String>)`](crate::operation::cancel_time_off::builders::CancelTimeOffFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::cancel_time_off::builders::CancelTimeOffFluentBuilder::set_instance_id):<br>required: **true**<br><p>The identifier of the Connect Customer instance. This can be the ID or the ARN of the instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p><br>
/// - [`user_id(impl Into<String>)`](crate::operation::cancel_time_off::builders::CancelTimeOffFluentBuilder::user_id) / [`set_user_id(Option<String>)`](crate::operation::cancel_time_off::builders::CancelTimeOffFluentBuilder::set_user_id):<br>required: **true**<br><p>The identifier of the user who the time off request belongs to. This can be the ID or the ARN of the user.</p><br>
/// - [`time_off_id(impl Into<String>)`](crate::operation::cancel_time_off::builders::CancelTimeOffFluentBuilder::time_off_id) / [`set_time_off_id(Option<String>)`](crate::operation::cancel_time_off::builders::CancelTimeOffFluentBuilder::set_time_off_id):<br>required: **true**<br><p>The unique identifier of the time off request to cancel. If the time off request doesn't belong to <code>UserId</code>, the operation returns <code>ResourceNotFoundException</code>.</p><br>
/// - [`description(impl Into<String>)`](crate::operation::cancel_time_off::builders::CancelTimeOffFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::cancel_time_off::builders::CancelTimeOffFluentBuilder::set_description):<br>required: **false**<br><p>A description recorded with the cancellation. It replaces the description of the time off request. If you omit it, the request's description is removed.</p><br>
/// - On success, responds with [`CancelTimeOffOutput`](crate::operation::cancel_time_off::CancelTimeOffOutput)
/// - On failure, responds with [`SdkError<CancelTimeOffError>`](crate::operation::cancel_time_off::CancelTimeOffError)
pub fn cancel_time_off(&self) -> crate::operation::cancel_time_off::builders::CancelTimeOffFluentBuilder {
crate::operation::cancel_time_off::builders::CancelTimeOffFluentBuilder::new(self.handle.clone())
}
}