aws-sdk-route53 1.11.0

AWS SDK for Amazon Route 53
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>A request to get information about a specified hosted zone.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetHostedZoneInput {
    /// <p>The ID of the hosted zone that you want to get information about.</p>
    pub id: ::std::option::Option<::std::string::String>,
}
impl GetHostedZoneInput {
    /// <p>The ID of the hosted zone that you want to get information about.</p>
    pub fn id(&self) -> ::std::option::Option<&str> {
        self.id.as_deref()
    }
}
impl GetHostedZoneInput {
    /// Creates a new builder-style object to manufacture [`GetHostedZoneInput`](crate::operation::get_hosted_zone::GetHostedZoneInput).
    pub fn builder() -> crate::operation::get_hosted_zone::builders::GetHostedZoneInputBuilder {
        crate::operation::get_hosted_zone::builders::GetHostedZoneInputBuilder::default()
    }
}

/// A builder for [`GetHostedZoneInput`](crate::operation::get_hosted_zone::GetHostedZoneInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetHostedZoneInputBuilder {
    pub(crate) id: ::std::option::Option<::std::string::String>,
}
impl GetHostedZoneInputBuilder {
    /// <p>The ID of the hosted zone that you want to get information about.</p>
    /// 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
    }
    /// <p>The ID of the hosted zone that you want to get information about.</p>
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// <p>The ID of the hosted zone that you want to get information about.</p>
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// Consumes the builder and constructs a [`GetHostedZoneInput`](crate::operation::get_hosted_zone::GetHostedZoneInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_hosted_zone::GetHostedZoneInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_hosted_zone::GetHostedZoneInput { id: self.id })
    }
}