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, ::std::fmt::Debug)]
pub struct UpdateSecurityGroupInput {
    /// <p>The ID of the Wickr network containing the security group to update.</p>
    pub network_id: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the security group to update.</p>
    pub group_id: ::std::option::Option<::std::string::String>,
    /// <p>The new name for the security group.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The updated configuration settings for the security group.</p>
    /// <p>Federation mode - 0 (Local federation), 1 (Restricted federation), 2 (Global federation)</p>
    pub security_group_settings: ::std::option::Option<crate::types::SecurityGroupSettings>,
}
impl UpdateSecurityGroupInput {
    /// <p>The ID of the Wickr network containing the security group to update.</p>
    pub fn network_id(&self) -> ::std::option::Option<&str> {
        self.network_id.as_deref()
    }
    /// <p>The unique identifier of the security group to update.</p>
    pub fn group_id(&self) -> ::std::option::Option<&str> {
        self.group_id.as_deref()
    }
    /// <p>The new name for the security group.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The updated configuration settings for the security group.</p>
    /// <p>Federation mode - 0 (Local federation), 1 (Restricted federation), 2 (Global federation)</p>
    pub fn security_group_settings(&self) -> ::std::option::Option<&crate::types::SecurityGroupSettings> {
        self.security_group_settings.as_ref()
    }
}
impl UpdateSecurityGroupInput {
    /// Creates a new builder-style object to manufacture [`UpdateSecurityGroupInput`](crate::operation::update_security_group::UpdateSecurityGroupInput).
    pub fn builder() -> crate::operation::update_security_group::builders::UpdateSecurityGroupInputBuilder {
        crate::operation::update_security_group::builders::UpdateSecurityGroupInputBuilder::default()
    }
}

/// A builder for [`UpdateSecurityGroupInput`](crate::operation::update_security_group::UpdateSecurityGroupInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateSecurityGroupInputBuilder {
    pub(crate) network_id: ::std::option::Option<::std::string::String>,
    pub(crate) group_id: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) security_group_settings: ::std::option::Option<crate::types::SecurityGroupSettings>,
}
impl UpdateSecurityGroupInputBuilder {
    /// <p>The ID of the Wickr network containing the security group 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 security group 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 security group to update.</p>
    pub fn get_network_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.network_id
    }
    /// <p>The unique identifier of the security group to update.</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 unique identifier of the security group to update.</p>
    pub fn set_group_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.group_id = input;
        self
    }
    /// <p>The unique identifier of the security group to update.</p>
    pub fn get_group_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.group_id
    }
    /// <p>The new name for the security group.</p>
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The new name for the security group.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The new name for the security group.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The updated configuration settings for the security group.</p>
    /// <p>Federation mode - 0 (Local federation), 1 (Restricted federation), 2 (Global federation)</p>
    pub fn security_group_settings(mut self, input: crate::types::SecurityGroupSettings) -> Self {
        self.security_group_settings = ::std::option::Option::Some(input);
        self
    }
    /// <p>The updated configuration settings for the security group.</p>
    /// <p>Federation mode - 0 (Local federation), 1 (Restricted federation), 2 (Global federation)</p>
    pub fn set_security_group_settings(mut self, input: ::std::option::Option<crate::types::SecurityGroupSettings>) -> Self {
        self.security_group_settings = input;
        self
    }
    /// <p>The updated configuration settings for the security group.</p>
    /// <p>Federation mode - 0 (Local federation), 1 (Restricted federation), 2 (Global federation)</p>
    pub fn get_security_group_settings(&self) -> &::std::option::Option<crate::types::SecurityGroupSettings> {
        &self.security_group_settings
    }
    /// Consumes the builder and constructs a [`UpdateSecurityGroupInput`](crate::operation::update_security_group::UpdateSecurityGroupInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_security_group::UpdateSecurityGroupInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::update_security_group::UpdateSecurityGroupInput {
            network_id: self.network_id,
            group_id: self.group_id,
            name: self.name,
            security_group_settings: self.security_group_settings,
        })
    }
}