#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct DeleteDocumentInput {
pub authentication_token: ::std::option::Option<::std::string::String>,
pub document_id: ::std::option::Option<::std::string::String>,
}
impl DeleteDocumentInput {
pub fn authentication_token(&self) -> ::std::option::Option<&str> {
self.authentication_token.as_deref()
}
pub fn document_id(&self) -> ::std::option::Option<&str> {
self.document_id.as_deref()
}
}
impl ::std::fmt::Debug for DeleteDocumentInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("DeleteDocumentInput");
formatter.field("authentication_token", &"*** Sensitive Data Redacted ***");
formatter.field("document_id", &self.document_id);
formatter.finish()
}
}
impl DeleteDocumentInput {
pub fn builder() -> crate::operation::delete_document::builders::DeleteDocumentInputBuilder {
crate::operation::delete_document::builders::DeleteDocumentInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct DeleteDocumentInputBuilder {
pub(crate) authentication_token: ::std::option::Option<::std::string::String>,
pub(crate) document_id: ::std::option::Option<::std::string::String>,
}
impl DeleteDocumentInputBuilder {
pub fn authentication_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.authentication_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_authentication_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.authentication_token = input;
self
}
pub fn get_authentication_token(&self) -> &::std::option::Option<::std::string::String> {
&self.authentication_token
}
pub fn document_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.document_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_document_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.document_id = input;
self
}
pub fn get_document_id(&self) -> &::std::option::Option<::std::string::String> {
&self.document_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_document::DeleteDocumentInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_document::DeleteDocumentInput {
authentication_token: self.authentication_token,
document_id: self.document_id,
})
}
}
impl ::std::fmt::Debug for DeleteDocumentInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("DeleteDocumentInputBuilder");
formatter.field("authentication_token", &"*** Sensitive Data Redacted ***");
formatter.field("document_id", &self.document_id);
formatter.finish()
}
}