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 CreateOtaTaskOutput {
    /// <p>The identifier of the over-the-air (OTA) task.</p>
    pub task_id: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of the over-the-air (OTA) task.</p>
    pub task_arn: ::std::option::Option<::std::string::String>,
    /// <p>A description of the over-the-air (OTA) task.</p>
    pub description: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl CreateOtaTaskOutput {
    /// <p>The identifier of the over-the-air (OTA) task.</p>
    pub fn task_id(&self) -> ::std::option::Option<&str> {
        self.task_id.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the over-the-air (OTA) task.</p>
    pub fn task_arn(&self) -> ::std::option::Option<&str> {
        self.task_arn.as_deref()
    }
    /// <p>A description of the over-the-air (OTA) task.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
}
impl ::aws_types::request_id::RequestId for CreateOtaTaskOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CreateOtaTaskOutput {
    /// Creates a new builder-style object to manufacture [`CreateOtaTaskOutput`](crate::operation::create_ota_task::CreateOtaTaskOutput).
    pub fn builder() -> crate::operation::create_ota_task::builders::CreateOtaTaskOutputBuilder {
        crate::operation::create_ota_task::builders::CreateOtaTaskOutputBuilder::default()
    }
}

/// A builder for [`CreateOtaTaskOutput`](crate::operation::create_ota_task::CreateOtaTaskOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateOtaTaskOutputBuilder {
    pub(crate) task_id: ::std::option::Option<::std::string::String>,
    pub(crate) task_arn: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl CreateOtaTaskOutputBuilder {
    /// <p>The identifier of the over-the-air (OTA) task.</p>
    pub fn task_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.task_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the over-the-air (OTA) task.</p>
    pub fn set_task_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.task_id = input;
        self
    }
    /// <p>The identifier of the over-the-air (OTA) task.</p>
    pub fn get_task_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.task_id
    }
    /// <p>The Amazon Resource Name (ARN) of the over-the-air (OTA) task.</p>
    pub fn task_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.task_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the over-the-air (OTA) task.</p>
    pub fn set_task_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.task_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the over-the-air (OTA) task.</p>
    pub fn get_task_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.task_arn
    }
    /// <p>A description of the over-the-air (OTA) task.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A description of the over-the-air (OTA) task.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>A description of the over-the-air (OTA) task.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`CreateOtaTaskOutput`](crate::operation::create_ota_task::CreateOtaTaskOutput).
    pub fn build(self) -> crate::operation::create_ota_task::CreateOtaTaskOutput {
        crate::operation::create_ota_task::CreateOtaTaskOutput {
            task_id: self.task_id,
            task_arn: self.task_arn,
            description: self.description,
            _request_id: self._request_id,
        }
    }
}