aws-sdk-connect 1.166.0

AWS SDK for Amazon Connect Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateUserConfigInput {
    /// <p>The list of auto-accept configuration settings for each channel. When auto-accept is enabled for a channel, available agents are automatically connected to contacts from that channel without needing to manually accept. Auto-accept connects agents to contacts in less than one second.</p>
    pub auto_accept_configs: ::std::option::Option<::std::vec::Vec<crate::types::AutoAcceptConfig>>,
    /// <p>The list of after contact work (ACW) timeout configuration settings for each channel. ACW timeout specifies how many seconds agents have for after contact work, such as entering notes about the contact. The minimum setting is 1 second, and the maximum is 2,000,000 seconds (24 days). Enter 0 for an indefinite amount of time, meaning agents must manually choose to end ACW.</p>
    pub after_contact_work_configs: ::std::option::Option<::std::vec::Vec<crate::types::AfterContactWorkConfigPerChannel>>,
    /// <p>The list of phone number configuration settings for each channel.</p>
    pub phone_number_configs: ::std::option::Option<::std::vec::Vec<crate::types::PhoneNumberConfig>>,
    /// <p>The list of persistent connection configuration settings for each channel.</p>
    pub persistent_connection_configs: ::std::option::Option<::std::vec::Vec<crate::types::PersistentConnectionConfig>>,
    /// <p>The list of voice enhancement configuration settings for each channel.</p>
    pub voice_enhancement_configs: ::std::option::Option<::std::vec::Vec<crate::types::VoiceEnhancementConfig>>,
    /// <p>The identifier of the user account.</p>
    pub user_id: ::std::option::Option<::std::string::String>,
    /// <p>The identifier of the Amazon Connect 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>
    pub instance_id: ::std::option::Option<::std::string::String>,
}
impl UpdateUserConfigInput {
    /// <p>The list of auto-accept configuration settings for each channel. When auto-accept is enabled for a channel, available agents are automatically connected to contacts from that channel without needing to manually accept. Auto-accept connects agents to contacts in less than one second.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.auto_accept_configs.is_none()`.
    pub fn auto_accept_configs(&self) -> &[crate::types::AutoAcceptConfig] {
        self.auto_accept_configs.as_deref().unwrap_or_default()
    }
    /// <p>The list of after contact work (ACW) timeout configuration settings for each channel. ACW timeout specifies how many seconds agents have for after contact work, such as entering notes about the contact. The minimum setting is 1 second, and the maximum is 2,000,000 seconds (24 days). Enter 0 for an indefinite amount of time, meaning agents must manually choose to end ACW.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.after_contact_work_configs.is_none()`.
    pub fn after_contact_work_configs(&self) -> &[crate::types::AfterContactWorkConfigPerChannel] {
        self.after_contact_work_configs.as_deref().unwrap_or_default()
    }
    /// <p>The list of phone number configuration settings for each channel.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.phone_number_configs.is_none()`.
    pub fn phone_number_configs(&self) -> &[crate::types::PhoneNumberConfig] {
        self.phone_number_configs.as_deref().unwrap_or_default()
    }
    /// <p>The list of persistent connection configuration settings for each channel.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.persistent_connection_configs.is_none()`.
    pub fn persistent_connection_configs(&self) -> &[crate::types::PersistentConnectionConfig] {
        self.persistent_connection_configs.as_deref().unwrap_or_default()
    }
    /// <p>The list of voice enhancement configuration settings for each channel.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.voice_enhancement_configs.is_none()`.
    pub fn voice_enhancement_configs(&self) -> &[crate::types::VoiceEnhancementConfig] {
        self.voice_enhancement_configs.as_deref().unwrap_or_default()
    }
    /// <p>The identifier of the user account.</p>
    pub fn user_id(&self) -> ::std::option::Option<&str> {
        self.user_id.as_deref()
    }
    /// <p>The identifier of the Amazon Connect 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>
    pub fn instance_id(&self) -> ::std::option::Option<&str> {
        self.instance_id.as_deref()
    }
}
impl UpdateUserConfigInput {
    /// Creates a new builder-style object to manufacture [`UpdateUserConfigInput`](crate::operation::update_user_config::UpdateUserConfigInput).
    pub fn builder() -> crate::operation::update_user_config::builders::UpdateUserConfigInputBuilder {
        crate::operation::update_user_config::builders::UpdateUserConfigInputBuilder::default()
    }
}

