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