aws-sdk-bedrockagentruntime 1.126.0

AWS SDK for Agents for Amazon Bedrock Runtime
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 GetFlowExecutionInput {
    /// <p>The unique identifier of the flow.</p>
    pub flow_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the flow alias used for the execution.</p>
    pub flow_alias_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the flow execution to retrieve.</p>
    pub execution_identifier: ::std::option::Option<::std::string::String>,
}
impl GetFlowExecutionInput {
    /// <p>The unique identifier of the flow.</p>
    pub fn flow_identifier(&self) -> ::std::option::Option<&str> {
        self.flow_identifier.as_deref()
    }
    /// <p>The unique identifier of the flow alias used for the execution.</p>
    pub fn flow_alias_identifier(&self) -> ::std::option::Option<&str> {
        self.flow_alias_identifier.as_deref()
    }
    /// <p>The unique identifier of the flow execution to retrieve.</p>
    pub fn execution_identifier(&self) -> ::std::option::Option<&str> {
        self.execution_identifier.as_deref()
    }
}
impl GetFlowExecutionInput {
    /// Creates a new builder-style object to manufacture [`GetFlowExecutionInput`](crate::operation::get_flow_execution::GetFlowExecutionInput).
    pub fn builder() -> crate::operation::get_flow_execution::builders::GetFlowExecutionInputBuilder {
        crate::operation::get_flow_execution::builders::GetFlowExecutionInputBuilder::default()
    }
}

/// A builder for [`GetFlowExecutionInput`](crate::operation::get_flow_execution::GetFlowExecutionInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetFlowExecutionInputBuilder {
    pub(crate) flow_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) flow_alias_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) execution_identifier: ::std::option::Option<::std::string::String>,
}
impl GetFlowExecutionInputBuilder {
    /// <p>The unique identifier of the flow.</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.</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.</p>
    pub fn get_flow_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.flow_identifier
    }
    /// <p>The unique identifier of the flow alias used for the execution.</p>
    /// This field is required.
    pub fn flow_alias_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.flow_alias_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the flow alias used for the execution.</p>
    pub fn set_flow_alias_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.flow_alias_identifier = input;
        self
    }
    /// <p>The unique identifier of the flow alias used for the execution.</p>
    pub fn get_flow_alias_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.flow_alias_identifier
    }
    /// <p>The unique identifier of the flow execution to retrieve.</p>
    /// This field is required.
    pub fn execution_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.execution_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the flow execution to retrieve.</p>
    pub fn set_execution_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.execution_identifier = input;
        self
    }
    /// <p>The unique identifier of the flow execution to retrieve.</p>
    pub fn get_execution_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.execution_identifier
    }
    /// Consumes the builder and constructs a [`GetFlowExecutionInput`](crate::operation::get_flow_execution::GetFlowExecutionInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_flow_execution::GetFlowExecutionInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_flow_execution::GetFlowExecutionInput {
            flow_identifier: self.flow_identifier,
            flow_alias_identifier: self.flow_alias_identifier,
            execution_identifier: self.execution_identifier,
        })
    }
}