aws_sdk_workdocs/operation/describe_comments/
_describe_comments_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
5pub struct DescribeCommentsInput {
6 pub authentication_token: ::std::option::Option<::std::string::String>,
8 pub document_id: ::std::option::Option<::std::string::String>,
10 pub version_id: ::std::option::Option<::std::string::String>,
12 pub limit: ::std::option::Option<i32>,
14 pub marker: ::std::option::Option<::std::string::String>,
16}
17impl DescribeCommentsInput {
18 pub fn authentication_token(&self) -> ::std::option::Option<&str> {
20 self.authentication_token.as_deref()
21 }
22 pub fn document_id(&self) -> ::std::option::Option<&str> {
24 self.document_id.as_deref()
25 }
26 pub fn version_id(&self) -> ::std::option::Option<&str> {
28 self.version_id.as_deref()
29 }
30 pub fn limit(&self) -> ::std::option::Option<i32> {
32 self.limit
33 }
34 pub fn marker(&self) -> ::std::option::Option<&str> {
36 self.marker.as_deref()
37 }
38}
39impl ::std::fmt::Debug for DescribeCommentsInput {
40 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
41 let mut formatter = f.debug_struct("DescribeCommentsInput");
42 formatter.field("authentication_token", &"*** Sensitive Data Redacted ***");
43 formatter.field("document_id", &self.document_id);
44 formatter.field("version_id", &self.version_id);
45 formatter.field("limit", &self.limit);
46 formatter.field("marker", &self.marker);
47 formatter.finish()
48 }
49}
50impl DescribeCommentsInput {
51 pub fn builder() -> crate::operation::describe_comments::builders::DescribeCommentsInputBuilder {
53 crate::operation::describe_comments::builders::DescribeCommentsInputBuilder::default()
54 }
55}
56
57#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
59#[non_exhaustive]
60pub struct DescribeCommentsInputBuilder {
61 pub(crate) authentication_token: ::std::option::Option<::std::string::String>,
62 pub(crate) document_id: ::std::option::Option<::std::string::String>,
63 pub(crate) version_id: ::std::option::Option<::std::string::String>,
64 pub(crate) limit: ::std::option::Option<i32>,
65 pub(crate) marker: ::std::option::Option<::std::string::String>,
66}
67impl DescribeCommentsInputBuilder {
68 pub fn authentication_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
70 self.authentication_token = ::std::option::Option::Some(input.into());
71 self
72 }
73 pub fn set_authentication_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
75 self.authentication_token = input;
76 self
77 }
78 pub fn get_authentication_token(&self) -> &::std::option::Option<::std::string::String> {
80 &self.authentication_token
81 }
82 pub fn document_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
85 self.document_id = ::std::option::Option::Some(input.into());
86 self
87 }
88 pub fn set_document_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
90 self.document_id = input;
91 self
92 }
93 pub fn get_document_id(&self) -> &::std::option::Option<::std::string::String> {
95 &self.document_id
96 }
97 pub fn version_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
100 self.version_id = ::std::option::Option::Some(input.into());
101 self
102 }
103 pub fn set_version_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
105 self.version_id = input;
106 self
107 }
108 pub fn get_version_id(&self) -> &::std::option::Option<::std::string::String> {
110 &self.version_id
111 }
112 pub fn limit(mut self, input: i32) -> Self {
114 self.limit = ::std::option::Option::Some(input);
115 self
116 }
117 pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
119 self.limit = input;
120 self
121 }
122 pub fn get_limit(&self) -> &::std::option::Option<i32> {
124 &self.limit
125 }
126 pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
128 self.marker = ::std::option::Option::Some(input.into());
129 self
130 }
131 pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
133 self.marker = input;
134 self
135 }
136 pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
138 &self.marker
139 }
140 pub fn build(
142 self,
143 ) -> ::std::result::Result<crate::operation::describe_comments::DescribeCommentsInput, ::aws_smithy_types::error::operation::BuildError> {
144 ::std::result::Result::Ok(crate::operation::describe_comments::DescribeCommentsInput {
145 authentication_token: self.authentication_token,
146 document_id: self.document_id,
147 version_id: self.version_id,
148 limit: self.limit,
149 marker: self.marker,
150 })
151 }
152}
153impl ::std::fmt::Debug for DescribeCommentsInputBuilder {
154 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
155 let mut formatter = f.debug_struct("DescribeCommentsInputBuilder");
156 formatter.field("authentication_token", &"*** Sensitive Data Redacted ***");
157 formatter.field("document_id", &self.document_id);
158 formatter.field("version_id", &self.version_id);
159 formatter.field("limit", &self.limit);
160 formatter.field("marker", &self.marker);
161 formatter.finish()
162 }
163}