aws-sdk-dataexchange 1.102.0

AWS SDK for AWS Data Exchange
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 CreateJobInput {
    /// <p>The configuration for the asset, including tags to be applied to assets created by the job.</p>
    pub asset_configuration: ::std::option::Option<crate::types::AssetConfiguration>,
    /// <p>The details for the CreateJob request.</p>
    pub details: ::std::option::Option<crate::types::RequestDetails>,
    /// <p>The type of job to be created.</p>
    pub r#type: ::std::option::Option<crate::types::Type>,
}
impl CreateJobInput {
    /// <p>The configuration for the asset, including tags to be applied to assets created by the job.</p>
    pub fn asset_configuration(&self) -> ::std::option::Option<&crate::types::AssetConfiguration> {
        self.asset_configuration.as_ref()
    }
    /// <p>The details for the CreateJob request.</p>
    pub fn details(&self) -> ::std::option::Option<&crate::types::RequestDetails> {
        self.details.as_ref()
    }
    /// <p>The type of job to be created.</p>
    pub fn r#type(&self) -> ::std::option::Option<&crate::types::Type> {
        self.r#type.as_ref()
    }
}
impl CreateJobInput {
    /// Creates a new builder-style object to manufacture [`CreateJobInput`](crate::operation::create_job::CreateJobInput).
    pub fn builder() -> crate::operation::create_job::builders::CreateJobInputBuilder {
        crate::operation::create_job::builders::CreateJobInputBuilder::default()
    }
}

/// A builder for [`CreateJobInput`](crate::operation::create_job::CreateJobInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateJobInputBuilder {
    pub(crate) asset_configuration: ::std::option::Option<crate::types::AssetConfiguration>,
    pub(crate) details: ::std::option::Option<crate::types::RequestDetails>,
    pub(crate) r#type: ::std::option::Option<crate::types::Type>,
}
impl CreateJobInputBuilder {
    /// <p>The configuration for the asset, including tags to be applied to assets created by the job.</p>
    pub fn asset_configuration(mut self, input: crate::types::AssetConfiguration) -> Self {
        self.asset_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>The configuration for the asset, including tags to be applied to assets created by the job.</p>
    pub fn set_asset_configuration(mut self, input: ::std::option::Option<crate::types::AssetConfiguration>) -> Self {
        self.asset_configuration = input;
        self
    }
    /// <p>The configuration for the asset, including tags to be applied to assets created by the job.</p>
    pub fn get_asset_configuration(&self) -> &::std::option::Option<crate::types::AssetConfiguration> {
        &self.asset_configuration
    }
    /// <p>The details for the CreateJob request.</p>
    /// This field is required.
    pub fn details(mut self, input: crate::types::RequestDetails) -> Self {
        self.details = ::std::option::Option::Some(input);
        self
    }
    /// <p>The details for the CreateJob request.</p>
    pub fn set_details(mut self, input: ::std::option::Option<crate::types::RequestDetails>) -> Self {
        self.details = input;
        self
    }
    /// <p>The details for the CreateJob request.</p>
    pub fn get_details(&self) -> &::std::option::Option<crate::types::RequestDetails> {
        &self.details
    }
    /// <p>The type of job to be created.</p>
    /// This field is required.
    pub fn r#type(mut self, input: crate::types::Type) -> Self {
        self.r#type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of job to be created.</p>
    pub fn set_type(mut self, input: ::std::option::Option<crate::types::Type>) -> Self {
        self.r#type = input;
        self
    }
    /// <p>The type of job to be created.</p>
    pub fn get_type(&self) -> &::std::option::Option<crate::types::Type> {
        &self.r#type
    }
    /// Consumes the builder and constructs a [`CreateJobInput`](crate::operation::create_job::CreateJobInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::create_job::CreateJobInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::create_job::CreateJobInput {
            asset_configuration: self.asset_configuration,
            details: self.details,
            r#type: self.r#type,
        })
    }
}