aws-sdk-devopsagent 1.4.0

AWS SDK for AWS DevOps Agent Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub use crate::operation::enable_operator_app::_enable_operator_app_input::EnableOperatorAppInputBuilder;

pub use crate::operation::enable_operator_app::_enable_operator_app_output::EnableOperatorAppOutputBuilder;

impl crate::operation::enable_operator_app::builders::EnableOperatorAppInputBuilder {
    /// Sends a request with this input using the given client.
    pub async fn send_with(
        self,
        client: &crate::Client,
    ) -> ::std::result::Result<
        crate::operation::enable_operator_app::EnableOperatorAppOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::enable_operator_app::EnableOperatorAppError,
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
        >,
    > {
        let mut fluent_builder = client.enable_operator_app();
        fluent_builder.inner = self;
        fluent_builder.send().await
    }
}
/// Fluent builder constructing a request to `EnableOperatorApp`.
///
/// Enable the Operator App to access the given AgentSpace
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct EnableOperatorAppFluentBuilder {
    handle: ::std::sync::Arc<crate::client::Handle>,
    inner: crate::operation::enable_operator_app::builders::EnableOperatorAppInputBuilder,
    config_override: ::std::option::Option<crate::config::Builder>,
}
impl
    crate::client::customize::internal::CustomizableSend<
        crate::operation::enable_operator_app::EnableOperatorAppOutput,
        crate::operation::enable_operator_app::EnableOperatorAppError,
    > for EnableOperatorAppFluentBuilder
{
    fn send(
        self,
        config_override: crate::config::Builder,
    ) -> crate::client::customize::internal::BoxFuture<
        crate::client::customize::internal::SendResult<
            crate::operation::enable_operator_app::EnableOperatorAppOutput,
            crate::operation::enable_operator_app::EnableOperatorAppError,
        >,
    > {
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
    }
}
impl EnableOperatorAppFluentBuilder {
    /// Creates a new `EnableOperatorAppFluentBuilder`.
    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 EnableOperatorApp as a reference.
    pub fn as_input(&self) -> &crate::operation::enable_operator_app::builders::EnableOperatorAppInputBuilder {
        &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::enable_operator_app::EnableOperatorAppOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::enable_operator_app::EnableOperatorAppError,
            ::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::enable_operator_app::EnableOperatorApp::operation_runtime_plugins(
            self.handle.runtime_plugins.clone(),
            &self.handle.conf,
            self.config_override,
        );
        crate::operation::enable_operator_app::EnableOperatorApp::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::enable_operator_app::EnableOperatorAppOutput,
        crate::operation::enable_operator_app::EnableOperatorAppError,
        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
    }
    /// The unique identifier of the AgentSpace
    pub fn agent_space_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.agent_space_id(input.into());
        self
    }
    /// The unique identifier of the AgentSpace
    pub fn set_agent_space_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_agent_space_id(input);
        self
    }
    /// The unique identifier of the AgentSpace
    pub fn get_agent_space_id(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_agent_space_id()
    }
    /// The authentication flow configured for the operator App. e.g. iam or idc
    pub fn auth_flow(mut self, input: crate::types::AuthFlow) -> Self {
        self.inner = self.inner.auth_flow(input);
        self
    }
    /// The authentication flow configured for the operator App. e.g. iam or idc
    pub fn set_auth_flow(mut self, input: ::std::option::Option<crate::types::AuthFlow>) -> Self {
        self.inner = self.inner.set_auth_flow(input);
        self
    }
    /// The authentication flow configured for the operator App. e.g. iam or idc
    pub fn get_auth_flow(&self) -> &::std::option::Option<crate::types::AuthFlow> {
        self.inner.get_auth_flow()
    }
    /// The IAM role end users assume to access AIDevOps APIs
    pub fn operator_app_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.operator_app_role_arn(input.into());
        self
    }
    /// The IAM role end users assume to access AIDevOps APIs
    pub fn set_operator_app_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_operator_app_role_arn(input);
        self
    }
    /// The IAM role end users assume to access AIDevOps APIs
    pub fn get_operator_app_role_arn(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_operator_app_role_arn()
    }
    /// The IdC instance Arn used to create an IdC auth application
    pub fn idc_instance_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.idc_instance_arn(input.into());
        self
    }
    /// The IdC instance Arn used to create an IdC auth application
    pub fn set_idc_instance_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_idc_instance_arn(input);
        self
    }
    /// The IdC instance Arn used to create an IdC auth application
    pub fn get_idc_instance_arn(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_idc_instance_arn()
    }
    /// The OIDC issuer URL of the external Identity Provider
    pub fn issuer_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.issuer_url(input.into());
        self
    }
    /// The OIDC issuer URL of the external Identity Provider
    pub fn set_issuer_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_issuer_url(input);
        self
    }
    /// The OIDC issuer URL of the external Identity Provider
    pub fn get_issuer_url(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_issuer_url()
    }
    /// The OIDC client ID for the IdP application
    pub fn idp_client_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.idp_client_id(input.into());
        self
    }
    /// The OIDC client ID for the IdP application
    pub fn set_idp_client_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_idp_client_id(input);
        self
    }
    /// The OIDC client ID for the IdP application
    pub fn get_idp_client_id(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_idp_client_id()
    }
    /// The OIDC client secret for the IdP application
    pub fn idp_client_secret(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.idp_client_secret(input.into());
        self
    }
    /// The OIDC client secret for the IdP application
    pub fn set_idp_client_secret(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_idp_client_secret(input);
        self
    }
    /// The OIDC client secret for the IdP application
    pub fn get_idp_client_secret(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_idp_client_secret()
    }
    /// The Identity Provider name (e.g., Entra, Okta, Google)
    pub fn provider(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.provider(input.into());
        self
    }
    /// The Identity Provider name (e.g., Entra, Okta, Google)
    pub fn set_provider(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_provider(input);
        self
    }
    /// The Identity Provider name (e.g., Entra, Okta, Google)
    pub fn get_provider(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_provider()
    }
}