#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct PutProfileObjectInput {
pub object_type_name: ::std::option::Option<::std::string::String>,
pub object: ::std::option::Option<::std::string::String>,
pub domain_name: ::std::option::Option<::std::string::String>,
}
impl PutProfileObjectInput {
pub fn object_type_name(&self) -> ::std::option::Option<&str> {
self.object_type_name.as_deref()
}
pub fn object(&self) -> ::std::option::Option<&str> {
self.object.as_deref()
}
pub fn domain_name(&self) -> ::std::option::Option<&str> {
self.domain_name.as_deref()
}
}
impl ::std::fmt::Debug for PutProfileObjectInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("PutProfileObjectInput");
formatter.field("object_type_name", &self.object_type_name);
formatter.field("object", &"*** Sensitive Data Redacted ***");
formatter.field("domain_name", &self.domain_name);
formatter.finish()
}
}
impl PutProfileObjectInput {
pub fn builder() -> crate::operation::put_profile_object::builders::PutProfileObjectInputBuilder {
crate::operation::put_profile_object::builders::PutProfileObjectInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
pub struct PutProfileObjectInputBuilder {
pub(crate) object_type_name: ::std::option::Option<::std::string::String>,
pub(crate) object: ::std::option::Option<::std::string::String>,
pub(crate) domain_name: ::std::option::Option<::std::string::String>,
}
impl PutProfileObjectInputBuilder {
pub fn object_type_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.object_type_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_object_type_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.object_type_name = input;
self
}
pub fn get_object_type_name(&self) -> &::std::option::Option<::std::string::String> {
&self.object_type_name
}
pub fn object(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.object = ::std::option::Option::Some(input.into());
self
}
pub fn set_object(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.object = input;
self
}
pub fn get_object(&self) -> &::std::option::Option<::std::string::String> {
&self.object
}
pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain_name = input;
self
}
pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
&self.domain_name
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::put_profile_object::PutProfileObjectInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::put_profile_object::PutProfileObjectInput {
object_type_name: self.object_type_name,
object: self.object,
domain_name: self.domain_name,
})
}
}
impl ::std::fmt::Debug for PutProfileObjectInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("PutProfileObjectInputBuilder");
formatter.field("object_type_name", &self.object_type_name);
formatter.field("object", &"*** Sensitive Data Redacted ***");
formatter.field("domain_name", &self.domain_name);
formatter.finish()
}
}