aws-sdk-iotfleetwise 1.108.0

AWS SDK for AWS IoT FleetWise
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 RegisterAccountInput {
    /// <p>The registered Amazon Timestream resources that Amazon Web Services IoT FleetWise edge agent software can transfer your vehicle data to.</p>
    #[deprecated(note = "Amazon Timestream metadata is now passed in the CreateCampaign API.")]
    pub timestream_resources: ::std::option::Option<crate::types::TimestreamResources>,
    /// <p>The IAM resource that allows Amazon Web Services IoT FleetWise to send data to Amazon Timestream.</p>
    #[deprecated(note = "iamResources is no longer used or needed as input")]
    pub iam_resources: ::std::option::Option<crate::types::IamResources>,
}
impl RegisterAccountInput {
    /// <p>The registered Amazon Timestream resources that Amazon Web Services IoT FleetWise edge agent software can transfer your vehicle data to.</p>
    #[deprecated(note = "Amazon Timestream metadata is now passed in the CreateCampaign API.")]
    pub fn timestream_resources(&self) -> ::std::option::Option<&crate::types::TimestreamResources> {
        self.timestream_resources.as_ref()
    }
    /// <p>The IAM resource that allows Amazon Web Services IoT FleetWise to send data to Amazon Timestream.</p>
    #[deprecated(note = "iamResources is no longer used or needed as input")]
    pub fn iam_resources(&self) -> ::std::option::Option<&crate::types::IamResources> {
        self.iam_resources.as_ref()
    }
}
impl RegisterAccountInput {
    /// Creates a new builder-style object to manufacture [`RegisterAccountInput`](crate::operation::register_account::RegisterAccountInput).
    pub fn builder() -> crate::operation::register_account::builders::RegisterAccountInputBuilder {
        crate::operation::register_account::builders::RegisterAccountInputBuilder::default()
    }
}

/// A builder for [`RegisterAccountInput`](crate::operation::register_account::RegisterAccountInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RegisterAccountInputBuilder {
    pub(crate) timestream_resources: ::std::option::Option<crate::types::TimestreamResources>,
    pub(crate) iam_resources: ::std::option::Option<crate::types::IamResources>,
}
impl RegisterAccountInputBuilder {
    /// <p>The registered Amazon Timestream resources that Amazon Web Services IoT FleetWise edge agent software can transfer your vehicle data to.</p>
    #[deprecated(note = "Amazon Timestream metadata is now passed in the CreateCampaign API.")]
    pub fn timestream_resources(mut self, input: crate::types::TimestreamResources) -> Self {
        self.timestream_resources = ::std::option::Option::Some(input);
        self
    }
    /// <p>The registered Amazon Timestream resources that Amazon Web Services IoT FleetWise edge agent software can transfer your vehicle data to.</p>
    #[deprecated(note = "Amazon Timestream metadata is now passed in the CreateCampaign API.")]
    pub fn set_timestream_resources(mut self, input: ::std::option::Option<crate::types::TimestreamResources>) -> Self {
        self.timestream_resources = input;
        self
    }
    /// <p>The registered Amazon Timestream resources that Amazon Web Services IoT FleetWise edge agent software can transfer your vehicle data to.</p>
    #[deprecated(note = "Amazon Timestream metadata is now passed in the CreateCampaign API.")]
    pub fn get_timestream_resources(&self) -> &::std::option::Option<crate::types::TimestreamResources> {
        &self.timestream_resources
    }
    /// <p>The IAM resource that allows Amazon Web Services IoT FleetWise to send data to Amazon Timestream.</p>
    #[deprecated(note = "iamResources is no longer used or needed as input")]
    pub fn iam_resources(mut self, input: crate::types::IamResources) -> Self {
        self.iam_resources = ::std::option::Option::Some(input);
        self
    }
    /// <p>The IAM resource that allows Amazon Web Services IoT FleetWise to send data to Amazon Timestream.</p>
    #[deprecated(note = "iamResources is no longer used or needed as input")]
    pub fn set_iam_resources(mut self, input: ::std::option::Option<crate::types::IamResources>) -> Self {
        self.iam_resources = input;
        self
    }
    /// <p>The IAM resource that allows Amazon Web Services IoT FleetWise to send data to Amazon Timestream.</p>
    #[deprecated(note = "iamResources is no longer used or needed as input")]
    pub fn get_iam_resources(&self) -> &::std::option::Option<crate::types::IamResources> {
        &self.iam_resources
    }
    /// Consumes the builder and constructs a [`RegisterAccountInput`](crate::operation::register_account::RegisterAccountInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::register_account::RegisterAccountInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::register_account::RegisterAccountInput {
            timestream_resources: self.timestream_resources,
            iam_resources: self.iam_resources,
        })
    }
}