aws_sdk_voiceid/operation/associate_fraudster/
_associate_fraudster_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct AssociateFraudsterInput {
pub domain_id: ::std::option::Option<::std::string::String>,
pub watchlist_id: ::std::option::Option<::std::string::String>,
pub fraudster_id: ::std::option::Option<::std::string::String>,
}
impl AssociateFraudsterInput {
pub fn domain_id(&self) -> ::std::option::Option<&str> {
self.domain_id.as_deref()
}
pub fn watchlist_id(&self) -> ::std::option::Option<&str> {
self.watchlist_id.as_deref()
}
pub fn fraudster_id(&self) -> ::std::option::Option<&str> {
self.fraudster_id.as_deref()
}
}
impl ::std::fmt::Debug for AssociateFraudsterInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("AssociateFraudsterInput");
formatter.field("domain_id", &self.domain_id);
formatter.field("watchlist_id", &self.watchlist_id);
formatter.field("fraudster_id", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
impl AssociateFraudsterInput {
pub fn builder() -> crate::operation::associate_fraudster::builders::AssociateFraudsterInputBuilder {
crate::operation::associate_fraudster::builders::AssociateFraudsterInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct AssociateFraudsterInputBuilder {
pub(crate) domain_id: ::std::option::Option<::std::string::String>,
pub(crate) watchlist_id: ::std::option::Option<::std::string::String>,
pub(crate) fraudster_id: ::std::option::Option<::std::string::String>,
}
impl AssociateFraudsterInputBuilder {
pub fn domain_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_domain_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain_id = input;
self
}
pub fn get_domain_id(&self) -> &::std::option::Option<::std::string::String> {
&self.domain_id
}
pub fn watchlist_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.watchlist_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_watchlist_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.watchlist_id = input;
self
}
pub fn get_watchlist_id(&self) -> &::std::option::Option<::std::string::String> {
&self.watchlist_id
}
pub fn fraudster_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.fraudster_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_fraudster_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.fraudster_id = input;
self
}
pub fn get_fraudster_id(&self) -> &::std::option::Option<::std::string::String> {
&self.fraudster_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::associate_fraudster::AssociateFraudsterInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::associate_fraudster::AssociateFraudsterInput {
domain_id: self.domain_id,
watchlist_id: self.watchlist_id,
fraudster_id: self.fraudster_id,
})
}
}
impl ::std::fmt::Debug for AssociateFraudsterInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("AssociateFraudsterInputBuilder");
formatter.field("domain_id", &self.domain_id);
formatter.field("watchlist_id", &self.watchlist_id);
formatter.field("fraudster_id", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}