aws-sdk-bedrockagent 1.112.0

AWS SDK for Agents 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 GetFlowVersionInput {
    /// <p>The unique identifier of the flow for which to get information.</p>
    pub flow_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The version of the flow for which to get information.</p>
    pub flow_version: ::std::option::Option<::std::string::String>,
}
impl GetFlowVersionInput {
    /// <p>The unique identifier of the flow for which to get information.</p>
    pub fn flow_identifier(&self) -> ::std::option::Option<&str> {
        self.flow_identifier.as_deref()
    }
    /// <p>The version of the flow for which to get information.</p>
    pub fn flow_version(&self) -> ::std::option::Option<&str> {
        self.flow_version.as_deref()
    }
}
impl GetFlowVersionInput {
    /// Creates a new builder-style object to manufacture [`GetFlowVersionInput`](crate::operation::get_flow_version::GetFlowVersionInput).
    pub fn builder() -> crate::operation::get_flow_version::builders::GetFlowVersionInputBuilder {
        crate::operation::get_flow_version::builders::GetFlowVersionInputBuilder::default()
    }
}

/// A builder for [`GetFlowVersionInput`](crate::operation::get_flow_version::GetFlowVersionInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetFlowVersionInputBuilder {
    pub(crate) flow_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) flow_version: ::std::option::Option<::std::string::String>,
}
impl GetFlowVersionInputBuilder {
    /// <p>The unique identifier of the flow for which to get information.</p>
    /// This field is required.
    pub fn flow_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.flow_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the flow for which to get information.</p>
    pub fn set_flow_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.flow_identifier = input;
        self
    }
    /// <p>The unique identifier of the flow for which to get information.</p>
    pub fn get_flow_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.flow_identifier
    }
    /// <p>The version of the flow for which to get information.</p>
    /// This field is required.
    pub fn flow_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.flow_version = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The version of the flow for which to get information.</p>
    pub fn set_flow_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.flow_version = input;
        self
    }
    /// <p>The version of the flow for which to get information.</p>
    pub fn get_flow_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.flow_version
    }
    /// Consumes the builder and constructs a [`GetFlowVersionInput`](crate::operation::get_flow_version::GetFlowVersionInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_flow_version::GetFlowVersionInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_flow_version::GetFlowVersionInput {
            flow_identifier: self.flow_identifier,
            flow_version: self.flow_version,
        })
    }
}