#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RemoveEntityOwnerInput {
pub domain_identifier: ::std::option::Option<::std::string::String>,
pub entity_type: ::std::option::Option<crate::types::DataZoneEntityType>,
pub entity_identifier: ::std::option::Option<::std::string::String>,
pub owner: ::std::option::Option<crate::types::OwnerProperties>,
pub client_token: ::std::option::Option<::std::string::String>,
}
impl RemoveEntityOwnerInput {
pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
self.domain_identifier.as_deref()
}
pub fn entity_type(&self) -> ::std::option::Option<&crate::types::DataZoneEntityType> {
self.entity_type.as_ref()
}
pub fn entity_identifier(&self) -> ::std::option::Option<&str> {
self.entity_identifier.as_deref()
}
pub fn owner(&self) -> ::std::option::Option<&crate::types::OwnerProperties> {
self.owner.as_ref()
}
pub fn client_token(&self) -> ::std::option::Option<&str> {
self.client_token.as_deref()
}
}
impl RemoveEntityOwnerInput {
pub fn builder() -> crate::operation::remove_entity_owner::builders::RemoveEntityOwnerInputBuilder {
crate::operation::remove_entity_owner::builders::RemoveEntityOwnerInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RemoveEntityOwnerInputBuilder {
pub(crate) domain_identifier: ::std::option::Option<::std::string::String>,
pub(crate) entity_type: ::std::option::Option<crate::types::DataZoneEntityType>,
pub(crate) entity_identifier: ::std::option::Option<::std::string::String>,
pub(crate) owner: ::std::option::Option<crate::types::OwnerProperties>,
pub(crate) client_token: ::std::option::Option<::std::string::String>,
}
impl RemoveEntityOwnerInputBuilder {
pub fn domain_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain_identifier = input;
self
}
pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.domain_identifier
}
pub fn entity_type(mut self, input: crate::types::DataZoneEntityType) -> Self {
self.entity_type = ::std::option::Option::Some(input);
self
}
pub fn set_entity_type(mut self, input: ::std::option::Option<crate::types::DataZoneEntityType>) -> Self {
self.entity_type = input;
self
}
pub fn get_entity_type(&self) -> &::std::option::Option<crate::types::DataZoneEntityType> {
&self.entity_type
}
pub fn entity_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.entity_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_entity_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.entity_identifier = input;
self
}
pub fn get_entity_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.entity_identifier
}
pub fn owner(mut self, input: crate::types::OwnerProperties) -> Self {
self.owner = ::std::option::Option::Some(input);
self
}
pub fn set_owner(mut self, input: ::std::option::Option<crate::types::OwnerProperties>) -> Self {
self.owner = input;
self
}
pub fn get_owner(&self) -> &::std::option::Option<crate::types::OwnerProperties> {
&self.owner
}
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.client_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_token = input;
self
}
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
&self.client_token
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::remove_entity_owner::RemoveEntityOwnerInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::remove_entity_owner::RemoveEntityOwnerInput {
domain_identifier: self.domain_identifier,
entity_type: self.entity_type,
entity_identifier: self.entity_identifier,
owner: self.owner,
client_token: self.client_token,
})
}
}