#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeContactFlowInput {
pub instance_id: ::std::option::Option<::std::string::String>,
pub contact_flow_id: ::std::option::Option<::std::string::String>,
}
impl DescribeContactFlowInput {
pub fn instance_id(&self) -> ::std::option::Option<&str> {
self.instance_id.as_deref()
}
pub fn contact_flow_id(&self) -> ::std::option::Option<&str> {
self.contact_flow_id.as_deref()
}
}
impl DescribeContactFlowInput {
pub fn builder() -> crate::operation::describe_contact_flow::builders::DescribeContactFlowInputBuilder {
crate::operation::describe_contact_flow::builders::DescribeContactFlowInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeContactFlowInputBuilder {
pub(crate) instance_id: ::std::option::Option<::std::string::String>,
pub(crate) contact_flow_id: ::std::option::Option<::std::string::String>,
}
impl DescribeContactFlowInputBuilder {
pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.instance_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.instance_id = input;
self
}
pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
&self.instance_id
}
pub fn contact_flow_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.contact_flow_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_contact_flow_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.contact_flow_id = input;
self
}
pub fn get_contact_flow_id(&self) -> &::std::option::Option<::std::string::String> {
&self.contact_flow_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_contact_flow::DescribeContactFlowInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::describe_contact_flow::DescribeContactFlowInput {
instance_id: self.instance_id,
contact_flow_id: self.contact_flow_id,
})
}
}