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 GetUploadStatusInput {
    /// <p>The ID of the upload. This value is returned by the <code>UploadEntityDefinitions</code> action.</p>
    pub upload_id: ::std::option::Option<::std::string::String>,
}
impl GetUploadStatusInput {
    /// <p>The ID of the upload. This value is returned by the <code>UploadEntityDefinitions</code> action.</p>
    pub fn upload_id(&self) -> ::std::option::Option<&str> {
        self.upload_id.as_deref()
    }
}
impl GetUploadStatusInput {
    /// Creates a new builder-style object to manufacture [`GetUploadStatusInput`](crate::operation::get_upload_status::GetUploadStatusInput).
    pub fn builder() -> crate::operation::get_upload_status::builders::GetUploadStatusInputBuilder {
        crate::operation::get_upload_status::builders::GetUploadStatusInputBuilder::default()
    }
}

/// A builder for [`GetUploadStatusInput`](crate::operation::get_upload_status::GetUploadStatusInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetUploadStatusInputBuilder {
    pub(crate) upload_id: ::std::option::Option<::std::string::String>,
}
impl GetUploadStatusInputBuilder {
    /// <p>The ID of the upload. This value is returned by the <code>UploadEntityDefinitions</code> action.</p>
    /// This field is required.
    pub fn upload_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.upload_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the upload. This value is returned by the <code>UploadEntityDefinitions</code> action.</p>
    pub fn set_upload_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.upload_id = input;
        self
    }
    /// <p>The ID of the upload. This value is returned by the <code>UploadEntityDefinitions</code> action.</p>
    pub fn get_upload_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.upload_id
    }
    /// Consumes the builder and constructs a [`GetUploadStatusInput`](crate::operation::get_upload_status::GetUploadStatusInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_upload_status::GetUploadStatusInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_upload_status::GetUploadStatusInput { upload_id: self.upload_id })
    }
}