aws-sdk-ec2 1.224.0

AWS SDK for Amazon Elastic Compute Cloud
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 CreateDhcpOptionsOutput {
    /// <p>A set of DHCP options.</p>
    pub dhcp_options: ::std::option::Option<crate::types::DhcpOptions>,
    _request_id: Option<String>,
}
impl CreateDhcpOptionsOutput {
    /// <p>A set of DHCP options.</p>
    pub fn dhcp_options(&self) -> ::std::option::Option<&crate::types::DhcpOptions> {
        self.dhcp_options.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for CreateDhcpOptionsOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CreateDhcpOptionsOutput {
    /// Creates a new builder-style object to manufacture [`CreateDhcpOptionsOutput`](crate::operation::create_dhcp_options::CreateDhcpOptionsOutput).
    pub fn builder() -> crate::operation::create_dhcp_options::builders::CreateDhcpOptionsOutputBuilder {
        crate::operation::create_dhcp_options::builders::CreateDhcpOptionsOutputBuilder::default()
    }
}

/// A builder for [`CreateDhcpOptionsOutput`](crate::operation::create_dhcp_options::CreateDhcpOptionsOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateDhcpOptionsOutputBuilder {
    pub(crate) dhcp_options: ::std::option::Option<crate::types::DhcpOptions>,
    _request_id: Option<String>,
}
impl CreateDhcpOptionsOutputBuilder {
    /// <p>A set of DHCP options.</p>
    pub fn dhcp_options(mut self, input: crate::types::DhcpOptions) -> Self {
        self.dhcp_options = ::std::option::Option::Some(input);
        self
    }
    /// <p>A set of DHCP options.</p>
    pub fn set_dhcp_options(mut self, input: ::std::option::Option<crate::types::DhcpOptions>) -> Self {
        self.dhcp_options = input;
        self
    }
    /// <p>A set of DHCP options.</p>
    pub fn get_dhcp_options(&self) -> &::std::option::Option<crate::types::DhcpOptions> {
        &self.dhcp_options
    }
    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 [`CreateDhcpOptionsOutput`](crate::operation::create_dhcp_options::CreateDhcpOptionsOutput).
    pub fn build(self) -> crate::operation::create_dhcp_options::CreateDhcpOptionsOutput {
        crate::operation::create_dhcp_options::CreateDhcpOptionsOutput {
            dhcp_options: self.dhcp_options,
            _request_id: self._request_id,
        }
    }
}