aws-sdk-bedrockagent 1.8.0

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

/// Delete Agent Version Request
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteAgentVersionInput {
    /// Id generated at the server side when an Agent is created
    pub agent_id: ::std::option::Option<::std::string::String>,
    /// Numerical Agent Version.
    pub agent_version: ::std::option::Option<::std::string::String>,
    /// Skips checking if resource is in use when set to true. Defaults to false
    pub skip_resource_in_use_check: ::std::option::Option<bool>,
}
impl DeleteAgentVersionInput {
    /// Id generated at the server side when an Agent is created
    pub fn agent_id(&self) -> ::std::option::Option<&str> {
        self.agent_id.as_deref()
    }
    /// Numerical Agent Version.
    pub fn agent_version(&self) -> ::std::option::Option<&str> {
        self.agent_version.as_deref()
    }
    /// Skips checking if resource is in use when set to true. Defaults to false
    pub fn skip_resource_in_use_check(&self) -> ::std::option::Option<bool> {
        self.skip_resource_in_use_check
    }
}
impl DeleteAgentVersionInput {
    /// Creates a new builder-style object to manufacture [`DeleteAgentVersionInput`](crate::operation::delete_agent_version::DeleteAgentVersionInput).
    pub fn builder() -> crate::operation::delete_agent_version::builders::DeleteAgentVersionInputBuilder {
        crate::operation::delete_agent_version::builders::DeleteAgentVersionInputBuilder::default()
    }
}

/// A builder for [`DeleteAgentVersionInput`](crate::operation::delete_agent_version::DeleteAgentVersionInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DeleteAgentVersionInputBuilder {
    pub(crate) agent_id: ::std::option::Option<::std::string::String>,
    pub(crate) agent_version: ::std::option::Option<::std::string::String>,
    pub(crate) skip_resource_in_use_check: ::std::option::Option<bool>,
}
impl DeleteAgentVersionInputBuilder {
    /// Id generated at the server side when an Agent is created
    /// This field is required.
    pub fn agent_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.agent_id = ::std::option::Option::Some(input.into());
        self
    }
    /// Id generated at the server side when an Agent is created
    pub fn set_agent_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.agent_id = input;
        self
    }
    /// Id generated at the server side when an Agent is created
    pub fn get_agent_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.agent_id
    }
    /// Numerical Agent Version.
    /// This field is required.
    pub fn agent_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.agent_version = ::std::option::Option::Some(input.into());
        self
    }
    /// Numerical Agent Version.
    pub fn set_agent_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.agent_version = input;
        self
    }
    /// Numerical Agent Version.
    pub fn get_agent_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.agent_version
    }
    /// Skips checking if resource is in use when set to true. Defaults to false
    pub fn skip_resource_in_use_check(mut self, input: bool) -> Self {
        self.skip_resource_in_use_check = ::std::option::Option::Some(input);
        self
    }
    /// Skips checking if resource is in use when set to true. Defaults to false
    pub fn set_skip_resource_in_use_check(mut self, input: ::std::option::Option<bool>) -> Self {
        self.skip_resource_in_use_check = input;
        self
    }
    /// Skips checking if resource is in use when set to true. Defaults to false
    pub fn get_skip_resource_in_use_check(&self) -> &::std::option::Option<bool> {
        &self.skip_resource_in_use_check
    }
    /// Consumes the builder and constructs a [`DeleteAgentVersionInput`](crate::operation::delete_agent_version::DeleteAgentVersionInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_agent_version::DeleteAgentVersionInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::delete_agent_version::DeleteAgentVersionInput {
            agent_id: self.agent_id,
            agent_version: self.agent_version,
            skip_resource_in_use_check: self.skip_resource_in_use_check,
        })
    }
}