aws-sdk-apiportal 1.1.0

AWS SDK for APIPortal
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 StopDiscoveryInput {
    /// Identifier of the discovery configuration to stop. Required. Today this is the configuration ARN, which carries the owner account id so a delegated admin or org admin can stop an org-scoped configuration that lives in a different account.
    pub id: ::std::option::Option<::std::string::String>,
}
impl StopDiscoveryInput {
    /// Identifier of the discovery configuration to stop. Required. Today this is the configuration ARN, which carries the owner account id so a delegated admin or org admin can stop an org-scoped configuration that lives in a different account.
    pub fn id(&self) -> ::std::option::Option<&str> {
        self.id.as_deref()
    }
}
impl StopDiscoveryInput {
    /// Creates a new builder-style object to manufacture [`StopDiscoveryInput`](crate::operation::stop_discovery::StopDiscoveryInput).
    pub fn builder() -> crate::operation::stop_discovery::builders::StopDiscoveryInputBuilder {
        crate::operation::stop_discovery::builders::StopDiscoveryInputBuilder::default()
    }
}

/// A builder for [`StopDiscoveryInput`](crate::operation::stop_discovery::StopDiscoveryInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StopDiscoveryInputBuilder {
    pub(crate) id: ::std::option::Option<::std::string::String>,
}
impl StopDiscoveryInputBuilder {
    /// Identifier of the discovery configuration to stop. Required. Today this is the configuration ARN, which carries the owner account id so a delegated admin or org admin can stop an org-scoped configuration that lives in a different account.
    /// This field is required.
    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.id = ::std::option::Option::Some(input.into());
        self
    }
    /// Identifier of the discovery configuration to stop. Required. Today this is the configuration ARN, which carries the owner account id so a delegated admin or org admin can stop an org-scoped configuration that lives in a different account.
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// Identifier of the discovery configuration to stop. Required. Today this is the configuration ARN, which carries the owner account id so a delegated admin or org admin can stop an org-scoped configuration that lives in a different account.
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// Consumes the builder and constructs a [`StopDiscoveryInput`](crate::operation::stop_discovery::StopDiscoveryInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::stop_discovery::StopDiscoveryInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::stop_discovery::StopDiscoveryInput { id: self.id })
    }
}