aws-sdk-devopsguru 1.98.0

AWS SDK for Amazon DevOps Guru
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 DescribeAccountOverviewInput {
    /// <p>The start of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred after this day.</p>
    pub from_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The end of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred before this day. If this is not specified, then the current day is used.</p>
    pub to_time: ::std::option::Option<::aws_smithy_types::DateTime>,
}
impl DescribeAccountOverviewInput {
    /// <p>The start of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred after this day.</p>
    pub fn from_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.from_time.as_ref()
    }
    /// <p>The end of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred before this day. If this is not specified, then the current day is used.</p>
    pub fn to_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.to_time.as_ref()
    }
}
impl DescribeAccountOverviewInput {
    /// Creates a new builder-style object to manufacture [`DescribeAccountOverviewInput`](crate::operation::describe_account_overview::DescribeAccountOverviewInput).
    pub fn builder() -> crate::operation::describe_account_overview::builders::DescribeAccountOverviewInputBuilder {
        crate::operation::describe_account_overview::builders::DescribeAccountOverviewInputBuilder::default()
    }
}

/// A builder for [`DescribeAccountOverviewInput`](crate::operation::describe_account_overview::DescribeAccountOverviewInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeAccountOverviewInputBuilder {
    pub(crate) from_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) to_time: ::std::option::Option<::aws_smithy_types::DateTime>,
}
impl DescribeAccountOverviewInputBuilder {
    /// <p>The start of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred after this day.</p>
    /// This field is required.
    pub fn from_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.from_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The start of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred after this day.</p>
    pub fn set_from_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.from_time = input;
        self
    }
    /// <p>The start of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred after this day.</p>
    pub fn get_from_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.from_time
    }
    /// <p>The end of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred before this day. If this is not specified, then the current day is used.</p>
    pub fn to_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.to_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The end of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred before this day. If this is not specified, then the current day is used.</p>
    pub fn set_to_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.to_time = input;
        self
    }
    /// <p>The end of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred before this day. If this is not specified, then the current day is used.</p>
    pub fn get_to_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.to_time
    }
    /// Consumes the builder and constructs a [`DescribeAccountOverviewInput`](crate::operation::describe_account_overview::DescribeAccountOverviewInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::describe_account_overview::DescribeAccountOverviewInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::describe_account_overview::DescribeAccountOverviewInput {
            from_time: self.from_time,
            to_time: self.to_time,
        })
    }
}