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