#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct GetMatchIdInput {
pub workflow_name: ::std::option::Option<::std::string::String>,
pub record: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub apply_normalization: ::std::option::Option<bool>,
}
impl GetMatchIdInput {
pub fn workflow_name(&self) -> ::std::option::Option<&str> {
self.workflow_name.as_deref()
}
pub fn record(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.record.as_ref()
}
pub fn apply_normalization(&self) -> ::std::option::Option<bool> {
self.apply_normalization
}
}
impl ::std::fmt::Debug for GetMatchIdInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("GetMatchIdInput");
formatter.field("workflow_name", &self.workflow_name);
formatter.field("record", &"*** Sensitive Data Redacted ***");
formatter.field("apply_normalization", &self.apply_normalization);
formatter.finish()
}
}
impl GetMatchIdInput {
pub fn builder() -> crate::operation::get_match_id::builders::GetMatchIdInputBuilder {
crate::operation::get_match_id::builders::GetMatchIdInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct GetMatchIdInputBuilder {
pub(crate) workflow_name: ::std::option::Option<::std::string::String>,
pub(crate) record: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub(crate) apply_normalization: ::std::option::Option<bool>,
}
impl GetMatchIdInputBuilder {
pub fn workflow_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.workflow_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_workflow_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.workflow_name = input;
self
}
pub fn get_workflow_name(&self) -> &::std::option::Option<::std::string::String> {
&self.workflow_name
}
pub fn record(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.record.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.record = ::std::option::Option::Some(hash_map);
self
}
pub fn set_record(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.record = input;
self
}
pub fn get_record(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.record
}
pub fn apply_normalization(mut self, input: bool) -> Self {
self.apply_normalization = ::std::option::Option::Some(input);
self
}
pub fn set_apply_normalization(mut self, input: ::std::option::Option<bool>) -> Self {
self.apply_normalization = input;
self
}
pub fn get_apply_normalization(&self) -> &::std::option::Option<bool> {
&self.apply_normalization
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_match_id::GetMatchIdInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_match_id::GetMatchIdInput {
workflow_name: self.workflow_name,
record: self.record,
apply_normalization: self.apply_normalization,
})
}
}
impl ::std::fmt::Debug for GetMatchIdInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("GetMatchIdInputBuilder");
formatter.field("workflow_name", &self.workflow_name);
formatter.field("record", &"*** Sensitive Data Redacted ***");
formatter.field("apply_normalization", &self.apply_normalization);
formatter.finish()
}
}