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.
pub use crate::operation::update_application::_update_application_input::UpdateApplicationInputBuilder;

pub use crate::operation::update_application::_update_application_output::UpdateApplicationOutputBuilder;

impl crate::operation::update_application::builders::UpdateApplicationInputBuilder {
    /// Sends a request with this input using the given client.
    pub async fn send_with(
        self,
        client: &crate::Client,
    ) -> ::std::result::Result<
        crate::operation::update_application::UpdateApplicationOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::update_application::UpdateApplicationError,
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
        >,
    > {
        let mut fluent_builder = client.update_application();
        fluent_builder.inner = self;
        fluent_builder.send().await
    }
}
/// Fluent builder constructing a request to `UpdateApplication`.
///
/// <p>Updates and persists an Application resource.</p>
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateApplicationFluentBuilder {
    handle: ::std::sync::Arc<crate::client::Handle>,
    inner: crate::operation::update_application::builders::UpdateApplicationInputBuilder,
    config_override: ::std::option::Option<crate::config::Builder>,
}
impl
    crate::client::customize::internal::CustomizableSend<
        crate::operation::update_application::UpdateApplicationOutput,
        crate::operation::update_application::UpdateApplicationError,
    > for UpdateApplicationFluentBuilder
{
    fn send(
        self,
        config_override: crate::config::Builder,
    ) -> crate::client::customize::internal::BoxFuture<
        crate::client::customize::internal::SendResult<
            crate::operation::update_application::UpdateApplicationOutput,
            crate::operation::update_application::UpdateApplicationError,
        >,
    > {
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
    }
}
impl UpdateApplicationFluentBuilder {
    /// Creates a new `UpdateApplicationFluentBuilder`.
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
        Self {
            handle,
            inner: ::std::default::Default::default(),
            config_override: ::std::option::Option::None,
        }
    }
    /// Access the UpdateApplication as a reference.
    pub fn as_input(&self) -> &crate::operation::update_application::builders::UpdateApplicationInputBuilder {
        &self.inner
    }
    /// Sends the request and returns the response.
    ///
    /// If an error occurs, an `SdkError` will be returned with additional details that
    /// can be matched against.
    ///
    /// By default, any retryable failures will be retried twice. Retry behavior
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
    /// set when configuring the client.
    pub async fn send(
        self,
    ) -> ::std::result::Result<
        crate::operation::update_application::UpdateApplicationOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::update_application::UpdateApplicationError,
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
        >,
    > {
        let input = self
            .inner
            .build()
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
        let runtime_plugins = crate::operation::update_application::UpdateApplication::operation_runtime_plugins(
            self.handle.runtime_plugins.clone(),
            &self.handle.conf,
            self.config_override,
        );
        crate::operation::update_application::UpdateApplication::orchestrate(&runtime_plugins, input).await
    }

    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
    pub fn customize(
        self,
    ) -> crate::client::customize::CustomizableOperation<
        crate::operation::update_application::UpdateApplicationOutput,
        crate::operation::update_application::UpdateApplicationError,
        Self,
    > {
        crate::client::customize::CustomizableOperation::new(self)
    }
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
        self.set_config_override(::std::option::Option::Some(config_override.into()));
        self
    }

    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
        self.config_override = config_override;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the Application.</p>
    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.arn(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the Application.</p>
    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_arn(input);
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the Application.</p>
    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_arn()
    }
    /// <p>The name of the application.</p>
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.name(input.into());
        self
    }
    /// <p>The name of the application.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_name(input);
        self
    }
    /// <p>The name of the application.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_name()
    }
    /// <p>The description of the application.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.description(input.into());
        self
    }
    /// <p>The description of the application.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_description(input);
        self
    }
    /// <p>The description of the application.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_description()
    }
    /// <p>The configuration for where the application should be loaded from.</p>
    pub fn application_source_config(mut self, input: crate::types::ApplicationSourceConfig) -> Self {
        self.inner = self.inner.application_source_config(input);
        self
    }
    /// <p>The configuration for where the application should be loaded from.</p>
    pub fn set_application_source_config(mut self, input: ::std::option::Option<crate::types::ApplicationSourceConfig>) -> Self {
        self.inner = self.inner.set_application_source_config(input);
        self
    }
    /// <p>The configuration for where the application should be loaded from.</p>
    pub fn get_application_source_config(&self) -> &::std::option::Option<crate::types::ApplicationSourceConfig> {
        self.inner.get_application_source_config()
    }
    ///
    /// Appends an item to `Subscriptions`.
    ///
    /// To override the contents of this collection use [`set_subscriptions`](Self::set_subscriptions).
    ///
    /// <p>The events that the application subscribes.</p>
    #[deprecated(note = "Subscriptions has been replaced with Permissions")]
    pub fn subscriptions(mut self, input: crate::types::Subscription) -> Self {
        self.inner = self.inner.subscriptions(input);
        self
    }
    /// <p>The events that the application subscribes.</p>
    #[deprecated(note = "Subscriptions has been replaced with Permissions")]
    pub fn set_subscriptions(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Subscription>>) -> Self {
        self.inner = self.inner.set_subscriptions(input);
        self
    }
    /// <p>The events that the application subscribes.</p>
    #[deprecated(note = "Subscriptions has been replaced with Permissions")]
    pub fn get_subscriptions(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Subscription>> {
        self.inner.get_subscriptions()
    }
    ///
    /// Appends an item to `Publications`.
    ///
    /// To override the contents of this collection use [`set_publications`](Self::set_publications).
    ///
    /// <p>The events that the application publishes.</p>
    #[deprecated(note = "Publications has been replaced with Permissions")]
    pub fn publications(mut self, input: crate::types::Publication) -> Self {
        self.inner = self.inner.publications(input);
        self
    }
    /// <p>The events that the application publishes.</p>
    #[deprecated(note = "Publications has been replaced with Permissions")]
    pub fn set_publications(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Publication>>) -> Self {
        self.inner = self.inner.set_publications(input);
        self
    }
    /// <p>The events that the application publishes.</p>
    #[deprecated(note = "Publications has been replaced with Permissions")]
    pub fn get_publications(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Publication>> {
        self.inner.get_publications()
    }
    ///
    /// Appends an item to `Permissions`.
    ///
    /// To override the contents of this collection use [`set_permissions`](Self::set_permissions).
    ///
    /// <p>The configuration of events or requests that the application has access to.</p>
    pub fn permissions(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.permissions(input.into());
        self
    }
    /// <p>The configuration of events or requests that the application has access to.</p>
    pub fn set_permissions(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.inner = self.inner.set_permissions(input);
        self
    }
    /// <p>The configuration of events or requests that the application has access to.</p>
    pub fn get_permissions(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        self.inner.get_permissions()
    }
    /// <p>Indicates whether the application is a service.</p>
    #[deprecated(note = "IsService has been deprecated in favor of ApplicationType", since = "2025-12-01")]
    pub fn is_service(mut self, input: bool) -> Self {
        self.inner = self.inner.is_service(input);
        self
    }
    /// <p>Indicates whether the application is a service.</p>
    #[deprecated(note = "IsService has been deprecated in favor of ApplicationType", since = "2025-12-01")]
    pub fn set_is_service(mut self, input: ::std::option::Option<bool>) -> Self {
        self.inner = self.inner.set_is_service(input);
        self
    }
    /// <p>Indicates whether the application is a service.</p>
    #[deprecated(note = "IsService has been deprecated in favor of ApplicationType", since = "2025-12-01")]
    pub fn get_is_service(&self) -> &::std::option::Option<bool> {
        self.inner.get_is_service()
    }
    /// <p>The maximum time in milliseconds allowed to establish a connection with the workspace.</p>
    pub fn initialization_timeout(mut self, input: i32) -> Self {
        self.inner = self.inner.initialization_timeout(input);
        self
    }
    /// <p>The maximum time in milliseconds allowed to establish a connection with the workspace.</p>
    pub fn set_initialization_timeout(mut self, input: ::std::option::Option<i32>) -> Self {
        self.inner = self.inner.set_initialization_timeout(input);
        self
    }
    /// <p>The maximum time in milliseconds allowed to establish a connection with the workspace.</p>
    pub fn get_initialization_timeout(&self) -> &::std::option::Option<i32> {
        self.inner.get_initialization_timeout()
    }
    /// <p>The configuration settings for the application.</p>
    pub fn application_config(mut self, input: crate::types::ApplicationConfig) -> Self {
        self.inner = self.inner.application_config(input);
        self
    }
    /// <p>The configuration settings for the application.</p>
    pub fn set_application_config(mut self, input: ::std::option::Option<crate::types::ApplicationConfig>) -> Self {
        self.inner = self.inner.set_application_config(input);
        self
    }
    /// <p>The configuration settings for the application.</p>
    pub fn get_application_config(&self) -> &::std::option::Option<crate::types::ApplicationConfig> {
        self.inner.get_application_config()
    }
    /// <p>The iframe configuration for the application.</p>
    pub fn iframe_config(mut self, input: crate::types::IframeConfig) -> Self {
        self.inner = self.inner.iframe_config(input);
        self
    }
    /// <p>The iframe configuration for the application.</p>
    pub fn set_iframe_config(mut self, input: ::std::option::Option<crate::types::IframeConfig>) -> Self {
        self.inner = self.inner.set_iframe_config(input);
        self
    }
    /// <p>The iframe configuration for the application.</p>
    pub fn get_iframe_config(&self) -> &::std::option::Option<crate::types::IframeConfig> {
        self.inner.get_iframe_config()
    }
    /// <p>The type of application.</p>
    pub fn application_type(mut self, input: crate::types::ApplicationType) -> Self {
        self.inner = self.inner.application_type(input);
        self
    }
    /// <p>The type of application.</p>
    pub fn set_application_type(mut self, input: ::std::option::Option<crate::types::ApplicationType>) -> Self {
        self.inner = self.inner.set_application_type(input);
        self
    }
    /// <p>The type of application.</p>
    pub fn get_application_type(&self) -> &::std::option::Option<crate::types::ApplicationType> {
        self.inner.get_application_type()
    }
}