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 PutHubConfigurationInput {
    /// <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>,
}
impl PutHubConfigurationInput {
    /// <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
    }
}
impl PutHubConfigurationInput {
    /// Creates a new builder-style object to manufacture [`PutHubConfigurationInput`](crate::operation::put_hub_configuration::PutHubConfigurationInput).
    pub fn builder() -> crate::operation::put_hub_configuration::builders::PutHubConfigurationInputBuilder {
        crate::operation::put_hub_configuration::builders::PutHubConfigurationInputBuilder::default()
    }
}

/// A builder for [`PutHubConfigurationInput`](crate::operation::put_hub_configuration::PutHubConfigurationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct PutHubConfigurationInputBuilder {
    pub(crate) hub_token_timer_expiry_setting_in_seconds: ::std::option::Option<i64>,
}
impl PutHubConfigurationInputBuilder {
    /// <p>A user-defined integer value that represents the hub token timer expiry setting in seconds.</p>
    /// This field is required.
    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
    }
    /// Consumes the builder and constructs a [`PutHubConfigurationInput`](crate::operation::put_hub_configuration::PutHubConfigurationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::put_hub_configuration::PutHubConfigurationInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::put_hub_configuration::PutHubConfigurationInput {
            hub_token_timer_expiry_setting_in_seconds: self.hub_token_timer_expiry_setting_in_seconds,
        })
    }
}