aws-sdk-appintegrations 1.97.0

AWS SDK for Amazon AppIntegrations Service
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 GetDataIntegrationOutput {
    /// <p>The Amazon Resource Name (ARN) for the DataIntegration.</p>
    pub arn: ::std::option::Option<::std::string::String>,
    /// <p>A unique identifier.</p>
    pub id: ::std::option::Option<::std::string::String>,
    /// <p>The name of the DataIntegration.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The KMS key ARN for the DataIntegration.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>The KMS key ARN for the DataIntegration.</p>
    pub kms_key: ::std::option::Option<::std::string::String>,
    /// <p>The URI of the data source.</p>
    pub source_uri: ::std::option::Option<::std::string::String>,
    /// <p>The name of the data and how often it should be pulled from the source.</p>
    pub schedule_configuration: ::std::option::Option<crate::types::ScheduleConfiguration>,
    /// <p>The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.</p>
    pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    /// <p>The configuration for what files should be pulled from the source.</p>
    pub file_configuration: ::std::option::Option<crate::types::FileConfiguration>,
    /// <p>The configuration for what data should be pulled from the source.</p>
    pub object_configuration: ::std::option::Option<
        ::std::collections::HashMap<
            ::std::string::String,
            ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
        >,
    >,
    _request_id: Option<String>,
}
impl GetDataIntegrationOutput {
    /// <p>The Amazon Resource Name (ARN) for the DataIntegration.</p>
    pub fn arn(&self) -> ::std::option::Option<&str> {
        self.arn.as_deref()
    }
    /// <p>A unique identifier.</p>
    pub fn id(&self) -> ::std::option::Option<&str> {
        self.id.as_deref()
    }
    /// <p>The name of the DataIntegration.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The KMS key ARN for the DataIntegration.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The KMS key ARN for the DataIntegration.</p>
    pub fn kms_key(&self) -> ::std::option::Option<&str> {
        self.kms_key.as_deref()
    }
    /// <p>The URI of the data source.</p>
    pub fn source_uri(&self) -> ::std::option::Option<&str> {
        self.source_uri.as_deref()
    }
    /// <p>The name of the data and how often it should be pulled from the source.</p>
    pub fn schedule_configuration(&self) -> ::std::option::Option<&crate::types::ScheduleConfiguration> {
        self.schedule_configuration.as_ref()
    }
    /// <p>The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.</p>
    pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        self.tags.as_ref()
    }
    /// <p>The configuration for what files should be pulled from the source.</p>
    pub fn file_configuration(&self) -> ::std::option::Option<&crate::types::FileConfiguration> {
        self.file_configuration.as_ref()
    }
    /// <p>The configuration for what data should be pulled from the source.</p>
    pub fn object_configuration(
        &self,
    ) -> ::std::option::Option<
        &::std::collections::HashMap<
            ::std::string::String,
            ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
        >,
    > {
        self.object_configuration.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetDataIntegrationOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetDataIntegrationOutput {
    /// Creates a new builder-style object to manufacture [`GetDataIntegrationOutput`](crate::operation::get_data_integration::GetDataIntegrationOutput).
    pub fn builder() -> crate::operation::get_data_integration::builders::GetDataIntegrationOutputBuilder {
        crate::operation::get_data_integration::builders::GetDataIntegrationOutputBuilder::default()
    }
}

/// A builder for [`GetDataIntegrationOutput`](crate::operation::get_data_integration::GetDataIntegrationOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDataIntegrationOutputBuilder {
    pub(crate) arn: ::std::option::Option<::std::string::String>,
    pub(crate) id: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) kms_key: ::std::option::Option<::std::string::String>,
    pub(crate) source_uri: ::std::option::Option<::std::string::String>,
    pub(crate) schedule_configuration: ::std::option::Option<crate::types::ScheduleConfiguration>,
    pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    pub(crate) file_configuration: ::std::option::Option<crate::types::FileConfiguration>,
    pub(crate) object_configuration: ::std::option::Option<
        ::std::collections::HashMap<
            ::std::string::String,
            ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
        >,
    >,
    _request_id: Option<String>,
}
impl GetDataIntegrationOutputBuilder {
    /// <p>The Amazon Resource Name (ARN) for the DataIntegration.</p>
    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) for the DataIntegration.</p>
    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) for the DataIntegration.</p>
    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.arn
    }
    /// <p>A unique identifier.</p>
    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A unique identifier.</p>
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// <p>A unique identifier.</p>
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// <p>The name of the DataIntegration.</p>
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the DataIntegration.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the DataIntegration.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The KMS key ARN for the DataIntegration.</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>The KMS key ARN for the DataIntegration.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>The KMS key ARN for the DataIntegration.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>The KMS key ARN for the DataIntegration.</p>
    pub fn kms_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.kms_key = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The KMS key ARN for the DataIntegration.</p>
    pub fn set_kms_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.kms_key = input;
        self
    }
    /// <p>The KMS key ARN for the DataIntegration.</p>
    pub fn get_kms_key(&self) -> &::std::option::Option<::std::string::String> {
        &self.kms_key
    }
    /// <p>The URI of the data source.</p>
    pub fn source_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.source_uri = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The URI of the data source.</p>
    pub fn set_source_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.source_uri = input;
        self
    }
    /// <p>The URI of the data source.</p>
    pub fn get_source_uri(&self) -> &::std::option::Option<::std::string::String> {
        &self.source_uri
    }
    /// <p>The name of the data and how often it should be pulled from the source.</p>
    pub fn schedule_configuration(mut self, input: crate::types::ScheduleConfiguration) -> Self {
        self.schedule_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>The name of the data and how often it should be pulled from the source.</p>
    pub fn set_schedule_configuration(mut self, input: ::std::option::Option<crate::types::ScheduleConfiguration>) -> Self {
        self.schedule_configuration = input;
        self
    }
    /// <p>The name of the data and how often it should be pulled from the source.</p>
    pub fn get_schedule_configuration(&self) -> &::std::option::Option<crate::types::ScheduleConfiguration> {
        &self.schedule_configuration
    }
    /// Adds a key-value pair to `tags`.
    ///
    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
    ///
    /// <p>The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.</p>
    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut hash_map = self.tags.unwrap_or_default();
        hash_map.insert(k.into(), v.into());
        self.tags = ::std::option::Option::Some(hash_map);
        self
    }
    /// <p>The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.</p>
    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
        self.tags = input;
        self
    }
    /// <p>The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.</p>
    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        &self.tags
    }
    /// <p>The configuration for what files should be pulled from the source.</p>
    pub fn file_configuration(mut self, input: crate::types::FileConfiguration) -> Self {
        self.file_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>The configuration for what files should be pulled from the source.</p>
    pub fn set_file_configuration(mut self, input: ::std::option::Option<crate::types::FileConfiguration>) -> Self {
        self.file_configuration = input;
        self
    }
    /// <p>The configuration for what files should be pulled from the source.</p>
    pub fn get_file_configuration(&self) -> &::std::option::Option<crate::types::FileConfiguration> {
        &self.file_configuration
    }
    /// Adds a key-value pair to `object_configuration`.
    ///
    /// To override the contents of this collection use [`set_object_configuration`](Self::set_object_configuration).
    ///
    /// <p>The configuration for what data should be pulled from the source.</p>
    pub fn object_configuration(
        mut self,
        k: impl ::std::convert::Into<::std::string::String>,
        v: ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
    ) -> Self {
        let mut hash_map = self.object_configuration.unwrap_or_default();
        hash_map.insert(k.into(), v);
        self.object_configuration = ::std::option::Option::Some(hash_map);
        self
    }
    /// <p>The configuration for what data should be pulled from the source.</p>
    pub fn set_object_configuration(
        mut self,
        input: ::std::option::Option<
            ::std::collections::HashMap<
                ::std::string::String,
                ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
            >,
        >,
    ) -> Self {
        self.object_configuration = input;
        self
    }
    /// <p>The configuration for what data should be pulled from the source.</p>
    pub fn get_object_configuration(
        &self,
    ) -> &::std::option::Option<
        ::std::collections::HashMap<
            ::std::string::String,
            ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
        >,
    > {
        &self.object_configuration
    }
    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 [`GetDataIntegrationOutput`](crate::operation::get_data_integration::GetDataIntegrationOutput).
    pub fn build(self) -> crate::operation::get_data_integration::GetDataIntegrationOutput {
        crate::operation::get_data_integration::GetDataIntegrationOutput {
            arn: self.arn,
            id: self.id,
            name: self.name,
            description: self.description,
            kms_key: self.kms_key,
            source_uri: self.source_uri,
            schedule_configuration: self.schedule_configuration,
            tags: self.tags,
            file_configuration: self.file_configuration,
            object_configuration: self.object_configuration,
            _request_id: self._request_id,
        }
    }
}