aws-sdk-odb 1.23.0

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

/// <p>An enumeration of months used for scheduling maintenance windows.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Month {
    /// <p>The name of the month.</p>
    pub name: ::std::option::Option<crate::types::MonthName>,
}
impl Month {
    /// <p>The name of the month.</p>
    pub fn name(&self) -> ::std::option::Option<&crate::types::MonthName> {
        self.name.as_ref()
    }
}
impl Month {
    /// Creates a new builder-style object to manufacture [`Month`](crate::types::Month).
    pub fn builder() -> crate::types::builders::MonthBuilder {
        crate::types::builders::MonthBuilder::default()
    }
}

/// A builder for [`Month`](crate::types::Month).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct MonthBuilder {
    pub(crate) name: ::std::option::Option<crate::types::MonthName>,
}
impl MonthBuilder {
    /// <p>The name of the month.</p>
    pub fn name(mut self, input: crate::types::MonthName) -> Self {
        self.name = ::std::option::Option::Some(input);
        self
    }
    /// <p>The name of the month.</p>
    pub fn set_name(mut self, input: ::std::option::Option<crate::types::MonthName>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the month.</p>
    pub fn get_name(&self) -> &::std::option::Option<crate::types::MonthName> {
        &self.name
    }
    /// Consumes the builder and constructs a [`Month`](crate::types::Month).
    pub fn build(self) -> crate::types::Month {
        crate::types::Month { name: self.name }
    }
}