aws-sdk-wickr 1.8.0

AWS SDK for AWS Wickr Admin API
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)]
pub struct UpdateBotInput {
    /// <p>The ID of the Wickr network containing the bot to update.</p>
    pub network_id: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the bot to update.</p>
    pub bot_id: ::std::option::Option<::std::string::String>,
    /// <p>The new display name for the bot.</p>
    pub display_name: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the new security group to assign the bot to.</p>
    pub group_id: ::std::option::Option<::std::string::String>,
    /// <p>The new password for the bot account.</p>
    pub challenge: ::std::option::Option<::std::string::String>,
    /// <p>Set to true to suspend the bot or false to unsuspend it. Omit this field for standard updates that don't affect suspension status.</p>
    pub suspend: ::std::option::Option<bool>,
}
impl UpdateBotInput {
    /// <p>The ID of the Wickr network containing the bot to update.</p>
    pub fn network_id(&self) -> ::std::option::Option<&str> {
        self.network_id.as_deref()
    }
    /// <p>The unique identifier of the bot to update.</p>
    pub fn bot_id(&self) -> ::std::option::Option<&str> {
        self.bot_id.as_deref()
    }
    /// <p>The new display name for the bot.</p>
    pub fn display_name(&self) -> ::std::option::Option<&str> {
        self.display_name.as_deref()
    }
    /// <p>The ID of the new security group to assign the bot to.</p>
    pub fn group_id(&self) -> ::std::option::Option<&str> {
        self.group_id.as_deref()
    }
    /// <p>The new password for the bot account.</p>
    pub fn challenge(&self) -> ::std::option::Option<&str> {
        self.challenge.as_deref()
    }
    /// <p>Set to true to suspend the bot or false to unsuspend it. Omit this field for standard updates that don't affect suspension status.</p>
    pub fn suspend(&self) -> ::std::option::Option<bool> {
        self.suspend
    }
}
impl ::std::fmt::Debug for UpdateBotInput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("UpdateBotInput");
        formatter.field("network_id", &self.network_id);
        formatter.field("bot_id", &self.bot_id);
        formatter.field("display_name", &self.display_name);
        formatter.field("group_id", &self.group_id);
        formatter.field("challenge", &"*** Sensitive Data Redacted ***");
        formatter.field("suspend", &self.suspend);
        formatter.finish()
    }
}
impl UpdateBotInput {
    /// Creates a new builder-style object to manufacture [`UpdateBotInput`](crate::operation::update_bot::UpdateBotInput).
    pub fn builder() -> crate::operation::update_bot::builders::UpdateBotInputBuilder {
        crate::operation::update_bot::builders::UpdateBotInputBuilder::default()
    }
}

/// A builder for [`UpdateBotInput`](crate::operation::update_bot::UpdateBotInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct UpdateBotInputBuilder {
    pub(crate) network_id: ::std::option::Option<::std::string::String>,
    pub(crate) bot_id: ::std::option::Option<::std::string::String>,
    pub(crate) display_name: ::std::option::Option<::std::string::String>,
    pub(crate) group_id: ::std::option::Option<::std::string::String>,
    pub(crate) challenge: ::std::option::Option<::std::string::String>,
    pub(crate) suspend: ::std::option::Option<bool>,
}
impl UpdateBotInputBuilder {
    /// <p>The ID of the Wickr network containing the bot to update.</p>
    /// This field is required.
    pub fn network_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.network_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the Wickr network containing the bot to update.</p>
    pub fn set_network_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.network_id = input;
        self
    }
    /// <p>The ID of the Wickr network containing the bot to update.</p>
    pub fn get_network_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.network_id
    }
    /// <p>The unique identifier of the bot to update.</p>
    /// This field is required.
    pub fn bot_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.bot_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the bot to update.</p>
    pub fn set_bot_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.bot_id = input;
        self
    }
    /// <p>The unique identifier of the bot to update.</p>
    pub fn get_bot_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.bot_id
    }
    /// <p>The new display name for the bot.</p>
    pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.display_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The new display name for the bot.</p>
    pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.display_name = input;
        self
    }
    /// <p>The new display name for the bot.</p>
    pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.display_name
    }
    /// <p>The ID of the new security group to assign the bot to.</p>
    pub fn group_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.group_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the new security group to assign the bot to.</p>
    pub fn set_group_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.group_id = input;
        self
    }
    /// <p>The ID of the new security group to assign the bot to.</p>
    pub fn get_group_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.group_id
    }
    /// <p>The new password for the bot account.</p>
    pub fn challenge(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.challenge = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The new password for the bot account.</p>
    pub fn set_challenge(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.challenge = input;
        self
    }
    /// <p>The new password for the bot account.</p>
    pub fn get_challenge(&self) -> &::std::option::Option<::std::string::String> {
        &self.challenge
    }
    /// <p>Set to true to suspend the bot or false to unsuspend it. Omit this field for standard updates that don't affect suspension status.</p>
    pub fn suspend(mut self, input: bool) -> Self {
        self.suspend = ::std::option::Option::Some(input);
        self
    }
    /// <p>Set to true to suspend the bot or false to unsuspend it. Omit this field for standard updates that don't affect suspension status.</p>
    pub fn set_suspend(mut self, input: ::std::option::Option<bool>) -> Self {
        self.suspend = input;
        self
    }
    /// <p>Set to true to suspend the bot or false to unsuspend it. Omit this field for standard updates that don't affect suspension status.</p>
    pub fn get_suspend(&self) -> &::std::option::Option<bool> {
        &self.suspend
    }
    /// Consumes the builder and constructs a [`UpdateBotInput`](crate::operation::update_bot::UpdateBotInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::update_bot::UpdateBotInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::update_bot::UpdateBotInput {
            network_id: self.network_id,
            bot_id: self.bot_id,
            display_name: self.display_name,
            group_id: self.group_id,
            challenge: self.challenge,
            suspend: self.suspend,
        })
    }
}
impl ::std::fmt::Debug for UpdateBotInputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("UpdateBotInputBuilder");
        formatter.field("network_id", &self.network_id);
        formatter.field("bot_id", &self.bot_id);
        formatter.field("display_name", &self.display_name);
        formatter.field("group_id", &self.group_id);
        formatter.field("challenge", &"*** Sensitive Data Redacted ***");
        formatter.field("suspend", &self.suspend);
        formatter.finish()
    }
}