aws_sdk_customerprofiles/operation/delete_integration/
_delete_integration_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteIntegrationInput {
pub domain_name: ::std::option::Option<::std::string::String>,
pub uri: ::std::option::Option<::std::string::String>,
}
impl DeleteIntegrationInput {
pub fn domain_name(&self) -> ::std::option::Option<&str> {
self.domain_name.as_deref()
}
pub fn uri(&self) -> ::std::option::Option<&str> {
self.uri.as_deref()
}
}
impl DeleteIntegrationInput {
pub fn builder() -> crate::operation::delete_integration::builders::DeleteIntegrationInputBuilder {
crate::operation::delete_integration::builders::DeleteIntegrationInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteIntegrationInputBuilder {
pub(crate) domain_name: ::std::option::Option<::std::string::String>,
pub(crate) uri: ::std::option::Option<::std::string::String>,
}
impl DeleteIntegrationInputBuilder {
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 uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.uri = ::std::option::Option::Some(input.into());
self
}
pub fn set_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.uri = input;
self
}
pub fn get_uri(&self) -> &::std::option::Option<::std::string::String> {
&self.uri
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_integration::DeleteIntegrationInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_integration::DeleteIntegrationInput {
domain_name: self.domain_name,
uri: self.uri,
})
}
}