/// A builder for [`UpdateUserConfigInput`](crate::operation::update_user_config::UpdateUserConfigInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateUserConfigInputBuilder {
    pub(crate) auto_accept_configs: ::std::option::Option<::std::vec::Vec<crate::types::AutoAcceptConfig>>,
    pub(crate) after_contact_work_configs: ::std::option::Option<::std::vec::Vec<crate::types::AfterContactWorkConfigPerChannel>>,
    pub(crate) phone_number_configs: ::std::option::Option<::std::vec::Vec<crate::types::PhoneNumberConfig>>,
    pub(crate) persistent_connection_configs: ::std::option::Option<::std::vec::Vec<crate::types::PersistentConnectionConfig>>,
    pub(crate) voice_enhancement_configs: ::std::option::Option<::std::vec::Vec<crate::types::VoiceEnhancementConfig>>,
    pub(crate) user_id: ::std::option::Option<::std::string::String>,
    pub(crate) instance_id: ::std::option::Option<::std::string::String>,
}
impl UpdateUserConfigInputBuilder {
    /// Appends an item to `auto_accept_configs`.
    ///
    /// To override the contents of this collection use [`set_auto_accept_configs`](Self::set_auto_accept_configs).
    ///
    /// <p>The list of auto-accept configuration settings for each channel. When auto-accept is enabled for a channel, available agents are automatically connected to contacts from that channel without needing to manually accept. Auto-accept connects agents to contacts in less than one second.</p>
    pub fn auto_accept_configs(mut self, input: crate::types::AutoAcceptConfig) -> Self {
        let mut v = self.auto_accept_configs.unwrap_or_default();
        v.push(input);
        self.auto_accept_configs = ::std::option::Option::Some(v);
        self
    }
    /// <p>The list of auto-accept configuration settings for each channel. When auto-accept is enabled for a channel, available agents are automatically connected to contacts from that channel without needing to manually accept. Auto-accept connects agents to contacts in less than one second.</p>
    pub fn set_auto_accept_configs(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AutoAcceptConfig>>) -> Self {
        self.auto_accept_configs = input;
        self
    }
    /// <p>The list of auto-accept configuration settings for each channel. When auto-accept is enabled for a channel, available agents are automatically connected to contacts from that channel without needing to manually accept. Auto-accept connects agents to contacts in less than one second.</p>
    pub fn get_auto_accept_configs(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AutoAcceptConfig>> {
        &self.auto_accept_configs
    }
    /// Appends an item to `after_contact_work_configs`.
    ///
    /// To override the contents of this collection use [`set_after_contact_work_configs`](Self::set_after_contact_work_configs).
    ///
    /// <p>The list of after contact work (ACW) timeout configuration settings for each channel. ACW timeout specifies how many seconds agents have for after contact work, such as entering notes about the contact. The minimum setting is 1 second, and the maximum is 2,000,000 seconds (24 days). Enter 0 for an indefinite amount of time, meaning agents must manually choose to end ACW.</p>
    pub fn after_contact_work_configs(mut self, input: crate::types::AfterContactWorkConfigPerChannel) -> Self {
        let mut v = self.after_contact_work_configs.unwrap_or_default();
        v.push(input);
        self.after_contact_work_configs = ::std::option::Option::Some(v);
        self
    }
    /// <p>The list of after contact work (ACW) timeout configuration settings for each channel. ACW timeout specifies how many seconds agents have for after contact work, such as entering notes about the contact. The minimum setting is 1 second, and the maximum is 2,000,000 seconds (24 days). Enter 0 for an indefinite amount of time, meaning agents must manually choose to end ACW.</p>
    pub fn set_after_contact_work_configs(
        mut self,
        input: ::std::option::Option<::std::vec::Vec<crate::types::AfterContactWorkConfigPerChannel>>,
    ) -> Self {
        self.after_contact_work_configs = input;
        self
    }
    /// <p>The list of after contact work (ACW) timeout configuration settings for each channel. ACW timeout specifies how many seconds agents have for after contact work, such as entering notes about the contact. The minimum setting is 1 second, and the maximum is 2,000,000 seconds (24 days). Enter 0 for an indefinite amount of time, meaning agents must manually choose to end ACW.</p>
    pub fn get_after_contact_work_configs(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AfterContactWorkConfigPerChannel>> {
        &self.after_contact_work_configs
    }
    /// Appends an item to `phone_number_configs`.
    ///
    /// To override the contents of this collection use [`set_phone_number_configs`](Self::set_phone_number_configs).
    ///
    /// <p>The list of phone number configuration settings for each channel.</p>
    pub fn phone_number_configs(mut self, input: crate::types::PhoneNumberConfig) -> Self {
        let mut v = self.phone_number_configs.unwrap_or_default();
        v.push(input);
        self.phone_number_configs = ::std::option::Option::Some(v);
        self
    }
    /// <p>The list of phone number configuration settings for each channel.</p>
    pub fn set_phone_number_configs(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::PhoneNumberConfig>>) -> Self {
        self.phone_number_configs = input;
        self
    }
    /// <p>The list of phone number configuration settings for each channel.</p>
    pub fn get_phone_number_configs(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::PhoneNumberConfig>> {
        &self.phone_number_configs
    }
    /// Appends an item to `persistent_connection_configs`.
    ///
    /// To override the contents of this collection use [`set_persistent_connection_configs`](Self::set_persistent_connection_configs).
    ///
    /// <p>The list of persistent connection configuration settings for each channel.</p>
    pub fn persistent_connection_configs(mut self, input: crate::types::PersistentConnectionConfig) -> Self {
        let mut v = self.persistent_connection_configs.unwrap_or_default();
        v.push(input);
        self.persistent_connection_configs = ::std::option::Option::Some(v);
        self
    }
    /// <p>The list of persistent connection configuration settings for each channel.</p>
    pub fn set_persistent_connection_configs(
        mut self,
        input: ::std::option::Option<::std::vec::Vec<crate::types::PersistentConnectionConfig>>,
    ) -> Self {
        self.persistent_connection_configs = input;
        self
    }
    /// <p>The list of persistent connection configuration settings for each channel.</p>
    pub fn get_persistent_connection_configs(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::PersistentConnectionConfig>> {
        &self.persistent_connection_configs
    }
    /// Appends an item to `voice_enhancement_configs`.
    ///
    /// To override the contents of this collection use [`set_voice_enhancement_configs`](Self::set_voice_enhancement_configs).
    ///
    /// <p>The list of voice enhancement configuration settings for each channel.</p>
    pub fn voice_enhancement_configs(mut self, input: crate::types::VoiceEnhancementConfig) -> Self {
        let mut v = self.voice_enhancement_configs.unwrap_or_default();
        v.push(input);
        self.voice_enhancement_configs = ::std::option::Option::Some(v);
        self
    }
    /// <p>The list of voice enhancement configuration settings for each channel.</p>
    pub fn set_voice_enhancement_configs(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::VoiceEnhancementConfig>>) -> Self {
        self.voice_enhancement_configs = input;
        self
    }
    /// <p>The list of voice enhancement configuration settings for each channel.</p>
    pub fn get_voice_enhancement_configs(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::VoiceEnhancementConfig>> {
        &self.voice_enhancement_configs
    }
    /// <p>The identifier of the user account.</p>
    /// This field is required.
    pub fn user_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.user_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the user account.</p>
    pub fn set_user_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.user_id = input;
        self
    }
    /// <p>The identifier of the user account.</p>
    pub fn get_user_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.user_id
    }
    /// <p>The identifier of the Amazon Connect 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>
    /// This field is required.
    pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.instance_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the Amazon Connect 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>
    pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.instance_id = input;
        self
    }
    /// <p>The identifier of the Amazon Connect 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>
    pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.instance_id
    }
    /// Consumes the builder and constructs a [`UpdateUserConfigInput`](crate::operation::update_user_config::UpdateUserConfigInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_user_config::UpdateUserConfigInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::update_user_config::UpdateUserConfigInput {
            auto_accept_configs: self.auto_accept_configs,
            after_contact_work_configs: self.after_contact_work_configs,
            phone_number_configs: self.phone_number_configs,
            persistent_connection_configs: self.persistent_connection_configs,
            voice_enhancement_configs: self.voice_enhancement_configs,
            user_id: self.user_id,
            instance_id: self.instance_id,
        })
    }
}