aws-sdk-securityagent 1.2.0

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

/// <p>Output 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 VerifyTargetDomainOutput {
    /// <p>The unique identifier of the target domain.</p>
    pub target_domain_id: ::std::option::Option<::std::string::String>,
    /// <p>The domain name of the target domain.</p>
    pub domain_name: ::std::option::Option<::std::string::String>,
    /// <p>The date and time the target domain was created, in UTC format.</p>
    pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The date and time the target domain was last updated, in UTC format.</p>
    pub updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The date and time the target domain was verified, in UTC format.</p>
    pub verified_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The verification status of the target domain.</p>
    pub status: ::std::option::Option<crate::types::TargetDomainStatus>,
    /// <p>The reason for the current target domain verification status.</p>
    pub verification_status_reason: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl VerifyTargetDomainOutput {
    /// <p>The unique identifier of the target domain.</p>
    pub fn target_domain_id(&self) -> ::std::option::Option<&str> {
        self.target_domain_id.as_deref()
    }
    /// <p>The domain name of the target domain.</p>
    pub fn domain_name(&self) -> ::std::option::Option<&str> {
        self.domain_name.as_deref()
    }
    /// <p>The date and time the target domain was created, in UTC format.</p>
    pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.created_at.as_ref()
    }
    /// <p>The date and time the target domain was last updated, in UTC format.</p>
    pub fn updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.updated_at.as_ref()
    }
    /// <p>The date and time the target domain was verified, in UTC format.</p>
    pub fn verified_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.verified_at.as_ref()
    }
    /// <p>The verification status of the target domain.</p>
    pub fn status(&self) -> ::std::option::Option<&crate::types::TargetDomainStatus> {
        self.status.as_ref()
    }
    /// <p>The reason for the current target domain verification status.</p>
    pub fn verification_status_reason(&self) -> ::std::option::Option<&str> {
        self.verification_status_reason.as_deref()
    }
}
impl ::aws_types::request_id::RequestId for VerifyTargetDomainOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl VerifyTargetDomainOutput {
    /// Creates a new builder-style object to manufacture [`VerifyTargetDomainOutput`](crate::operation::verify_target_domain::VerifyTargetDomainOutput).
    pub fn builder() -> crate::operation::verify_target_domain::builders::VerifyTargetDomainOutputBuilder {
        crate::operation::verify_target_domain::builders::VerifyTargetDomainOutputBuilder::default()
    }
}

/// A builder for [`VerifyTargetDomainOutput`](crate::operation::verify_target_domain::VerifyTargetDomainOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct VerifyTargetDomainOutputBuilder {
    pub(crate) target_domain_id: ::std::option::Option<::std::string::String>,
    pub(crate) domain_name: ::std::option::Option<::std::string::String>,
    pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) verified_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) status: ::std::option::Option<crate::types::TargetDomainStatus>,
    pub(crate) verification_status_reason: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl VerifyTargetDomainOutputBuilder {
    /// <p>The unique identifier of the target domain.</p>
    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.</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.</p>
    pub fn get_target_domain_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.target_domain_id
    }
    /// <p>The domain name of the target domain.</p>
    pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.domain_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The domain name of the target domain.</p>
    pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.domain_name = input;
        self
    }
    /// <p>The domain name of the target domain.</p>
    pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.domain_name
    }
    /// <p>The date and time the target domain was created, in UTC format.</p>
    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.created_at = ::std::option::Option::Some(input);
        self
    }
    /// <p>The date and time the target domain was created, in UTC format.</p>
    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.created_at = input;
        self
    }
    /// <p>The date and time the target domain was created, in UTC format.</p>
    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.created_at
    }
    /// <p>The date and time the target domain was last updated, in UTC format.</p>
    pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.updated_at = ::std::option::Option::Some(input);
        self
    }
    /// <p>The date and time the target domain was last updated, in UTC format.</p>
    pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.updated_at = input;
        self
    }
    /// <p>The date and time the target domain was last updated, in UTC format.</p>
    pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.updated_at
    }
    /// <p>The date and time the target domain was verified, in UTC format.</p>
    pub fn verified_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.verified_at = ::std::option::Option::Some(input);
        self
    }
    /// <p>The date and time the target domain was verified, in UTC format.</p>
    pub fn set_verified_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.verified_at = input;
        self
    }
    /// <p>The date and time the target domain was verified, in UTC format.</p>
    pub fn get_verified_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.verified_at
    }
    /// <p>The verification status of the target domain.</p>
    pub fn status(mut self, input: crate::types::TargetDomainStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The verification status of the target domain.</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::TargetDomainStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The verification status of the target domain.</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::TargetDomainStatus> {
        &self.status
    }
    /// <p>The reason for the current target domain verification status.</p>
    pub fn verification_status_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.verification_status_reason = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The reason for the current target domain verification status.</p>
    pub fn set_verification_status_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.verification_status_reason = input;
        self
    }
    /// <p>The reason for the current target domain verification status.</p>
    pub fn get_verification_status_reason(&self) -> &::std::option::Option<::std::string::String> {
        &self.verification_status_reason
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`VerifyTargetDomainOutput`](crate::operation::verify_target_domain::VerifyTargetDomainOutput).
    pub fn build(self) -> crate::operation::verify_target_domain::VerifyTargetDomainOutput {
        crate::operation::verify_target_domain::VerifyTargetDomainOutput {
            target_domain_id: self.target_domain_id,
            domain_name: self.domain_name,
            created_at: self.created_at,
            updated_at: self.updated_at,
            verified_at: self.verified_at,
            status: self.status,
            verification_status_reason: self.verification_status_reason,
            _request_id: self._request_id,
        }
    }
}