aws-sdk-iotmanagedintegrations 1.43.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 DeleteOtaTaskInput {
    /// <p>The identifier of the over-the-air (OTA) task.</p>
    pub identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteOtaTaskInput {
    /// <p>The identifier of the over-the-air (OTA) task.</p>
    pub fn identifier(&self) -> ::std::option::Option<&str> {
        self.identifier.as_deref()
    }
}
impl DeleteOtaTaskInput {
    /// Creates a new builder-style object to manufacture [`DeleteOtaTaskInput`](crate::operation::delete_ota_task::DeleteOtaTaskInput).
    pub fn builder() -> crate::operation::delete_ota_task::builders::DeleteOtaTaskInputBuilder {
        crate::operation::delete_ota_task::builders::DeleteOtaTaskInputBuilder::default()
    }
}

/// A builder for [`DeleteOtaTaskInput`](crate::operation::delete_ota_task::DeleteOtaTaskInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteOtaTaskInputBuilder {
    pub(crate) identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteOtaTaskInputBuilder {
    /// <p>The identifier of the over-the-air (OTA) task.</p>
    /// This field is required.
    pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the over-the-air (OTA) task.</p>
    pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.identifier = input;
        self
    }
    /// <p>The identifier of the over-the-air (OTA) task.</p>
    pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.identifier
    }
    /// Consumes the builder and constructs a [`DeleteOtaTaskInput`](crate::operation::delete_ota_task::DeleteOtaTaskInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_ota_task::DeleteOtaTaskInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_ota_task::DeleteOtaTaskInput { identifier: self.identifier })
    }
}