aws_sdk_workdocs/operation/get_document_path/
_get_document_path_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
5pub struct GetDocumentPathInput {
6 pub authentication_token: ::std::option::Option<::std::string::String>,
8 pub document_id: ::std::option::Option<::std::string::String>,
10 pub limit: ::std::option::Option<i32>,
12 pub fields: ::std::option::Option<::std::string::String>,
14 pub marker: ::std::option::Option<::std::string::String>,
16}
17impl GetDocumentPathInput {
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 limit(&self) -> ::std::option::Option<i32> {
28 self.limit
29 }
30 pub fn fields(&self) -> ::std::option::Option<&str> {
32 self.fields.as_deref()
33 }
34 pub fn marker(&self) -> ::std::option::Option<&str> {
36 self.marker.as_deref()
37 }
38}
39impl ::std::fmt::Debug for GetDocumentPathInput {
40 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
41 let mut formatter = f.debug_struct("GetDocumentPathInput");
42 formatter.field("authentication_token", &"*** Sensitive Data Redacted ***");
43 formatter.field("document_id", &self.document_id);
44 formatter.field("limit", &self.limit);
45 formatter.field("fields", &self.fields);
46 formatter.field("marker", &self.marker);
47 formatter.finish()
48 }
49}
50impl GetDocumentPathInput {
51 pub fn builder() -> crate::operation::get_document_path::builders::GetDocumentPathInputBuilder {
53 crate::operation::get_document_path::builders::GetDocumentPathInputBuilder::default()
54 }
55}
56
57#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
59#[non_exhaustive]
60pub struct GetDocumentPathInputBuilder {
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) limit: ::std::option::Option<i32>,
64 pub(crate) fields: ::std::option::Option<::std::string::String>,
65 pub(crate) marker: ::std::option::Option<::std::string::String>,
66}
67impl GetDocumentPathInputBuilder {
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 limit(mut self, input: i32) -> Self {
99 self.limit = ::std::option::Option::Some(input);
100 self
101 }
102 pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
104 self.limit = input;
105 self
106 }
107 pub fn get_limit(&self) -> &::std::option::Option<i32> {
109 &self.limit
110 }
111 pub fn fields(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113 self.fields = ::std::option::Option::Some(input.into());
114 self
115 }
116 pub fn set_fields(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118 self.fields = input;
119 self
120 }
121 pub fn get_fields(&self) -> &::std::option::Option<::std::string::String> {
123 &self.fields
124 }
125 pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
127 self.marker = ::std::option::Option::Some(input.into());
128 self
129 }
130 pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
132 self.marker = input;
133 self
134 }
135 pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
137 &self.marker
138 }
139 pub fn build(
141 self,
142 ) -> ::std::result::Result<crate::operation::get_document_path::GetDocumentPathInput, ::aws_smithy_types::error::operation::BuildError> {
143 ::std::result::Result::Ok(crate::operation::get_document_path::GetDocumentPathInput {
144 authentication_token: self.authentication_token,
145 document_id: self.document_id,
146 limit: self.limit,
147 fields: self.fields,
148 marker: self.marker,
149 })
150 }
151}
152impl ::std::fmt::Debug for GetDocumentPathInputBuilder {
153 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
154 let mut formatter = f.debug_struct("GetDocumentPathInputBuilder");
155 formatter.field("authentication_token", &"*** Sensitive Data Redacted ***");
156 formatter.field("document_id", &self.document_id);
157 formatter.field("limit", &self.limit);
158 formatter.field("fields", &self.fields);
159 formatter.field("marker", &self.marker);
160 formatter.finish()
161 }
162}