#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetHubConfigurationOutput {
pub hub_token_timer_expiry_setting_in_seconds: ::std::option::Option<i64>,
pub updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl GetHubConfigurationOutput {
pub fn hub_token_timer_expiry_setting_in_seconds(&self) -> ::std::option::Option<i64> {
self.hub_token_timer_expiry_setting_in_seconds
}
pub fn updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.updated_at.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetHubConfigurationOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetHubConfigurationOutput {
pub fn builder() -> crate::operation::get_hub_configuration::builders::GetHubConfigurationOutputBuilder {
crate::operation::get_hub_configuration::builders::GetHubConfigurationOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetHubConfigurationOutputBuilder {
pub(crate) hub_token_timer_expiry_setting_in_seconds: ::std::option::Option<i64>,
pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl GetHubConfigurationOutputBuilder {
pub fn hub_token_timer_expiry_setting_in_seconds(mut self, input: i64) -> Self {
self.hub_token_timer_expiry_setting_in_seconds = ::std::option::Option::Some(input);
self
}
pub fn set_hub_token_timer_expiry_setting_in_seconds(mut self, input: ::std::option::Option<i64>) -> Self {
self.hub_token_timer_expiry_setting_in_seconds = input;
self
}
pub fn get_hub_token_timer_expiry_setting_in_seconds(&self) -> &::std::option::Option<i64> {
&self.hub_token_timer_expiry_setting_in_seconds
}
pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.updated_at = ::std::option::Option::Some(input);
self
}
pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.updated_at = input;
self
}
pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.updated_at
}
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_hub_configuration::GetHubConfigurationOutput {
crate::operation::get_hub_configuration::GetHubConfigurationOutput {
hub_token_timer_expiry_setting_in_seconds: self.hub_token_timer_expiry_setting_in_seconds,
updated_at: self.updated_at,
_request_id: self._request_id,
}
}
}