#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteProfileObjectInput {
pub profile_id: ::std::option::Option<::std::string::String>,
pub profile_object_unique_key: ::std::option::Option<::std::string::String>,
pub object_type_name: ::std::option::Option<::std::string::String>,
pub domain_name: ::std::option::Option<::std::string::String>,
}
impl DeleteProfileObjectInput {
pub fn profile_id(&self) -> ::std::option::Option<&str> {
self.profile_id.as_deref()
}
pub fn profile_object_unique_key(&self) -> ::std::option::Option<&str> {
self.profile_object_unique_key.as_deref()
}
pub fn object_type_name(&self) -> ::std::option::Option<&str> {
self.object_type_name.as_deref()
}
pub fn domain_name(&self) -> ::std::option::Option<&str> {
self.domain_name.as_deref()
}
}
impl DeleteProfileObjectInput {
pub fn builder() -> crate::operation::delete_profile_object::builders::DeleteProfileObjectInputBuilder {
crate::operation::delete_profile_object::builders::DeleteProfileObjectInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteProfileObjectInputBuilder {
pub(crate) profile_id: ::std::option::Option<::std::string::String>,
pub(crate) profile_object_unique_key: ::std::option::Option<::std::string::String>,
pub(crate) object_type_name: ::std::option::Option<::std::string::String>,
pub(crate) domain_name: ::std::option::Option<::std::string::String>,
}
impl DeleteProfileObjectInputBuilder {
pub fn profile_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.profile_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_profile_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.profile_id = input;
self
}
pub fn get_profile_id(&self) -> &::std::option::Option<::std::string::String> {
&self.profile_id
}
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_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 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::delete_profile_object::DeleteProfileObjectInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::delete_profile_object::DeleteProfileObjectInput {
profile_id: self.profile_id,
profile_object_unique_key: self.profile_object_unique_key,
object_type_name: self.object_type_name,
domain_name: self.domain_name,
})
}
}