aws-sdk-bedrockagentcorecontrol 1.55.0

AWS SDK for Amazon Bedrock AgentCore Control
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub use crate::operation::update_registry_record::_update_registry_record_input::UpdateRegistryRecordInputBuilder;

pub use crate::operation::update_registry_record::_update_registry_record_output::UpdateRegistryRecordOutputBuilder;

impl crate::operation::update_registry_record::builders::UpdateRegistryRecordInputBuilder {
    /// 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_registry_record::UpdateRegistryRecordOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::update_registry_record::UpdateRegistryRecordError,
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
        >,
    > {
        let mut fluent_builder = client.update_registry_record();
        fluent_builder.inner = self;
        fluent_builder.send().await
    }
}
/// Fluent builder constructing a request to `UpdateRegistryRecord`.
///
/// <p>Updates an existing registry record. This operation uses PATCH semantics, so you only need to specify the fields you want to change. The update is processed asynchronously and returns HTTP 202 Accepted.</p>
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateRegistryRecordFluentBuilder {
    handle: ::std::sync::Arc<crate::client::Handle>,
    inner: crate::operation::update_registry_record::builders::UpdateRegistryRecordInputBuilder,
    config_override: ::std::option::Option<crate::config::Builder>,
}
impl
    crate::client::customize::internal::CustomizableSend<
        crate::operation::update_registry_record::UpdateRegistryRecordOutput,
        crate::operation::update_registry_record::UpdateRegistryRecordError,
    > for UpdateRegistryRecordFluentBuilder
{
    fn send(
        self,
        config_override: crate::config::Builder,
    ) -> crate::client::customize::internal::BoxFuture<
        crate::client::customize::internal::SendResult<
            crate::operation::update_registry_record::UpdateRegistryRecordOutput,
            crate::operation::update_registry_record::UpdateRegistryRecordError,
        >,
    > {
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
    }
}
impl UpdateRegistryRecordFluentBuilder {
    /// Creates a new `UpdateRegistryRecordFluentBuilder`.
    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 UpdateRegistryRecord as a reference.
    pub fn as_input(&self) -> &crate::operation::update_registry_record::builders::UpdateRegistryRecordInputBuilder {
        &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_registry_record::UpdateRegistryRecordOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::update_registry_record::UpdateRegistryRecordError,
            ::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_registry_record::UpdateRegistryRecord::operation_runtime_plugins(
            self.handle.runtime_plugins.clone(),
            &self.handle.conf,
            self.config_override,
        );
        crate::operation::update_registry_record::UpdateRegistryRecord::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_registry_record::UpdateRegistryRecordOutput,
        crate::operation::update_registry_record::UpdateRegistryRecordError,
        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 identifier of the registry containing the record. You can specify either the Amazon Resource Name (ARN) or the ID of the registry.</p>
    pub fn registry_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.registry_id(input.into());
        self
    }
    /// <p>The identifier of the registry containing the record. You can specify either the Amazon Resource Name (ARN) or the ID of the registry.</p>
    pub fn set_registry_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_registry_id(input);
        self
    }
    /// <p>The identifier of the registry containing the record. You can specify either the Amazon Resource Name (ARN) or the ID of the registry.</p>
    pub fn get_registry_id(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_registry_id()
    }
    /// <p>The identifier of the registry record to update. You can specify either the Amazon Resource Name (ARN) or the ID of the record.</p>
    pub fn record_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.record_id(input.into());
        self
    }
    /// <p>The identifier of the registry record to update. You can specify either the Amazon Resource Name (ARN) or the ID of the record.</p>
    pub fn set_record_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_record_id(input);
        self
    }
    /// <p>The identifier of the registry record to update. You can specify either the Amazon Resource Name (ARN) or the ID of the record.</p>
    pub fn get_record_id(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_record_id()
    }
    /// <p>The updated name for the registry record.</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 updated name for the registry record.</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 updated name for the registry record.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_name()
    }
    /// <p>The updated description for the registry record. To clear the description, include the <code>UpdatedDescription</code> wrapper with <code>optionalValue</code> not specified.</p>
    pub fn description(mut self, input: crate::types::UpdatedDescription) -> Self {
        self.inner = self.inner.description(input);
        self
    }
    /// <p>The updated description for the registry record. To clear the description, include the <code>UpdatedDescription</code> wrapper with <code>optionalValue</code> not specified.</p>
    pub fn set_description(mut self, input: ::std::option::Option<crate::types::UpdatedDescription>) -> Self {
        self.inner = self.inner.set_description(input);
        self
    }
    /// <p>The updated description for the registry record. To clear the description, include the <code>UpdatedDescription</code> wrapper with <code>optionalValue</code> not specified.</p>
    pub fn get_description(&self) -> &::std::option::Option<crate::types::UpdatedDescription> {
        self.inner.get_description()
    }
    /// <p>The updated descriptor type for the registry record. Changing the descriptor type may require updating the <code>descriptors</code> field to match the new type's schema requirements.</p>
    pub fn descriptor_type(mut self, input: crate::types::DescriptorType) -> Self {
        self.inner = self.inner.descriptor_type(input);
        self
    }
    /// <p>The updated descriptor type for the registry record. Changing the descriptor type may require updating the <code>descriptors</code> field to match the new type's schema requirements.</p>
    pub fn set_descriptor_type(mut self, input: ::std::option::Option<crate::types::DescriptorType>) -> Self {
        self.inner = self.inner.set_descriptor_type(input);
        self
    }
    /// <p>The updated descriptor type for the registry record. Changing the descriptor type may require updating the <code>descriptors</code> field to match the new type's schema requirements.</p>
    pub fn get_descriptor_type(&self) -> &::std::option::Option<crate::types::DescriptorType> {
        self.inner.get_descriptor_type()
    }
    /// <p>The updated descriptor-type-specific configuration containing the resource schema and metadata. Uses PATCH semantics where individual descriptor fields can be updated independently.</p>
    pub fn descriptors(mut self, input: crate::types::UpdatedDescriptors) -> Self {
        self.inner = self.inner.descriptors(input);
        self
    }
    /// <p>The updated descriptor-type-specific configuration containing the resource schema and metadata. Uses PATCH semantics where individual descriptor fields can be updated independently.</p>
    pub fn set_descriptors(mut self, input: ::std::option::Option<crate::types::UpdatedDescriptors>) -> Self {
        self.inner = self.inner.set_descriptors(input);
        self
    }
    /// <p>The updated descriptor-type-specific configuration containing the resource schema and metadata. Uses PATCH semantics where individual descriptor fields can be updated independently.</p>
    pub fn get_descriptors(&self) -> &::std::option::Option<crate::types::UpdatedDescriptors> {
        self.inner.get_descriptors()
    }
    /// <p>The version of the registry record for optimistic locking. If provided, it must match the current version of the record. The service automatically increments the version after a successful update.</p>
    pub fn record_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.record_version(input.into());
        self
    }
    /// <p>The version of the registry record for optimistic locking. If provided, it must match the current version of the record. The service automatically increments the version after a successful update.</p>
    pub fn set_record_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_record_version(input);
        self
    }
    /// <p>The version of the registry record for optimistic locking. If provided, it must match the current version of the record. The service automatically increments the version after a successful update.</p>
    pub fn get_record_version(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_record_version()
    }
    /// <p>The updated synchronization type for the registry record.</p>
    pub fn synchronization_type(mut self, input: crate::types::UpdatedSynchronizationType) -> Self {
        self.inner = self.inner.synchronization_type(input);
        self
    }
    /// <p>The updated synchronization type for the registry record.</p>
    pub fn set_synchronization_type(mut self, input: ::std::option::Option<crate::types::UpdatedSynchronizationType>) -> Self {
        self.inner = self.inner.set_synchronization_type(input);
        self
    }
    /// <p>The updated synchronization type for the registry record.</p>
    pub fn get_synchronization_type(&self) -> &::std::option::Option<crate::types::UpdatedSynchronizationType> {
        self.inner.get_synchronization_type()
    }
    /// <p>The updated synchronization configuration for the registry record.</p>
    pub fn synchronization_configuration(mut self, input: crate::types::UpdatedSynchronizationConfiguration) -> Self {
        self.inner = self.inner.synchronization_configuration(input);
        self
    }
    /// <p>The updated synchronization configuration for the registry record.</p>
    pub fn set_synchronization_configuration(mut self, input: ::std::option::Option<crate::types::UpdatedSynchronizationConfiguration>) -> Self {
        self.inner = self.inner.set_synchronization_configuration(input);
        self
    }
    /// <p>The updated synchronization configuration for the registry record.</p>
    pub fn get_synchronization_configuration(&self) -> &::std::option::Option<crate::types::UpdatedSynchronizationConfiguration> {
        self.inner.get_synchronization_configuration()
    }
    /// <p>Whether to trigger synchronization using the stored or provided configuration. When set to <code>true</code>, the service will synchronize the record metadata from the configured external source.</p>
    pub fn trigger_synchronization(mut self, input: bool) -> Self {
        self.inner = self.inner.trigger_synchronization(input);
        self
    }
    /// <p>Whether to trigger synchronization using the stored or provided configuration. When set to <code>true</code>, the service will synchronize the record metadata from the configured external source.</p>
    pub fn set_trigger_synchronization(mut self, input: ::std::option::Option<bool>) -> Self {
        self.inner = self.inner.set_trigger_synchronization(input);
        self
    }
    /// <p>Whether to trigger synchronization using the stored or provided configuration. When set to <code>true</code>, the service will synchronize the record metadata from the configured external source.</p>
    pub fn get_trigger_synchronization(&self) -> &::std::option::Option<bool> {
        self.inner.get_trigger_synchronization()
    }
}