aws-sdk-connectscheduling 1.2.0

AWS SDK for Amazon Connect Scheduling
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ApproveTimeOff`](crate::operation::approve_time_off::builders::ApproveTimeOffFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`instance_id(impl Into<String>)`](crate::operation::approve_time_off::builders::ApproveTimeOffFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::approve_time_off::builders::ApproveTimeOffFluentBuilder::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::approve_time_off::builders::ApproveTimeOffFluentBuilder::user_id) / [`set_user_id(Option<String>)`](crate::operation::approve_time_off::builders::ApproveTimeOffFluentBuilder::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::approve_time_off::builders::ApproveTimeOffFluentBuilder::time_off_id) / [`set_time_off_id(Option<String>)`](crate::operation::approve_time_off::builders::ApproveTimeOffFluentBuilder::set_time_off_id):<br>required: **true**<br><p>The unique identifier of the time off request to approve. 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::approve_time_off::builders::ApproveTimeOffFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::approve_time_off::builders::ApproveTimeOffFluentBuilder::set_description):<br>required: **false**<br><p>A description recorded with the approval. <code>GetTimeOff</code> doesn't return it.</p><br>
    ///   - [`rule_failure_action(RuleFailureAction)`](crate::operation::approve_time_off::builders::ApproveTimeOffFluentBuilder::rule_failure_action) / [`set_rule_failure_action(Option<RuleFailureAction>)`](crate::operation::approve_time_off::builders::ApproveTimeOffFluentBuilder::set_rule_failure_action):<br>required: **false**<br><p>Controls what happens when a configured rule fails. <code>REJECT</code>, the default, records an <code>ERROR</code> and leaves the request <code>REJECTED</code>. <code>OVERRIDE</code> records a <code>WARNING</code> and approves the request, like the <i>Override time off rules</i> option in the Connect Customer admin website. <code>OVERRIDE</code> never waives <code>CONFLICTING_TIME_OFF_REQUEST</code>.</p><br>
    /// - On success, responds with [`ApproveTimeOffOutput`](crate::operation::approve_time_off::ApproveTimeOffOutput)
    /// - On failure, responds with [`SdkError<ApproveTimeOffError>`](crate::operation::approve_time_off::ApproveTimeOffError)
    pub fn approve_time_off(&self) -> crate::operation::approve_time_off::builders::ApproveTimeOffFluentBuilder {
        crate::operation::approve_time_off::builders::ApproveTimeOffFluentBuilder::new(self.handle.clone())
    }
}