aws-sdk-wickr 1.1.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, ::std::fmt::Debug)]
pub struct GetBotOutput {
    /// <p>The unique identifier of the bot.</p>
    pub bot_id: ::std::option::Option<::std::string::String>,
    /// <p>The display name of the bot that is visible to users.</p>
    pub display_name: ::std::option::Option<::std::string::String>,
    /// <p>The username of the bot.</p>
    pub username: ::std::option::Option<::std::string::String>,
    /// <p>The unique username hash identifier for the bot.</p>
    pub uname: ::std::option::Option<::std::string::String>,
    /// <p>The public key of the bot used for encryption.</p>
    pub pubkey: ::std::option::Option<::std::string::String>,
    /// <p>The current status of the bot (1 for pending, 2 for active).</p>
    pub status: ::std::option::Option<i32>,
    /// <p>The ID of the security group to which the bot belongs.</p>
    pub group_id: ::std::option::Option<::std::string::String>,
    /// <p>Indicates whether the bot has a password set.</p>
    pub has_challenge: ::std::option::Option<bool>,
    /// <p>Indicates whether the bot is currently suspended.</p>
    pub suspended: ::std::option::Option<bool>,
    /// <p>The timestamp of the bot's last login.</p>
    pub last_login: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl GetBotOutput {
    /// <p>The unique identifier of the bot.</p>
    pub fn bot_id(&self) -> ::std::option::Option<&str> {
        self.bot_id.as_deref()
    }
    /// <p>The display name of the bot that is visible to users.</p>
    pub fn display_name(&self) -> ::std::option::Option<&str> {
        self.display_name.as_deref()
    }
    /// <p>The username of the bot.</p>
    pub fn username(&self) -> ::std::option::Option<&str> {
        self.username.as_deref()
    }
    /// <p>The unique username hash identifier for the bot.</p>
    pub fn uname(&self) -> ::std::option::Option<&str> {
        self.uname.as_deref()
    }
    /// <p>The public key of the bot used for encryption.</p>
    pub fn pubkey(&self) -> ::std::option::Option<&str> {
        self.pubkey.as_deref()
    }
    /// <p>The current status of the bot (1 for pending, 2 for active).</p>
    pub fn status(&self) -> ::std::option::Option<i32> {
        self.status
    }
    /// <p>The ID of the security group to which the bot belongs.</p>
    pub fn group_id(&self) -> ::std::option::Option<&str> {
        self.group_id.as_deref()
    }
    /// <p>Indicates whether the bot has a password set.</p>
    pub fn has_challenge(&self) -> ::std::option::Option<bool> {
        self.has_challenge
    }
    /// <p>Indicates whether the bot is currently suspended.</p>
    pub fn suspended(&self) -> ::std::option::Option<bool> {
        self.suspended
    }
    /// <p>The timestamp of the bot's last login.</p>
    pub fn last_login(&self) -> ::std::option::Option<&str> {
        self.last_login.as_deref()
    }
}
impl ::aws_types::request_id::RequestId for GetBotOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetBotOutput {
    /// Creates a new builder-style object to manufacture [`GetBotOutput`](crate::operation::get_bot::GetBotOutput).
    pub fn builder() -> crate::operation::get_bot::builders::GetBotOutputBuilder {
        crate::operation::get_bot::builders::GetBotOutputBuilder::default()
    }
}

/// A builder for [`GetBotOutput`](crate::operation::get_bot::GetBotOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetBotOutputBuilder {
    pub(crate) bot_id: ::std::option::Option<::std::string::String>,
    pub(crate) display_name: ::std::option::Option<::std::string::String>,
    pub(crate) username: ::std::option::Option<::std::string::String>,
    pub(crate) uname: ::std::option::Option<::std::string::String>,
    pub(crate) pubkey: ::std::option::Option<::std::string::String>,
    pub(crate) status: ::std::option::Option<i32>,
    pub(crate) group_id: ::std::option::Option<::std::string::String>,
    pub(crate) has_challenge: ::std::option::Option<bool>,
    pub(crate) suspended: ::std::option::Option<bool>,
    pub(crate) last_login: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl GetBotOutputBuilder {
    /// <p>The unique identifier of the bot.</p>
    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.</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.</p>
    pub fn get_bot_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.bot_id
    }
    /// <p>The display name of the bot that is visible to users.</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 display name of the bot that is visible to users.</p>
    pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.display_name = input;
        self
    }
    /// <p>The display name of the bot that is visible to users.</p>
    pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.display_name
    }
    /// <p>The username of the bot.</p>
    pub fn username(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.username = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The username of the bot.</p>
    pub fn set_username(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.username = input;
        self
    }
    /// <p>The username of the bot.</p>
    pub fn get_username(&self) -> &::std::option::Option<::std::string::String> {
        &self.username
    }
    /// <p>The unique username hash identifier for the bot.</p>
    pub fn uname(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.uname = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique username hash identifier for the bot.</p>
    pub fn set_uname(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.uname = input;
        self
    }
    /// <p>The unique username hash identifier for the bot.</p>
    pub fn get_uname(&self) -> &::std::option::Option<::std::string::String> {
        &self.uname
    }
    /// <p>The public key of the bot used for encryption.</p>
    pub fn pubkey(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.pubkey = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The public key of the bot used for encryption.</p>
    pub fn set_pubkey(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.pubkey = input;
        self
    }
    /// <p>The public key of the bot used for encryption.</p>
    pub fn get_pubkey(&self) -> &::std::option::Option<::std::string::String> {
        &self.pubkey
    }
    /// <p>The current status of the bot (1 for pending, 2 for active).</p>
    pub fn status(mut self, input: i32) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The current status of the bot (1 for pending, 2 for active).</p>
    pub fn set_status(mut self, input: ::std::option::Option<i32>) -> Self {
        self.status = input;
        self
    }
    /// <p>The current status of the bot (1 for pending, 2 for active).</p>
    pub fn get_status(&self) -> &::std::option::Option<i32> {
        &self.status
    }
    /// <p>The ID of the security group to which the bot belongs.</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 security group to which the bot belongs.</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 security group to which the bot belongs.</p>
    pub fn get_group_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.group_id
    }
    /// <p>Indicates whether the bot has a password set.</p>
    pub fn has_challenge(mut self, input: bool) -> Self {
        self.has_challenge = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether the bot has a password set.</p>
    pub fn set_has_challenge(mut self, input: ::std::option::Option<bool>) -> Self {
        self.has_challenge = input;
        self
    }
    /// <p>Indicates whether the bot has a password set.</p>
    pub fn get_has_challenge(&self) -> &::std::option::Option<bool> {
        &self.has_challenge
    }
    /// <p>Indicates whether the bot is currently suspended.</p>
    pub fn suspended(mut self, input: bool) -> Self {
        self.suspended = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether the bot is currently suspended.</p>
    pub fn set_suspended(mut self, input: ::std::option::Option<bool>) -> Self {
        self.suspended = input;
        self
    }
    /// <p>Indicates whether the bot is currently suspended.</p>
    pub fn get_suspended(&self) -> &::std::option::Option<bool> {
        &self.suspended
    }
    /// <p>The timestamp of the bot's last login.</p>
    pub fn last_login(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.last_login = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The timestamp of the bot's last login.</p>
    pub fn set_last_login(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.last_login = input;
        self
    }
    /// <p>The timestamp of the bot's last login.</p>
    pub fn get_last_login(&self) -> &::std::option::Option<::std::string::String> {
        &self.last_login
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`GetBotOutput`](crate::operation::get_bot::GetBotOutput).
    pub fn build(self) -> crate::operation::get_bot::GetBotOutput {
        crate::operation::get_bot::GetBotOutput {
            bot_id: self.bot_id,
            display_name: self.display_name,
            username: self.username,
            uname: self.uname,
            pubkey: self.pubkey,
            status: self.status,
            group_id: self.group_id,
            has_challenge: self.has_challenge,
            suspended: self.suspended,
            last_login: self.last_login,
            _request_id: self._request_id,
        }
    }
}