aws-sdk-wickr 1.6.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 RegisterOpentdfConfigInput {
    /// <p>The ID of the Wickr network for which OpenTDF integration will be configured.</p>
    pub network_id: ::std::option::Option<::std::string::String>,
    /// <p>The OIDC client ID used for authenticating with the OpenTDF provider.</p>
    pub client_id: ::std::option::Option<::std::string::String>,
    /// <p>The OIDC client secret used for authenticating with the OpenTDF provider</p>
    pub client_secret: ::std::option::Option<::std::string::String>,
    /// <p>The domain of the OpenTDF server.</p>
    pub domain: ::std::option::Option<::std::string::String>,
    /// <p>The provider of the OpenTDF platform.</p><note>
    /// <p>Currently only Virtru is supported as the OpenTDF provider.</p>
    /// </note>
    pub provider: ::std::option::Option<::std::string::String>,
    /// <p>Perform dry-run test connection of OpenTDF configuration (optional).</p>
    pub dry_run: ::std::option::Option<bool>,
}
impl RegisterOpentdfConfigInput {
    /// <p>The ID of the Wickr network for which OpenTDF integration will be configured.</p>
    pub fn network_id(&self) -> ::std::option::Option<&str> {
        self.network_id.as_deref()
    }
    /// <p>The OIDC client ID used for authenticating with the OpenTDF provider.</p>
    pub fn client_id(&self) -> ::std::option::Option<&str> {
        self.client_id.as_deref()
    }
    /// <p>The OIDC client secret used for authenticating with the OpenTDF provider</p>
    pub fn client_secret(&self) -> ::std::option::Option<&str> {
        self.client_secret.as_deref()
    }
    /// <p>The domain of the OpenTDF server.</p>
    pub fn domain(&self) -> ::std::option::Option<&str> {
        self.domain.as_deref()
    }
    /// <p>The provider of the OpenTDF platform.</p><note>
    /// <p>Currently only Virtru is supported as the OpenTDF provider.</p>
    /// </note>
    pub fn provider(&self) -> ::std::option::Option<&str> {
        self.provider.as_deref()
    }
    /// <p>Perform dry-run test connection of OpenTDF configuration (optional).</p>
    pub fn dry_run(&self) -> ::std::option::Option<bool> {
        self.dry_run
    }
}
impl ::std::fmt::Debug for RegisterOpentdfConfigInput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("RegisterOpentdfConfigInput");
        formatter.field("network_id", &self.network_id);
        formatter.field("client_id", &self.client_id);
        formatter.field("client_secret", &"*** Sensitive Data Redacted ***");
        formatter.field("domain", &self.domain);
        formatter.field("provider", &self.provider);
        formatter.field("dry_run", &self.dry_run);
        formatter.finish()
    }
}
impl RegisterOpentdfConfigInput {
    /// Creates a new builder-style object to manufacture [`RegisterOpentdfConfigInput`](crate::operation::register_opentdf_config::RegisterOpentdfConfigInput).
    pub fn builder() -> crate::operation::register_opentdf_config::builders::RegisterOpentdfConfigInputBuilder {
        crate::operation::register_opentdf_config::builders::RegisterOpentdfConfigInputBuilder::default()
    }
}

/// A builder for [`RegisterOpentdfConfigInput`](crate::operation::register_opentdf_config::RegisterOpentdfConfigInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct RegisterOpentdfConfigInputBuilder {
    pub(crate) network_id: ::std::option::Option<::std::string::String>,
    pub(crate) client_id: ::std::option::Option<::std::string::String>,
    pub(crate) client_secret: ::std::option::Option<::std::string::String>,
    pub(crate) domain: ::std::option::Option<::std::string::String>,
    pub(crate) provider: ::std::option::Option<::std::string::String>,
    pub(crate) dry_run: ::std::option::Option<bool>,
}
impl RegisterOpentdfConfigInputBuilder {
    /// <p>The ID of the Wickr network for which OpenTDF integration will be configured.</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 for which OpenTDF integration will be configured.</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 for which OpenTDF integration will be configured.</p>
    pub fn get_network_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.network_id
    }
    /// <p>The OIDC client ID used for authenticating with the OpenTDF provider.</p>
    /// This field is required.
    pub fn client_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.client_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The OIDC client ID used for authenticating with the OpenTDF provider.</p>
    pub fn set_client_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.client_id = input;
        self
    }
    /// <p>The OIDC client ID used for authenticating with the OpenTDF provider.</p>
    pub fn get_client_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.client_id
    }
    /// <p>The OIDC client secret used for authenticating with the OpenTDF provider</p>
    /// This field is required.
    pub fn client_secret(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.client_secret = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The OIDC client secret used for authenticating with the OpenTDF provider</p>
    pub fn set_client_secret(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.client_secret = input;
        self
    }
    /// <p>The OIDC client secret used for authenticating with the OpenTDF provider</p>
    pub fn get_client_secret(&self) -> &::std::option::Option<::std::string::String> {
        &self.client_secret
    }
    /// <p>The domain of the OpenTDF server.</p>
    /// This field is required.
    pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.domain = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The domain of the OpenTDF server.</p>
    pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.domain = input;
        self
    }
    /// <p>The domain of the OpenTDF server.</p>
    pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
        &self.domain
    }
    /// <p>The provider of the OpenTDF platform.</p><note>
    /// <p>Currently only Virtru is supported as the OpenTDF provider.</p>
    /// </note>
    /// This field is required.
    pub fn provider(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.provider = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The provider of the OpenTDF platform.</p><note>
    /// <p>Currently only Virtru is supported as the OpenTDF provider.</p>
    /// </note>
    pub fn set_provider(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.provider = input;
        self
    }
    /// <p>The provider of the OpenTDF platform.</p><note>
    /// <p>Currently only Virtru is supported as the OpenTDF provider.</p>
    /// </note>
    pub fn get_provider(&self) -> &::std::option::Option<::std::string::String> {
        &self.provider
    }
    /// <p>Perform dry-run test connection of OpenTDF configuration (optional).</p>
    pub fn dry_run(mut self, input: bool) -> Self {
        self.dry_run = ::std::option::Option::Some(input);
        self
    }
    /// <p>Perform dry-run test connection of OpenTDF configuration (optional).</p>
    pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
        self.dry_run = input;
        self
    }
    /// <p>Perform dry-run test connection of OpenTDF configuration (optional).</p>
    pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
        &self.dry_run
    }
    /// Consumes the builder and constructs a [`RegisterOpentdfConfigInput`](crate::operation::register_opentdf_config::RegisterOpentdfConfigInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::register_opentdf_config::RegisterOpentdfConfigInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::register_opentdf_config::RegisterOpentdfConfigInput {
            network_id: self.network_id,
            client_id: self.client_id,
            client_secret: self.client_secret,
            domain: self.domain,
            provider: self.provider,
            dry_run: self.dry_run,
        })
    }
}
impl ::std::fmt::Debug for RegisterOpentdfConfigInputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("RegisterOpentdfConfigInputBuilder");
        formatter.field("network_id", &self.network_id);
        formatter.field("client_id", &self.client_id);
        formatter.field("client_secret", &"*** Sensitive Data Redacted ***");
        formatter.field("domain", &self.domain);
        formatter.field("provider", &self.provider);
        formatter.field("dry_run", &self.dry_run);
        formatter.finish()
    }
}