#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct DescribeCommentsInput {
pub authentication_token: ::std::option::Option<::std::string::String>,
pub document_id: ::std::option::Option<::std::string::String>,
pub version_id: ::std::option::Option<::std::string::String>,
pub limit: ::std::option::Option<i32>,
pub marker: ::std::option::Option<::std::string::String>,
}
impl DescribeCommentsInput {
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()
}
pub fn version_id(&self) -> ::std::option::Option<&str> {
self.version_id.as_deref()
}
pub fn limit(&self) -> ::std::option::Option<i32> {
self.limit
}
pub fn marker(&self) -> ::std::option::Option<&str> {
self.marker.as_deref()
}
}
impl ::std::fmt::Debug for DescribeCommentsInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("DescribeCommentsInput");
formatter.field("authentication_token", &"*** Sensitive Data Redacted ***");
formatter.field("document_id", &self.document_id);
formatter.field("version_id", &self.version_id);
formatter.field("limit", &self.limit);
formatter.field("marker", &self.marker);
formatter.finish()
}
}
impl DescribeCommentsInput {
pub fn builder() -> crate::operation::describe_comments::builders::DescribeCommentsInputBuilder {
crate::operation::describe_comments::builders::DescribeCommentsInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
pub struct DescribeCommentsInputBuilder {
pub(crate) authentication_token: ::std::option::Option<::std::string::String>,
pub(crate) document_id: ::std::option::Option<::std::string::String>,
pub(crate) version_id: ::std::option::Option<::std::string::String>,
pub(crate) limit: ::std::option::Option<i32>,
pub(crate) marker: ::std::option::Option<::std::string::String>,
}
impl DescribeCommentsInputBuilder {
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 version_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.version_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_version_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.version_id = input;
self
}
pub fn get_version_id(&self) -> &::std::option::Option<::std::string::String> {
&self.version_id
}
pub fn limit(mut self, input: i32) -> Self {
self.limit = ::std::option::Option::Some(input);
self
}
pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
self.limit = input;
self
}
pub fn get_limit(&self) -> &::std::option::Option<i32> {
&self.limit
}
pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.marker = ::std::option::Option::Some(input.into());
self
}
pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.marker = input;
self
}
pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
&self.marker
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_comments::DescribeCommentsInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_comments::DescribeCommentsInput {
authentication_token: self.authentication_token,
document_id: self.document_id,
version_id: self.version_id,
limit: self.limit,
marker: self.marker,
})
}
}
impl ::std::fmt::Debug for DescribeCommentsInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("DescribeCommentsInputBuilder");
formatter.field("authentication_token", &"*** Sensitive Data Redacted ***");
formatter.field("document_id", &self.document_id);
formatter.field("version_id", &self.version_id);
formatter.field("limit", &self.limit);
formatter.field("marker", &self.marker);
formatter.finish()
}
}