#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetMinuteUsageOutput {
pub is_reserved_minutes_customer: ::std::option::Option<bool>,
pub total_reserved_minute_allocation: ::std::option::Option<i32>,
pub upcoming_minutes_scheduled: ::std::option::Option<i32>,
pub total_scheduled_minutes: ::std::option::Option<i32>,
pub estimated_minutes_remaining: ::std::option::Option<i32>,
_request_id: Option<String>,
}
impl GetMinuteUsageOutput {
pub fn is_reserved_minutes_customer(&self) -> ::std::option::Option<bool> {
self.is_reserved_minutes_customer
}
pub fn total_reserved_minute_allocation(&self) -> ::std::option::Option<i32> {
self.total_reserved_minute_allocation
}
pub fn upcoming_minutes_scheduled(&self) -> ::std::option::Option<i32> {
self.upcoming_minutes_scheduled
}
pub fn total_scheduled_minutes(&self) -> ::std::option::Option<i32> {
self.total_scheduled_minutes
}
pub fn estimated_minutes_remaining(&self) -> ::std::option::Option<i32> {
self.estimated_minutes_remaining
}
}
impl ::aws_types::request_id::RequestId for GetMinuteUsageOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetMinuteUsageOutput {
pub fn builder() -> crate::operation::get_minute_usage::builders::GetMinuteUsageOutputBuilder {
crate::operation::get_minute_usage::builders::GetMinuteUsageOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetMinuteUsageOutputBuilder {
pub(crate) is_reserved_minutes_customer: ::std::option::Option<bool>,
pub(crate) total_reserved_minute_allocation: ::std::option::Option<i32>,
pub(crate) upcoming_minutes_scheduled: ::std::option::Option<i32>,
pub(crate) total_scheduled_minutes: ::std::option::Option<i32>,
pub(crate) estimated_minutes_remaining: ::std::option::Option<i32>,
_request_id: Option<String>,
}
impl GetMinuteUsageOutputBuilder {
pub fn is_reserved_minutes_customer(mut self, input: bool) -> Self {
self.is_reserved_minutes_customer = ::std::option::Option::Some(input);
self
}
pub fn set_is_reserved_minutes_customer(mut self, input: ::std::option::Option<bool>) -> Self {
self.is_reserved_minutes_customer = input;
self
}
pub fn get_is_reserved_minutes_customer(&self) -> &::std::option::Option<bool> {
&self.is_reserved_minutes_customer
}
pub fn total_reserved_minute_allocation(mut self, input: i32) -> Self {
self.total_reserved_minute_allocation = ::std::option::Option::Some(input);
self
}
pub fn set_total_reserved_minute_allocation(mut self, input: ::std::option::Option<i32>) -> Self {
self.total_reserved_minute_allocation = input;
self
}
pub fn get_total_reserved_minute_allocation(&self) -> &::std::option::Option<i32> {
&self.total_reserved_minute_allocation
}
pub fn upcoming_minutes_scheduled(mut self, input: i32) -> Self {
self.upcoming_minutes_scheduled = ::std::option::Option::Some(input);
self
}
pub fn set_upcoming_minutes_scheduled(mut self, input: ::std::option::Option<i32>) -> Self {
self.upcoming_minutes_scheduled = input;
self
}
pub fn get_upcoming_minutes_scheduled(&self) -> &::std::option::Option<i32> {
&self.upcoming_minutes_scheduled
}
pub fn total_scheduled_minutes(mut self, input: i32) -> Self {
self.total_scheduled_minutes = ::std::option::Option::Some(input);
self
}
pub fn set_total_scheduled_minutes(mut self, input: ::std::option::Option<i32>) -> Self {
self.total_scheduled_minutes = input;
self
}
pub fn get_total_scheduled_minutes(&self) -> &::std::option::Option<i32> {
&self.total_scheduled_minutes
}
pub fn estimated_minutes_remaining(mut self, input: i32) -> Self {
self.estimated_minutes_remaining = ::std::option::Option::Some(input);
self
}
pub fn set_estimated_minutes_remaining(mut self, input: ::std::option::Option<i32>) -> Self {
self.estimated_minutes_remaining = input;
self
}
pub fn get_estimated_minutes_remaining(&self) -> &::std::option::Option<i32> {
&self.estimated_minutes_remaining
}
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
}
pub fn build(self) -> crate::operation::get_minute_usage::GetMinuteUsageOutput {
crate::operation::get_minute_usage::GetMinuteUsageOutput {
is_reserved_minutes_customer: self.is_reserved_minutes_customer,
total_reserved_minute_allocation: self.total_reserved_minute_allocation,
upcoming_minutes_scheduled: self.upcoming_minutes_scheduled,
total_scheduled_minutes: self.total_scheduled_minutes,
estimated_minutes_remaining: self.estimated_minutes_remaining,
_request_id: self._request_id,
}
}
}