#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct ListProfileObjectsItem {
pub object_type_name: ::std::option::Option<::std::string::String>,
pub profile_object_unique_key: ::std::option::Option<::std::string::String>,
pub object: ::std::option::Option<::std::string::String>,
}
impl ListProfileObjectsItem {
pub fn object_type_name(&self) -> ::std::option::Option<&str> {
self.object_type_name.as_deref()
}
pub fn profile_object_unique_key(&self) -> ::std::option::Option<&str> {
self.profile_object_unique_key.as_deref()
}
pub fn object(&self) -> ::std::option::Option<&str> {
self.object.as_deref()
}
}
impl ::std::fmt::Debug for ListProfileObjectsItem {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("ListProfileObjectsItem");
formatter.field("object_type_name", &self.object_type_name);
formatter.field("profile_object_unique_key", &self.profile_object_unique_key);
formatter.field("object", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
impl ListProfileObjectsItem {
pub fn builder() -> crate::types::builders::ListProfileObjectsItemBuilder {
crate::types::builders::ListProfileObjectsItemBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
pub struct ListProfileObjectsItemBuilder {
pub(crate) object_type_name: ::std::option::Option<::std::string::String>,
pub(crate) profile_object_unique_key: ::std::option::Option<::std::string::String>,
pub(crate) object: ::std::option::Option<::std::string::String>,
}
impl ListProfileObjectsItemBuilder {
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 profile_object_unique_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.profile_object_unique_key = ::std::option::Option::Some(input.into());
self
}
pub fn set_profile_object_unique_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.profile_object_unique_key = input;
self
}
pub fn get_profile_object_unique_key(&self) -> &::std::option::Option<::std::string::String> {
&self.profile_object_unique_key
}
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 build(self) -> crate::types::ListProfileObjectsItem {
crate::types::ListProfileObjectsItem {
object_type_name: self.object_type_name,
profile_object_unique_key: self.profile_object_unique_key,
object: self.object,
}
}
}
impl ::std::fmt::Debug for ListProfileObjectsItemBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("ListProfileObjectsItemBuilder");
formatter.field("object_type_name", &self.object_type_name);
formatter.field("profile_object_unique_key", &self.profile_object_unique_key);
formatter.field("object", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}