aws-sdk-securityagent 1.4.0

AWS SDK for AWS Security Agent
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Input for verifying ownership for a registered target domain in an agent space.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct VerifyTargetDomainInput {
    /// <p>The unique identifier of the target domain to verify.</p>
    pub target_domain_id: ::std::option::Option<::std::string::String>,
}
impl VerifyTargetDomainInput {
    /// <p>The unique identifier of the target domain to verify.</p>
    pub fn target_domain_id(&self) -> ::std::option::Option<&str> {
        self.target_domain_id.as_deref()
    }
}
impl VerifyTargetDomainInput {
    /// Creates a new builder-style object to manufacture [`VerifyTargetDomainInput`](crate::operation::verify_target_domain::VerifyTargetDomainInput).
    pub fn builder() -> crate::operation::verify_target_domain::builders::VerifyTargetDomainInputBuilder {
        crate::operation::verify_target_domain::builders::VerifyTargetDomainInputBuilder::default()
    }
}

/// A builder for [`VerifyTargetDomainInput`](crate::operation::verify_target_domain::VerifyTargetDomainInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct VerifyTargetDomainInputBuilder {
    pub(crate) target_domain_id: ::std::option::Option<::std::string::String>,
}
impl VerifyTargetDomainInputBuilder {
    /// <p>The unique identifier of the target domain to verify.</p>
    /// This field is required.
    pub fn target_domain_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.target_domain_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the target domain to verify.</p>
    pub fn set_target_domain_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.target_domain_id = input;
        self
    }
    /// <p>The unique identifier of the target domain to verify.</p>
    pub fn get_target_domain_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.target_domain_id
    }
    /// Consumes the builder and constructs a [`VerifyTargetDomainInput`](crate::operation::verify_target_domain::VerifyTargetDomainInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::verify_target_domain::VerifyTargetDomainInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::verify_target_domain::VerifyTargetDomainInput {
            target_domain_id: self.target_domain_id,
        })
    }
}