aws-sdk-route53resolver 1.111.0

AWS SDK for Amazon Route 53 Resolver
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 DisassociateResolverRuleInput {
    /// <p>The ID of the VPC that you want to disassociate the Resolver rule from.</p>
    pub vpc_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the Resolver rule that you want to disassociate from the specified VPC.</p>
    pub resolver_rule_id: ::std::option::Option<::std::string::String>,
}
impl DisassociateResolverRuleInput {
    /// <p>The ID of the VPC that you want to disassociate the Resolver rule from.</p>
    pub fn vpc_id(&self) -> ::std::option::Option<&str> {
        self.vpc_id.as_deref()
    }
    /// <p>The ID of the Resolver rule that you want to disassociate from the specified VPC.</p>
    pub fn resolver_rule_id(&self) -> ::std::option::Option<&str> {
        self.resolver_rule_id.as_deref()
    }
}
impl DisassociateResolverRuleInput {
    /// Creates a new builder-style object to manufacture [`DisassociateResolverRuleInput`](crate::operation::disassociate_resolver_rule::DisassociateResolverRuleInput).
    pub fn builder() -> crate::operation::disassociate_resolver_rule::builders::DisassociateResolverRuleInputBuilder {
        crate::operation::disassociate_resolver_rule::builders::DisassociateResolverRuleInputBuilder::default()
    }
}

/// A builder for [`DisassociateResolverRuleInput`](crate::operation::disassociate_resolver_rule::DisassociateResolverRuleInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DisassociateResolverRuleInputBuilder {
    pub(crate) vpc_id: ::std::option::Option<::std::string::String>,
    pub(crate) resolver_rule_id: ::std::option::Option<::std::string::String>,
}
impl DisassociateResolverRuleInputBuilder {
    /// <p>The ID of the VPC that you want to disassociate the Resolver rule from.</p>
    /// This field is required.
    pub fn vpc_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.vpc_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the VPC that you want to disassociate the Resolver rule from.</p>
    pub fn set_vpc_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.vpc_id = input;
        self
    }
    /// <p>The ID of the VPC that you want to disassociate the Resolver rule from.</p>
    pub fn get_vpc_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.vpc_id
    }
    /// <p>The ID of the Resolver rule that you want to disassociate from the specified VPC.</p>
    /// This field is required.
    pub fn resolver_rule_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resolver_rule_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the Resolver rule that you want to disassociate from the specified VPC.</p>
    pub fn set_resolver_rule_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resolver_rule_id = input;
        self
    }
    /// <p>The ID of the Resolver rule that you want to disassociate from the specified VPC.</p>
    pub fn get_resolver_rule_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.resolver_rule_id
    }
    /// Consumes the builder and constructs a [`DisassociateResolverRuleInput`](crate::operation::disassociate_resolver_rule::DisassociateResolverRuleInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::disassociate_resolver_rule::DisassociateResolverRuleInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::disassociate_resolver_rule::DisassociateResolverRuleInput {
            vpc_id: self.vpc_id,
            resolver_rule_id: self.resolver_rule_id,
        })
    }
}