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)]
pub struct CreateBotInput {
    /// <p>The ID of the Wickr network where the bot will be created.</p>
    pub network_id: ::std::option::Option<::std::string::String>,
    /// <p>The username for the bot. This must be unique within the network and follow the network's naming conventions.</p>
    pub username: ::std::option::Option<::std::string::String>,
    /// <p>The display name for the bot that will be visible to users in the network.</p>
    pub display_name: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the security group to which the bot will be assigned.</p>
    pub group_id: ::std::option::Option<::std::string::String>,
    /// <p>The password for the bot account.</p>
    pub challenge: ::std::option::Option<::std::string::String>,
}
impl CreateBotInput {
    /// <p>The ID of the Wickr network where the bot will be created.</p>
    pub fn network_id(&self) -> ::std::option::Option<&str> {
        self.network_id.as_deref()
    }
    /// <p>The username for the bot. This must be unique within the network and follow the network's naming conventions.</p>
    pub fn username(&self) -> ::std::option::Option<&str> {
        self.username.as_deref()
    }
    /// <p>The display name for the bot that will be visible to users in the network.</p>
    pub fn display_name(&self) -> ::std::option::Option<&str> {
        self.display_name.as_deref()
    }
    /// <p>The ID of the security group to which the bot will be assigned.</p>
    pub fn group_id(&self) -> ::std::option::Option<&str> {
        self.group_id.as_deref()
    }
    /// <p>The password for the bot account.</p>
    pub fn challenge(&self) -> ::std::option::Option<&str> {
        self.challenge.as_deref()
    }
}
impl ::std::fmt::Debug for CreateBotInput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("CreateBotInput");
        formatter.field("network_id", &self.network_id);
        formatter.field("username", &self.username);
        formatter.field("display_name", &self.display_name);
        formatter.field("group_id", &self.group_id);
        formatter.field("challenge", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}
impl CreateBotInput {
    /// Creates a new builder-style object to manufacture [`CreateBotInput`](crate::operation::create_bot::CreateBotInput).
    pub fn builder() -> crate::operation::create_bot::builders::CreateBotInputBuilder {
        crate::operation::create_bot::builders::CreateBotInputBuilder::default()
    }
}

/// A builder for [`CreateBotInput`](crate::operation::create_bot::CreateBotInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct CreateBotInputBuilder {
    pub(crate) network_id: ::std::option::Option<::std::string::String>,
    pub(crate) username: ::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>,
}
impl CreateBotInputBuilder {
    /// <p>The ID of the Wickr network where the bot will be created.</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 where the bot will be created.</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 where the bot will be created.</p>
    pub fn get_network_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.network_id
    }
    /// <p>The username for the bot. This must be unique within the network and follow the network's naming conventions.</p>
    /// This field is required.
    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 for the bot. This must be unique within the network and follow the network's naming conventions.</p>
    pub fn set_username(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.username = input;
        self
    }
    /// <p>The username for the bot. This must be unique within the network and follow the network's naming conventions.</p>
    pub fn get_username(&self) -> &::std::option::Option<::std::string::String> {
        &self.username
    }
    /// <p>The display name for the bot that will be visible to users in the network.</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 for the bot that will be visible to users in the network.</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 for the bot that will be visible to users in the network.</p>
    pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.display_name
    }
    /// <p>The ID of the security group to which the bot will be assigned.</p>
    /// This field is required.
    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 will be assigned.</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 will be assigned.</p>
    pub fn get_group_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.group_id
    }
    /// <p>The password for the bot account.</p>
    /// This field is required.
    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 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 password for the bot account.</p>
    pub fn get_challenge(&self) -> &::std::option::Option<::std::string::String> {
        &self.challenge
    }
    /// Consumes the builder and constructs a [`CreateBotInput`](crate::operation::create_bot::CreateBotInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::create_bot::CreateBotInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::create_bot::CreateBotInput {
            network_id: self.network_id,
            username: self.username,
            display_name: self.display_name,
            group_id: self.group_id,
            challenge: self.challenge,
        })
    }
}
impl ::std::fmt::Debug for CreateBotInputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("CreateBotInputBuilder");
        formatter.field("network_id", &self.network_id);
        formatter.field("username", &self.username);
        formatter.field("display_name", &self.display_name);
        formatter.field("group_id", &self.group_id);
        formatter.field("challenge", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}