aws-sdk-iotthingsgraph 1.98.0

AWS SDK for AWS IoT Things Graph
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 GetSystemTemplateInput {
    /// <p>The ID of the system to get. This ID must be in the user's namespace.</p>
    /// <p>The ID should be in the following format.</p>
    /// <p><code>urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME</code></p>
    pub id: ::std::option::Option<::std::string::String>,
    /// <p>The number that specifies the revision of the system to get.</p>
    pub revision_number: ::std::option::Option<i64>,
}
impl GetSystemTemplateInput {
    /// <p>The ID of the system to get. This ID must be in the user's namespace.</p>
    /// <p>The ID should be in the following format.</p>
    /// <p><code>urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME</code></p>
    pub fn id(&self) -> ::std::option::Option<&str> {
        self.id.as_deref()
    }
    /// <p>The number that specifies the revision of the system to get.</p>
    pub fn revision_number(&self) -> ::std::option::Option<i64> {
        self.revision_number
    }
}
impl GetSystemTemplateInput {
    /// Creates a new builder-style object to manufacture [`GetSystemTemplateInput`](crate::operation::get_system_template::GetSystemTemplateInput).
    pub fn builder() -> crate::operation::get_system_template::builders::GetSystemTemplateInputBuilder {
        crate::operation::get_system_template::builders::GetSystemTemplateInputBuilder::default()
    }
}

/// A builder for [`GetSystemTemplateInput`](crate::operation::get_system_template::GetSystemTemplateInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetSystemTemplateInputBuilder {
    pub(crate) id: ::std::option::Option<::std::string::String>,
    pub(crate) revision_number: ::std::option::Option<i64>,
}
impl GetSystemTemplateInputBuilder {
    /// <p>The ID of the system to get. This ID must be in the user's namespace.</p>
    /// <p>The ID should be in the following format.</p>
    /// <p><code>urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME</code></p>
    /// This field is required.
    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the system to get. This ID must be in the user's namespace.</p>
    /// <p>The ID should be in the following format.</p>
    /// <p><code>urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME</code></p>
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// <p>The ID of the system to get. This ID must be in the user's namespace.</p>
    /// <p>The ID should be in the following format.</p>
    /// <p><code>urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME</code></p>
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// <p>The number that specifies the revision of the system to get.</p>
    pub fn revision_number(mut self, input: i64) -> Self {
        self.revision_number = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number that specifies the revision of the system to get.</p>
    pub fn set_revision_number(mut self, input: ::std::option::Option<i64>) -> Self {
        self.revision_number = input;
        self
    }
    /// <p>The number that specifies the revision of the system to get.</p>
    pub fn get_revision_number(&self) -> &::std::option::Option<i64> {
        &self.revision_number
    }
    /// Consumes the builder and constructs a [`GetSystemTemplateInput`](crate::operation::get_system_template::GetSystemTemplateInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_system_template::GetSystemTemplateInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_system_template::GetSystemTemplateInput {
            id: self.id,
            revision_number: self.revision_number,
        })
    }
}