aws-sdk-bedrock 1.141.0

AWS SDK for Amazon Bedrock
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteGuardrailInput {
    /// <p>The unique identifier of the guardrail. This can be an ID or the ARN.</p>
    pub guardrail_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The version of the guardrail.</p>
    pub guardrail_version: ::std::option::Option<::std::string::String>,
}
impl DeleteGuardrailInput {
    /// <p>The unique identifier of the guardrail. This can be an ID or the ARN.</p>
    pub fn guardrail_identifier(&self) -> ::std::option::Option<&str> {
        self.guardrail_identifier.as_deref()
    }
    /// <p>The version of the guardrail.</p>
    pub fn guardrail_version(&self) -> ::std::option::Option<&str> {
        self.guardrail_version.as_deref()
    }
}
impl DeleteGuardrailInput {
    /// Creates a new builder-style object to manufacture [`DeleteGuardrailInput`](crate::operation::delete_guardrail::DeleteGuardrailInput).
    pub fn builder() -> crate::operation::delete_guardrail::builders::DeleteGuardrailInputBuilder {
        crate::operation::delete_guardrail::builders::DeleteGuardrailInputBuilder::default()
    }
}

/// A builder for [`DeleteGuardrailInput`](crate::operation::delete_guardrail::DeleteGuardrailInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteGuardrailInputBuilder {
    pub(crate) guardrail_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) guardrail_version: ::std::option::Option<::std::string::String>,
}
impl DeleteGuardrailInputBuilder {
    /// <p>The unique identifier of the guardrail. This can be an ID or the ARN.</p>
    /// This field is required.
    pub fn guardrail_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.guardrail_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the guardrail. This can be an ID or the ARN.</p>
    pub fn set_guardrail_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.guardrail_identifier = input;
        self
    }
    /// <p>The unique identifier of the guardrail. This can be an ID or the ARN.</p>
    pub fn get_guardrail_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.guardrail_identifier
    }
    /// <p>The version of the guardrail.</p>
    pub fn guardrail_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.guardrail_version = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The version of the guardrail.</p>
    pub fn set_guardrail_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.guardrail_version = input;
        self
    }
    /// <p>The version of the guardrail.</p>
    pub fn get_guardrail_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.guardrail_version
    }
    /// Consumes the builder and constructs a [`DeleteGuardrailInput`](crate::operation::delete_guardrail::DeleteGuardrailInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_guardrail::DeleteGuardrailInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_guardrail::DeleteGuardrailInput {
            guardrail_identifier: self.guardrail_identifier,
            guardrail_version: self.guardrail_version,
        })
    }
}