aws_sdk_bedrockagent/operation/update_flow/
_update_flow_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct UpdateFlowInput {
pub name: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
pub execution_role_arn: ::std::option::Option<::std::string::String>,
pub customer_encryption_key_arn: ::std::option::Option<::std::string::String>,
pub definition: ::std::option::Option<crate::types::FlowDefinition>,
pub flow_identifier: ::std::option::Option<::std::string::String>,
}
impl UpdateFlowInput {
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn execution_role_arn(&self) -> ::std::option::Option<&str> {
self.execution_role_arn.as_deref()
}
pub fn customer_encryption_key_arn(&self) -> ::std::option::Option<&str> {
self.customer_encryption_key_arn.as_deref()
}
pub fn definition(&self) -> ::std::option::Option<&crate::types::FlowDefinition> {
self.definition.as_ref()
}
pub fn flow_identifier(&self) -> ::std::option::Option<&str> {
self.flow_identifier.as_deref()
}
}
impl ::std::fmt::Debug for UpdateFlowInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("UpdateFlowInput");
formatter.field("name", &self.name);
formatter.field("description", &self.description);
formatter.field("execution_role_arn", &self.execution_role_arn);
formatter.field("customer_encryption_key_arn", &self.customer_encryption_key_arn);
formatter.field("definition", &"*** Sensitive Data Redacted ***");
formatter.field("flow_identifier", &self.flow_identifier);
formatter.finish()
}
}
impl UpdateFlowInput {
pub fn builder() -> crate::operation::update_flow::builders::UpdateFlowInputBuilder {
crate::operation::update_flow::builders::UpdateFlowInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct UpdateFlowInputBuilder {
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) execution_role_arn: ::std::option::Option<::std::string::String>,
pub(crate) customer_encryption_key_arn: ::std::option::Option<::std::string::String>,
pub(crate) definition: ::std::option::Option<crate::types::FlowDefinition>,
pub(crate) flow_identifier: ::std::option::Option<::std::string::String>,
}
impl UpdateFlowInputBuilder {
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn execution_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.execution_role_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_execution_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.execution_role_arn = input;
self
}
pub fn get_execution_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.execution_role_arn
}
pub fn customer_encryption_key_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.customer_encryption_key_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_customer_encryption_key_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.customer_encryption_key_arn = input;
self
}
pub fn get_customer_encryption_key_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.customer_encryption_key_arn
}
pub fn definition(mut self, input: crate::types::FlowDefinition) -> Self {
self.definition = ::std::option::Option::Some(input);
self
}
pub fn set_definition(mut self, input: ::std::option::Option<crate::types::FlowDefinition>) -> Self {
self.definition = input;
self
}
pub fn get_definition(&self) -> &::std::option::Option<crate::types::FlowDefinition> {
&self.definition
}
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
}
pub fn set_flow_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.flow_identifier = input;
self
}
pub fn get_flow_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.flow_identifier
}
pub fn build(self) -> ::std::result::Result<crate::operation::update_flow::UpdateFlowInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_flow::UpdateFlowInput {
name: self.name,
description: self.description,
execution_role_arn: self.execution_role_arn,
customer_encryption_key_arn: self.customer_encryption_key_arn,
definition: self.definition,
flow_identifier: self.flow_identifier,
})
}
}
impl ::std::fmt::Debug for UpdateFlowInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("UpdateFlowInputBuilder");
formatter.field("name", &self.name);
formatter.field("description", &self.description);
formatter.field("execution_role_arn", &self.execution_role_arn);
formatter.field("customer_encryption_key_arn", &self.customer_encryption_key_arn);
formatter.field("definition", &"*** Sensitive Data Redacted ***");
formatter.field("flow_identifier", &self.flow_identifier);
formatter.finish()
}
}