aws-sdk-continuum 1.0.0

AWS SDK for AWS Continuum
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Specifies the S3 integration and the credentials to validate and save.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateIntegrationInput {
    /// The unique identifier of the S3 integration to update.
    pub integration_id: ::std::option::Option<::std::string::String>,
    /// The provider-specific changes to apply. The member must match the integration's provider type, and only S3 integrations can be updated.
    pub provider_configuration: ::std::option::Option<crate::types::UpdateProviderConfiguration>,
}
impl UpdateIntegrationInput {
    /// The unique identifier of the S3 integration to update.
    pub fn integration_id(&self) -> ::std::option::Option<&str> {
        self.integration_id.as_deref()
    }
    /// The provider-specific changes to apply. The member must match the integration's provider type, and only S3 integrations can be updated.
    pub fn provider_configuration(&self) -> ::std::option::Option<&crate::types::UpdateProviderConfiguration> {
        self.provider_configuration.as_ref()
    }
}
impl UpdateIntegrationInput {
    /// Creates a new builder-style object to manufacture [`UpdateIntegrationInput`](crate::operation::update_integration::UpdateIntegrationInput).
    pub fn builder() -> crate::operation::update_integration::builders::UpdateIntegrationInputBuilder {
        crate::operation::update_integration::builders::UpdateIntegrationInputBuilder::default()
    }
}

/// A builder for [`UpdateIntegrationInput`](crate::operation::update_integration::UpdateIntegrationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateIntegrationInputBuilder {
    pub(crate) integration_id: ::std::option::Option<::std::string::String>,
    pub(crate) provider_configuration: ::std::option::Option<crate::types::UpdateProviderConfiguration>,
}
impl UpdateIntegrationInputBuilder {
    /// The unique identifier of the S3 integration to update.
    /// This field is required.
    pub fn integration_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.integration_id = ::std::option::Option::Some(input.into());
        self
    }
    /// The unique identifier of the S3 integration to update.
    pub fn set_integration_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.integration_id = input;
        self
    }
    /// The unique identifier of the S3 integration to update.
    pub fn get_integration_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.integration_id
    }
    /// The provider-specific changes to apply. The member must match the integration's provider type, and only S3 integrations can be updated.
    /// This field is required.
    pub fn provider_configuration(mut self, input: crate::types::UpdateProviderConfiguration) -> Self {
        self.provider_configuration = ::std::option::Option::Some(input);
        self
    }
    /// The provider-specific changes to apply. The member must match the integration's provider type, and only S3 integrations can be updated.
    pub fn set_provider_configuration(mut self, input: ::std::option::Option<crate::types::UpdateProviderConfiguration>) -> Self {
        self.provider_configuration = input;
        self
    }
    /// The provider-specific changes to apply. The member must match the integration's provider type, and only S3 integrations can be updated.
    pub fn get_provider_configuration(&self) -> &::std::option::Option<crate::types::UpdateProviderConfiguration> {
        &self.provider_configuration
    }
    /// Consumes the builder and constructs a [`UpdateIntegrationInput`](crate::operation::update_integration::UpdateIntegrationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_integration::UpdateIntegrationInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::update_integration::UpdateIntegrationInput {
            integration_id: self.integration_id,
            provider_configuration: self.provider_configuration,
        })
    }
}