aws-sdk-bedrockdataautomationruntime 1.58.0

AWS SDK for Runtime for Amazon Bedrock Data Automation
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Invoke Data Automation Request
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct InvokeDataAutomationInput {
    /// Input configuration.
    pub input_configuration: ::std::option::Option<crate::types::SyncInputConfiguration>,
    /// Data automation configuration.
    pub data_automation_configuration: ::std::option::Option<crate::types::DataAutomationConfiguration>,
    /// Blueprint list.
    pub blueprints: ::std::option::Option<::std::vec::Vec<crate::types::Blueprint>>,
    /// Data automation profile ARN
    pub data_automation_profile_arn: ::std::option::Option<::std::string::String>,
    /// Encryption configuration.
    pub encryption_configuration: ::std::option::Option<crate::types::EncryptionConfiguration>,
    /// Output configuration.
    pub output_configuration: ::std::option::Option<crate::types::OutputConfiguration>,
}
impl InvokeDataAutomationInput {
    /// Input configuration.
    pub fn input_configuration(&self) -> ::std::option::Option<&crate::types::SyncInputConfiguration> {
        self.input_configuration.as_ref()
    }
    /// Data automation configuration.
    pub fn data_automation_configuration(&self) -> ::std::option::Option<&crate::types::DataAutomationConfiguration> {
        self.data_automation_configuration.as_ref()
    }
    /// Blueprint list.
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.blueprints.is_none()`.
    pub fn blueprints(&self) -> &[crate::types::Blueprint] {
        self.blueprints.as_deref().unwrap_or_default()
    }
    /// Data automation profile ARN
    pub fn data_automation_profile_arn(&self) -> ::std::option::Option<&str> {
        self.data_automation_profile_arn.as_deref()
    }
    /// Encryption configuration.
    pub fn encryption_configuration(&self) -> ::std::option::Option<&crate::types::EncryptionConfiguration> {
        self.encryption_configuration.as_ref()
    }
    /// Output configuration.
    pub fn output_configuration(&self) -> ::std::option::Option<&crate::types::OutputConfiguration> {
        self.output_configuration.as_ref()
    }
}
impl InvokeDataAutomationInput {
    /// Creates a new builder-style object to manufacture [`InvokeDataAutomationInput`](crate::operation::invoke_data_automation::InvokeDataAutomationInput).
    pub fn builder() -> crate::operation::invoke_data_automation::builders::InvokeDataAutomationInputBuilder {
        crate::operation::invoke_data_automation::builders::InvokeDataAutomationInputBuilder::default()
    }
}

/// A builder for [`InvokeDataAutomationInput`](crate::operation::invoke_data_automation::InvokeDataAutomationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct InvokeDataAutomationInputBuilder {
    pub(crate) input_configuration: ::std::option::Option<crate::types::SyncInputConfiguration>,
    pub(crate) data_automation_configuration: ::std::option::Option<crate::types::DataAutomationConfiguration>,
    pub(crate) blueprints: ::std::option::Option<::std::vec::Vec<crate::types::Blueprint>>,
    pub(crate) data_automation_profile_arn: ::std::option::Option<::std::string::String>,
    pub(crate) encryption_configuration: ::std::option::Option<crate::types::EncryptionConfiguration>,
    pub(crate) output_configuration: ::std::option::Option<crate::types::OutputConfiguration>,
}
impl InvokeDataAutomationInputBuilder {
    /// Input configuration.
    /// This field is required.
    pub fn input_configuration(mut self, input: crate::types::SyncInputConfiguration) -> Self {
        self.input_configuration = ::std::option::Option::Some(input);
        self
    }
    /// Input configuration.
    pub fn set_input_configuration(mut self, input: ::std::option::Option<crate::types::SyncInputConfiguration>) -> Self {
        self.input_configuration = input;
        self
    }
    /// Input configuration.
    pub fn get_input_configuration(&self) -> &::std::option::Option<crate::types::SyncInputConfiguration> {
        &self.input_configuration
    }
    /// Data automation configuration.
    pub fn data_automation_configuration(mut self, input: crate::types::DataAutomationConfiguration) -> Self {
        self.data_automation_configuration = ::std::option::Option::Some(input);
        self
    }
    /// Data automation configuration.
    pub fn set_data_automation_configuration(mut self, input: ::std::option::Option<crate::types::DataAutomationConfiguration>) -> Self {
        self.data_automation_configuration = input;
        self
    }
    /// Data automation configuration.
    pub fn get_data_automation_configuration(&self) -> &::std::option::Option<crate::types::DataAutomationConfiguration> {
        &self.data_automation_configuration
    }
    /// Appends an item to `blueprints`.
    ///
    /// To override the contents of this collection use [`set_blueprints`](Self::set_blueprints).
    ///
    /// Blueprint list.
    pub fn blueprints(mut self, input: crate::types::Blueprint) -> Self {
        let mut v = self.blueprints.unwrap_or_default();
        v.push(input);
        self.blueprints = ::std::option::Option::Some(v);
        self
    }
    /// Blueprint list.
    pub fn set_blueprints(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Blueprint>>) -> Self {
        self.blueprints = input;
        self
    }
    /// Blueprint list.
    pub fn get_blueprints(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Blueprint>> {
        &self.blueprints
    }
    /// Data automation profile ARN
    /// This field is required.
    pub fn data_automation_profile_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.data_automation_profile_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// Data automation profile ARN
    pub fn set_data_automation_profile_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.data_automation_profile_arn = input;
        self
    }
    /// Data automation profile ARN
    pub fn get_data_automation_profile_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.data_automation_profile_arn
    }
    /// Encryption configuration.
    pub fn encryption_configuration(mut self, input: crate::types::EncryptionConfiguration) -> Self {
        self.encryption_configuration = ::std::option::Option::Some(input);
        self
    }
    /// Encryption configuration.
    pub fn set_encryption_configuration(mut self, input: ::std::option::Option<crate::types::EncryptionConfiguration>) -> Self {
        self.encryption_configuration = input;
        self
    }
    /// Encryption configuration.
    pub fn get_encryption_configuration(&self) -> &::std::option::Option<crate::types::EncryptionConfiguration> {
        &self.encryption_configuration
    }
    /// Output configuration.
    pub fn output_configuration(mut self, input: crate::types::OutputConfiguration) -> Self {
        self.output_configuration = ::std::option::Option::Some(input);
        self
    }
    /// Output configuration.
    pub fn set_output_configuration(mut self, input: ::std::option::Option<crate::types::OutputConfiguration>) -> Self {
        self.output_configuration = input;
        self
    }
    /// Output configuration.
    pub fn get_output_configuration(&self) -> &::std::option::Option<crate::types::OutputConfiguration> {
        &self.output_configuration
    }
    /// Consumes the builder and constructs a [`InvokeDataAutomationInput`](crate::operation::invoke_data_automation::InvokeDataAutomationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::invoke_data_automation::InvokeDataAutomationInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::invoke_data_automation::InvokeDataAutomationInput {
            input_configuration: self.input_configuration,
            data_automation_configuration: self.data_automation_configuration,
            blueprints: self.blueprints,
            data_automation_profile_arn: self.data_automation_profile_arn,
            encryption_configuration: self.encryption_configuration,
            output_configuration: self.output_configuration,
        })
    }
}