aws-sdk-connectscheduling 1.2.0

AWS SDK for Amazon Connect Scheduling
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetTimeOff`](crate::operation::get_time_off::builders::GetTimeOffFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`instance_id(impl Into<String>)`](crate::operation::get_time_off::builders::GetTimeOffFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::get_time_off::builders::GetTimeOffFluentBuilder::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::get_time_off::builders::GetTimeOffFluentBuilder::user_id) / [`set_user_id(Option<String>)`](crate::operation::get_time_off::builders::GetTimeOffFluentBuilder::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::get_time_off::builders::GetTimeOffFluentBuilder::time_off_id) / [`set_time_off_id(Option<String>)`](crate::operation::get_time_off::builders::GetTimeOffFluentBuilder::set_time_off_id):<br>required: **true**<br><p>The identifier of the time off request. If the time off request doesn't belong to <code>UserId</code>, the operation returns <code>ResourceNotFoundException</code>.</p><br>
    /// - On success, responds with [`GetTimeOffOutput`](crate::operation::get_time_off::GetTimeOffOutput) with field(s):
    ///   - [`time_off_id(String)`](crate::operation::get_time_off::GetTimeOffOutput::time_off_id): <p>The identifier of the time off request.</p>
    ///   - [`user_id(String)`](crate::operation::get_time_off::GetTimeOffOutput::user_id): <p>The identifier of the user the time off is for.</p>
    ///   - [`shift_activity_id(String)`](crate::operation::get_time_off::GetTimeOffOutput::shift_activity_id): <p>The identifier of the shift activity for the time off request.</p>
    ///   - [`start_at(DateTime)`](crate::operation::get_time_off::GetTimeOffOutput::start_at): <p>The start of the time off window, inclusive, as sent to <code>CreateTimeOff</code>.</p>
    ///   - [`end_at(DateTime)`](crate::operation::get_time_off::GetTimeOffOutput::end_at): <p>The end of the time off window, exclusive, as sent to <code>CreateTimeOff</code>.</p>
    ///   - [`status(TimeOffStatus)`](crate::operation::get_time_off::GetTimeOffOutput::status): <p>The status of the time off request.</p> <ul>  <li>   <p><code>PENDING</code>: Connect Customer is processing a change to the request, which then changes to another status. An edit in the Connect Customer admin website can also make a request <code>PENDING</code>, so an <code>APPROVED</code> request can become <code>PENDING</code> and then end <code>APPROVED</code> or <code>REJECTED</code>.</p></li>  <li>   <p><code>AWAITING_APPROVAL</code>: the request is waiting for an <code>ApproveTimeOff</code> or <code>RejectTimeOff</code> call.</p></li> </ul>
    ///   - [`description(Option<String>)`](crate::operation::get_time_off::GetTimeOffOutput::description): <p>The description of the time off request. <code>CreateTimeOff</code> sets it, and <code>CancelTimeOff</code> replaces or removes it. An edit in the Connect Customer admin website can also change it. <code>GetTimeOff</code> doesn't return descriptions sent with <code>ApproveTimeOff</code> or <code>RejectTimeOff</code>.</p>
    ///   - [`validation_results(Option<Vec::<TimeOffValidationResult>>)`](crate::operation::get_time_off::GetTimeOffOutput::validation_results): <p>Warnings or failures produced while processing the time off request.</p>
    ///   - [`created_by(Option<ActorInfo>)`](crate::operation::get_time_off::GetTimeOffOutput::created_by): <p>The identity that created the request. Immutable for the life of the request.</p>
    ///   - [`created_at(DateTime)`](crate::operation::get_time_off::GetTimeOffOutput::created_at): <p>The timestamp when the time off request was created.</p>
    ///   - [`updated_by(Option<ActorInfo>)`](crate::operation::get_time_off::GetTimeOffOutput::updated_by): <p>The identity that made the most recent <code>ApproveTimeOff</code>, <code>RejectTimeOff</code>, or <code>CancelTimeOff</code> call on the request, or took the same action in the Connect Customer admin website. Absent until one of those actions is taken, including after Connect Customer decides an <code>AUTOMATIC</code> request. <code>UpdatedAt</code> also changes when a <code>PENDING</code> request changes to another status and for other edits, which don't set <code>UpdatedBy</code>.</p>
    ///   - [`updated_at(DateTime)`](crate::operation::get_time_off::GetTimeOffOutput::updated_at): <p>The timestamp when the time off request was last modified.</p>
    /// - On failure, responds with [`SdkError<GetTimeOffError>`](crate::operation::get_time_off::GetTimeOffError)
    pub fn get_time_off(&self) -> crate::operation::get_time_off::builders::GetTimeOffFluentBuilder {
        crate::operation::get_time_off::builders::GetTimeOffFluentBuilder::new(self.handle.clone())
    }
}