aws_sdk_voiceid/operation/disassociate_fraudster/
_disassociate_fraudster_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct DisassociateFraudsterInput {
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 DisassociateFraudsterInput {
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 DisassociateFraudsterInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("DisassociateFraudsterInput");
formatter.field("domain_id", &self.domain_id);
formatter.field("watchlist_id", &self.watchlist_id);
formatter.field("fraudster_id", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
impl DisassociateFraudsterInput {
pub fn builder() -> crate::operation::disassociate_fraudster::builders::DisassociateFraudsterInputBuilder {
crate::operation::disassociate_fraudster::builders::DisassociateFraudsterInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct DisassociateFraudsterInputBuilder {
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 DisassociateFraudsterInputBuilder {
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::disassociate_fraudster::DisassociateFraudsterInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::disassociate_fraudster::DisassociateFraudsterInput {
domain_id: self.domain_id,
watchlist_id: self.watchlist_id,
fraudster_id: self.fraudster_id,
})
}
}
impl ::std::fmt::Debug for DisassociateFraudsterInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("DisassociateFraudsterInputBuilder");
formatter.field("domain_id", &self.domain_id);
formatter.field("watchlist_id", &self.watchlist_id);
formatter.field("fraudster_id", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}