aws-sdk-iotmanagedintegrations 1.42.0

AWS SDK for Managed integrations for AWS IoT Device Management
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 GetHubConfigurationOutput {
    /// <p>A user-defined integer value that represents the hub token timer expiry setting in seconds.</p>
    pub hub_token_timer_expiry_setting_in_seconds: ::std::option::Option<i64>,
    /// <p>The timestamp value of when the hub configuration was updated.</p>
    pub updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    _request_id: Option<String>,
}
impl GetHubConfigurationOutput {
    /// <p>A user-defined integer value that represents the hub token timer expiry setting in seconds.</p>
    pub fn hub_token_timer_expiry_setting_in_seconds(&self) -> ::std::option::Option<i64> {
        self.hub_token_timer_expiry_setting_in_seconds
    }
    /// <p>The timestamp value of when the hub configuration was updated.</p>
    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 {
    /// Creates a new builder-style object to manufacture [`GetHubConfigurationOutput`](crate::operation::get_hub_configuration::GetHubConfigurationOutput).
    pub fn builder() -> crate::operation::get_hub_configuration::builders::GetHubConfigurationOutputBuilder {
        crate::operation::get_hub_configuration::builders::GetHubConfigurationOutputBuilder::default()
    }
}

/// A builder for [`GetHubConfigurationOutput`](crate::operation::get_hub_configuration::GetHubConfigurationOutput).
#[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 {
    /// <p>A user-defined integer value that represents the hub token timer expiry setting in seconds.</p>
    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
    }
    /// <p>A user-defined integer value that represents the hub token timer expiry setting in seconds.</p>
    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
    }
    /// <p>A user-defined integer value that represents the hub token timer expiry setting in seconds.</p>
    pub fn get_hub_token_timer_expiry_setting_in_seconds(&self) -> &::std::option::Option<i64> {
        &self.hub_token_timer_expiry_setting_in_seconds
    }
    /// <p>The timestamp value of when the hub configuration was updated.</p>
    pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.updated_at = ::std::option::Option::Some(input);
        self
    }
    /// <p>The timestamp value of when the hub configuration was updated.</p>
    pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.updated_at = input;
        self
    }
    /// <p>The timestamp value of when the hub configuration was updated.</p>
    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
    }
    /// Consumes the builder and constructs a [`GetHubConfigurationOutput`](crate::operation::get_hub_configuration::GetHubConfigurationOutput).
    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,
        }
    }
}