stedi_sdk_client_guides/client.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[derive(Debug)]
3pub(crate) struct Handle {
4 pub(crate) client: aws_smithy_client::Client<
5 aws_smithy_client::erase::DynConnector,
6 aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
7 >,
8 pub(crate) conf: crate::Config,
9}
10
11/// Client for Guides
12///
13/// Client for invoking operations on Guides. Each operation on Guides is a method on this
14/// this struct. `.send()` MUST be invoked on the generated operations to dispatch the request to the service.
15///
16/// # Examples
17/// **Constructing a client and invoking an operation**
18/// ```rust,no_run
19/// # async fn docs() {
20/// // create a shared configuration. This can be used & shared between multiple service clients.
21/// let shared_config = stedi_sdk_config::load_from_env().await;
22/// let client = stedi_sdk_client_guides::Client::new(&shared_config);
23/// // invoke an operation
24/// /* let rsp = client
25/// .<operation_name>().
26/// .<param>("some value")
27/// .send().await; */
28/// # }
29/// ```
30/// **Constructing a client with custom configuration**
31/// ```rust,no_run
32/// use stedi_sdk_config::retry::RetryConfig;
33/// # async fn docs() {
34/// let shared_config = stedi_sdk_config::load_from_env().await;
35/// let config = stedi_sdk_client_guides::config::Builder::from(&shared_config)
36/// .retry_config(RetryConfig::disabled())
37/// .build();
38/// let client = stedi_sdk_client_guides::Client::from_conf(config);
39/// # }
40#[derive(std::fmt::Debug)]
41pub struct Client {
42 handle: std::sync::Arc<Handle>,
43}
44
45impl std::clone::Clone for Client {
46 fn clone(&self) -> Self {
47 Self {
48 handle: self.handle.clone(),
49 }
50 }
51}
52
53#[doc(inline)]
54pub use aws_smithy_client::Builder;
55
56impl
57 From<
58 aws_smithy_client::Client<
59 aws_smithy_client::erase::DynConnector,
60 aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
61 >,
62 > for Client
63{
64 fn from(
65 client: aws_smithy_client::Client<
66 aws_smithy_client::erase::DynConnector,
67 aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
68 >,
69 ) -> Self {
70 Self::with_config(client, crate::Config::builder().build())
71 }
72}
73
74impl Client {
75 /// Creates a client with the given service configuration.
76 pub fn with_config(
77 client: aws_smithy_client::Client<
78 aws_smithy_client::erase::DynConnector,
79 aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
80 >,
81 conf: crate::Config,
82 ) -> Self {
83 Self {
84 handle: std::sync::Arc::new(Handle { client, conf }),
85 }
86 }
87
88 /// Returns the client's configuration.
89 pub fn conf(&self) -> &crate::Config {
90 &self.handle.conf
91 }
92}
93impl Client {
94 /// Constructs a fluent builder for the [`ChangeGuideVisibility`](crate::client::fluent_builders::ChangeGuideVisibility) operation.
95 ///
96 /// - The fluent builder is configurable:
97 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::ChangeGuideVisibility::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::ChangeGuideVisibility::set_id): (undocumented)
98 /// - [`visibility(GuideVisibility)`](crate::client::fluent_builders::ChangeGuideVisibility::visibility) / [`set_visibility(Option<GuideVisibility>)`](crate::client::fluent_builders::ChangeGuideVisibility::set_visibility): (undocumented)
99 /// - On success, responds with [`ChangeGuideVisibilityOutput`](crate::output::ChangeGuideVisibilityOutput) with field(s):
100 /// - [`id(Option<String>)`](crate::output::ChangeGuideVisibilityOutput::id): (undocumented)
101 /// - [`visibility(Option<GuideVisibility>)`](crate::output::ChangeGuideVisibilityOutput::visibility): (undocumented)
102 /// - On failure, responds with [`SdkError<ChangeGuideVisibilityError>`](crate::error::ChangeGuideVisibilityError)
103 pub fn change_guide_visibility(&self) -> fluent_builders::ChangeGuideVisibility {
104 fluent_builders::ChangeGuideVisibility::new(self.handle.clone())
105 }
106 /// Constructs a fluent builder for the [`CreateGuide`](crate::client::fluent_builders::CreateGuide) operation.
107 ///
108 /// - The fluent builder is configurable:
109 /// - [`name(impl Into<String>)`](crate::client::fluent_builders::CreateGuide::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::CreateGuide::set_name): (undocumented)
110 /// - [`target(GuideTarget)`](crate::client::fluent_builders::CreateGuide::target) / [`set_target(Option<GuideTarget>)`](crate::client::fluent_builders::CreateGuide::set_target): (undocumented)
111 /// - [`definition(Document)`](crate::client::fluent_builders::CreateGuide::definition) / [`set_definition(Option<Document>)`](crate::client::fluent_builders::CreateGuide::set_definition): (undocumented)
112 /// - [`x12_envelope(impl Into<String>)`](crate::client::fluent_builders::CreateGuide::x12_envelope) / [`set_x12_envelope(Option<String>)`](crate::client::fluent_builders::CreateGuide::set_x12_envelope): (undocumented)
113 /// - [`output_format(OutputFormat)`](crate::client::fluent_builders::CreateGuide::output_format) / [`set_output_format(Option<OutputFormat>)`](crate::client::fluent_builders::CreateGuide::set_output_format): (undocumented)
114 /// - [`samples(Vec<CreateGuideSampleData>)`](crate::client::fluent_builders::CreateGuide::samples) / [`set_samples(Option<Vec<CreateGuideSampleData>>)`](crate::client::fluent_builders::CreateGuide::set_samples): (undocumented)
115 /// - [`attachments(Vec<CreateGuideAttachmentData>)`](crate::client::fluent_builders::CreateGuide::attachments) / [`set_attachments(Option<Vec<CreateGuideAttachmentData>>)`](crate::client::fluent_builders::CreateGuide::set_attachments): (undocumented)
116 /// - [`source_guide(impl Into<String>)`](crate::client::fluent_builders::CreateGuide::source_guide) / [`set_source_guide(Option<String>)`](crate::client::fluent_builders::CreateGuide::set_source_guide): Tracks the source of the created guide. If imported from a public guide, will equal the guide Id. If imported from a shared guide, will equal account name and guide name
117 /// - On success, responds with [`CreateGuideOutput`](crate::output::CreateGuideOutput) with field(s):
118 /// - [`id(Option<String>)`](crate::output::CreateGuideOutput::id): Id of the draft guide, begins with DRFT_
119 /// - [`name(Option<String>)`](crate::output::CreateGuideOutput::name): (undocumented)
120 /// - [`visibility(Option<GuideVisibility>)`](crate::output::CreateGuideOutput::visibility): (undocumented)
121 /// - [`target(Option<GuideTarget>)`](crate::output::CreateGuideOutput::target): (undocumented)
122 /// - [`definition(Option<Document>)`](crate::output::CreateGuideOutput::definition): (undocumented)
123 /// - [`unpublished_changes(Option<bool>)`](crate::output::CreateGuideOutput::unpublished_changes): (undocumented)
124 /// - [`created_at(Option<DateTime>)`](crate::output::CreateGuideOutput::created_at): (undocumented)
125 /// - [`updated_at(Option<DateTime>)`](crate::output::CreateGuideOutput::updated_at): (undocumented)
126 /// - [`published_at(Option<DateTime>)`](crate::output::CreateGuideOutput::published_at): (undocumented)
127 /// - [`share_enabled(Option<bool>)`](crate::output::CreateGuideOutput::share_enabled): (undocumented)
128 /// - [`share_id(Option<String>)`](crate::output::CreateGuideOutput::share_id): (undocumented)
129 /// - [`x12_envelope(Option<String>)`](crate::output::CreateGuideOutput::x12_envelope): (undocumented)
130 /// - [`fragment_path(Option<String>)`](crate::output::CreateGuideOutput::fragment_path): (undocumented)
131 /// - [`source_guide(Option<String>)`](crate::output::CreateGuideOutput::source_guide): (undocumented)
132 /// - On failure, responds with [`SdkError<CreateGuideError>`](crate::error::CreateGuideError)
133 pub fn create_guide(&self) -> fluent_builders::CreateGuide {
134 fluent_builders::CreateGuide::new(self.handle.clone())
135 }
136 /// Constructs a fluent builder for the [`CreateGuideAttachment`](crate::client::fluent_builders::CreateGuideAttachment) operation.
137 ///
138 /// - The fluent builder is configurable:
139 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::CreateGuideAttachment::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::CreateGuideAttachment::set_id): Id of the draft guide these attachments belong to, begins with DRFT_
140 /// - [`name(impl Into<String>)`](crate::client::fluent_builders::CreateGuideAttachment::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::CreateGuideAttachment::set_name): (undocumented)
141 /// - [`filename(impl Into<String>)`](crate::client::fluent_builders::CreateGuideAttachment::filename) / [`set_filename(Option<String>)`](crate::client::fluent_builders::CreateGuideAttachment::set_filename): (undocumented)
142 /// - [`visibility(AttachmentVisibility)`](crate::client::fluent_builders::CreateGuideAttachment::visibility) / [`set_visibility(Option<AttachmentVisibility>)`](crate::client::fluent_builders::CreateGuideAttachment::set_visibility): (undocumented)
143 /// - [`content(Blob)`](crate::client::fluent_builders::CreateGuideAttachment::content) / [`set_content(Option<Blob>)`](crate::client::fluent_builders::CreateGuideAttachment::set_content): (undocumented)
144 /// - On success, responds with [`CreateGuideAttachmentOutput`](crate::output::CreateGuideAttachmentOutput) with field(s):
145 /// - [`id(Option<String>)`](crate::output::CreateGuideAttachmentOutput::id): (undocumented)
146 /// - [`name(Option<String>)`](crate::output::CreateGuideAttachmentOutput::name): (undocumented)
147 /// - [`filename(Option<String>)`](crate::output::CreateGuideAttachmentOutput::filename): (undocumented)
148 /// - [`visibility(Option<AttachmentVisibility>)`](crate::output::CreateGuideAttachmentOutput::visibility): (undocumented)
149 /// - [`content_signed_url(Option<String>)`](crate::output::CreateGuideAttachmentOutput::content_signed_url): (undocumented)
150 /// - On failure, responds with [`SdkError<CreateGuideAttachmentError>`](crate::error::CreateGuideAttachmentError)
151 pub fn create_guide_attachment(&self) -> fluent_builders::CreateGuideAttachment {
152 fluent_builders::CreateGuideAttachment::new(self.handle.clone())
153 }
154 /// Constructs a fluent builder for the [`CreateGuideSample`](crate::client::fluent_builders::CreateGuideSample) operation.
155 ///
156 /// - The fluent builder is configurable:
157 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::CreateGuideSample::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::CreateGuideSample::set_id): Id of the draft guide these samples belong to, begins with DRFT_
158 /// - [`name(impl Into<String>)`](crate::client::fluent_builders::CreateGuideSample::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::CreateGuideSample::set_name): (undocumented)
159 /// - [`content(impl Into<String>)`](crate::client::fluent_builders::CreateGuideSample::content) / [`set_content(Option<String>)`](crate::client::fluent_builders::CreateGuideSample::set_content): (undocumented)
160 /// - [`description(impl Into<String>)`](crate::client::fluent_builders::CreateGuideSample::description) / [`set_description(Option<String>)`](crate::client::fluent_builders::CreateGuideSample::set_description): (undocumented)
161 /// - On success, responds with [`CreateGuideSampleOutput`](crate::output::CreateGuideSampleOutput) with field(s):
162 /// - [`id(Option<String>)`](crate::output::CreateGuideSampleOutput::id): (undocumented)
163 /// - [`name(Option<String>)`](crate::output::CreateGuideSampleOutput::name): (undocumented)
164 /// - [`content(Option<String>)`](crate::output::CreateGuideSampleOutput::content): (undocumented)
165 /// - [`description(Option<String>)`](crate::output::CreateGuideSampleOutput::description): (undocumented)
166 /// - On failure, responds with [`SdkError<CreateGuideSampleError>`](crate::error::CreateGuideSampleError)
167 pub fn create_guide_sample(&self) -> fluent_builders::CreateGuideSample {
168 fluent_builders::CreateGuideSample::new(self.handle.clone())
169 }
170 /// Constructs a fluent builder for the [`DeleteGuide`](crate::client::fluent_builders::DeleteGuide) operation.
171 ///
172 /// - The fluent builder is configurable:
173 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::DeleteGuide::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::DeleteGuide::set_id): (undocumented)
174 /// - On success, responds with [`DeleteGuideOutput`](crate::output::DeleteGuideOutput)
175
176 /// - On failure, responds with [`SdkError<DeleteGuideError>`](crate::error::DeleteGuideError)
177 pub fn delete_guide(&self) -> fluent_builders::DeleteGuide {
178 fluent_builders::DeleteGuide::new(self.handle.clone())
179 }
180 /// Constructs a fluent builder for the [`DeleteGuideAttachment`](crate::client::fluent_builders::DeleteGuideAttachment) operation.
181 ///
182 /// - The fluent builder is configurable:
183 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::DeleteGuideAttachment::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::DeleteGuideAttachment::set_id): Id of the draft guide these attachments belong to, begins with DRFT_
184 /// - [`guide_attachment_id(impl Into<String>)`](crate::client::fluent_builders::DeleteGuideAttachment::guide_attachment_id) / [`set_guide_attachment_id(Option<String>)`](crate::client::fluent_builders::DeleteGuideAttachment::set_guide_attachment_id): (undocumented)
185 /// - On success, responds with [`DeleteGuideAttachmentOutput`](crate::output::DeleteGuideAttachmentOutput)
186
187 /// - On failure, responds with [`SdkError<DeleteGuideAttachmentError>`](crate::error::DeleteGuideAttachmentError)
188 pub fn delete_guide_attachment(&self) -> fluent_builders::DeleteGuideAttachment {
189 fluent_builders::DeleteGuideAttachment::new(self.handle.clone())
190 }
191 /// Constructs a fluent builder for the [`DeleteGuideSample`](crate::client::fluent_builders::DeleteGuideSample) operation.
192 ///
193 /// - The fluent builder is configurable:
194 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::DeleteGuideSample::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::DeleteGuideSample::set_id): Id of the draft guide these samples belong to, begins with DRFT_
195 /// - [`guide_sample_id(impl Into<String>)`](crate::client::fluent_builders::DeleteGuideSample::guide_sample_id) / [`set_guide_sample_id(Option<String>)`](crate::client::fluent_builders::DeleteGuideSample::set_guide_sample_id): (undocumented)
196 /// - On success, responds with [`DeleteGuideSampleOutput`](crate::output::DeleteGuideSampleOutput)
197
198 /// - On failure, responds with [`SdkError<DeleteGuideSampleError>`](crate::error::DeleteGuideSampleError)
199 pub fn delete_guide_sample(&self) -> fluent_builders::DeleteGuideSample {
200 fluent_builders::DeleteGuideSample::new(self.handle.clone())
201 }
202 /// Constructs a fluent builder for the [`GetAccountConfig`](crate::client::fluent_builders::GetAccountConfig) operation.
203 ///
204 /// - The fluent builder takes no input, just [`send`](crate::client::fluent_builders::GetAccountConfig::send) it.
205
206 /// - On success, responds with [`GetAccountConfigOutput`](crate::output::GetAccountConfigOutput) with field(s):
207 /// - [`logo_url(Option<String>)`](crate::output::GetAccountConfigOutput::logo_url): (undocumented)
208 /// - [`link_text(Option<String>)`](crate::output::GetAccountConfigOutput::link_text): (undocumented)
209 /// - [`link_url(Option<String>)`](crate::output::GetAccountConfigOutput::link_url): (undocumented)
210 /// - [`slug(Option<String>)`](crate::output::GetAccountConfigOutput::slug): (undocumented)
211 /// - [`display_name(Option<String>)`](crate::output::GetAccountConfigOutput::display_name): (undocumented)
212 /// - [`created_at(Option<DateTime>)`](crate::output::GetAccountConfigOutput::created_at): (undocumented)
213 /// - [`updated_at(Option<DateTime>)`](crate::output::GetAccountConfigOutput::updated_at): (undocumented)
214 /// - On failure, responds with [`SdkError<GetAccountConfigError>`](crate::error::GetAccountConfigError)
215 pub fn get_account_config(&self) -> fluent_builders::GetAccountConfig {
216 fluent_builders::GetAccountConfig::new(self.handle.clone())
217 }
218 /// Constructs a fluent builder for the [`GetGuide`](crate::client::fluent_builders::GetGuide) operation.
219 ///
220 /// - The fluent builder is configurable:
221 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::GetGuide::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::GetGuide::set_id): (undocumented)
222 /// - [`output_format(OutputFormat)`](crate::client::fluent_builders::GetGuide::output_format) / [`set_output_format(Option<OutputFormat>)`](crate::client::fluent_builders::GetGuide::set_output_format): (undocumented)
223 /// - On success, responds with [`GetGuideOutput`](crate::output::GetGuideOutput) with field(s):
224 /// - [`id(Option<String>)`](crate::output::GetGuideOutput::id): (undocumented)
225 /// - [`name(Option<String>)`](crate::output::GetGuideOutput::name): (undocumented)
226 /// - [`target(Option<GuideTarget>)`](crate::output::GetGuideOutput::target): (undocumented)
227 /// - [`definition(Option<Document>)`](crate::output::GetGuideOutput::definition): (undocumented)
228 /// - [`unpublished_changes(Option<bool>)`](crate::output::GetGuideOutput::unpublished_changes): (undocumented)
229 /// - [`created_at(Option<DateTime>)`](crate::output::GetGuideOutput::created_at): (undocumented)
230 /// - [`updated_at(Option<DateTime>)`](crate::output::GetGuideOutput::updated_at): (undocumented)
231 /// - [`visibility(Option<GuideVisibility>)`](crate::output::GetGuideOutput::visibility): (undocumented)
232 /// - [`published_at(Option<DateTime>)`](crate::output::GetGuideOutput::published_at): (undocumented)
233 /// - [`share_enabled(Option<bool>)`](crate::output::GetGuideOutput::share_enabled): (undocumented)
234 /// - [`share_id(Option<String>)`](crate::output::GetGuideOutput::share_id): (undocumented)
235 /// - [`x12_envelope(Option<String>)`](crate::output::GetGuideOutput::x12_envelope): (undocumented)
236 /// - [`fragment_path(Option<String>)`](crate::output::GetGuideOutput::fragment_path): (undocumented)
237 /// - [`source_guide(Option<String>)`](crate::output::GetGuideOutput::source_guide): (undocumented)
238 /// - On failure, responds with [`SdkError<GetGuideError>`](crate::error::GetGuideError)
239 pub fn get_guide(&self) -> fluent_builders::GetGuide {
240 fluent_builders::GetGuide::new(self.handle.clone())
241 }
242 /// Constructs a fluent builder for the [`GetGuidesNetwork`](crate::client::fluent_builders::GetGuidesNetwork) operation.
243 ///
244 /// - The fluent builder is configurable:
245 /// - [`slug(impl Into<String>)`](crate::client::fluent_builders::GetGuidesNetwork::slug) / [`set_slug(Option<String>)`](crate::client::fluent_builders::GetGuidesNetwork::set_slug): (undocumented)
246 /// - [`guide_id(impl Into<String>)`](crate::client::fluent_builders::GetGuidesNetwork::guide_id) / [`set_guide_id(Option<String>)`](crate::client::fluent_builders::GetGuidesNetwork::set_guide_id): (undocumented)
247 /// - On success, responds with [`GetGuidesNetworkOutput`](crate::output::GetGuidesNetworkOutput) with field(s):
248 /// - [`network(Option<Vec<GuidesNetworkEntry>>)`](crate::output::GetGuidesNetworkOutput::network): (undocumented)
249 /// - On failure, responds with [`SdkError<GetGuidesNetworkError>`](crate::error::GetGuidesNetworkError)
250 pub fn get_guides_network(&self) -> fluent_builders::GetGuidesNetwork {
251 fluent_builders::GetGuidesNetwork::new(self.handle.clone())
252 }
253 /// Constructs a fluent builder for the [`GetPublicAccountConfig`](crate::client::fluent_builders::GetPublicAccountConfig) operation.
254 ///
255 /// - The fluent builder is configurable:
256 /// - [`slug(impl Into<String>)`](crate::client::fluent_builders::GetPublicAccountConfig::slug) / [`set_slug(Option<String>)`](crate::client::fluent_builders::GetPublicAccountConfig::set_slug): (undocumented)
257 /// - On success, responds with [`GetPublicAccountConfigOutput`](crate::output::GetPublicAccountConfigOutput) with field(s):
258 /// - [`logo_url(Option<String>)`](crate::output::GetPublicAccountConfigOutput::logo_url): (undocumented)
259 /// - [`link_text(Option<String>)`](crate::output::GetPublicAccountConfigOutput::link_text): (undocumented)
260 /// - [`link_url(Option<String>)`](crate::output::GetPublicAccountConfigOutput::link_url): (undocumented)
261 /// - [`slug(Option<String>)`](crate::output::GetPublicAccountConfigOutput::slug): (undocumented)
262 /// - [`display_name(Option<String>)`](crate::output::GetPublicAccountConfigOutput::display_name): (undocumented)
263 /// - [`created_at(Option<DateTime>)`](crate::output::GetPublicAccountConfigOutput::created_at): (undocumented)
264 /// - [`updated_at(Option<DateTime>)`](crate::output::GetPublicAccountConfigOutput::updated_at): (undocumented)
265 /// - On failure, responds with [`SdkError<GetPublicAccountConfigError>`](crate::error::GetPublicAccountConfigError)
266 pub fn get_public_account_config(&self) -> fluent_builders::GetPublicAccountConfig {
267 fluent_builders::GetPublicAccountConfig::new(self.handle.clone())
268 }
269 /// Constructs a fluent builder for the [`GetPublicGuide`](crate::client::fluent_builders::GetPublicGuide) operation.
270 ///
271 /// - The fluent builder is configurable:
272 /// - [`slug(impl Into<String>)`](crate::client::fluent_builders::GetPublicGuide::slug) / [`set_slug(Option<String>)`](crate::client::fluent_builders::GetPublicGuide::set_slug): (undocumented)
273 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::GetPublicGuide::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::GetPublicGuide::set_id): Id of the published guide, begins with LIVE_
274 /// - [`output_format(OutputFormat)`](crate::client::fluent_builders::GetPublicGuide::output_format) / [`set_output_format(Option<OutputFormat>)`](crate::client::fluent_builders::GetPublicGuide::set_output_format): (undocumented)
275 /// - On success, responds with [`GetPublicGuideOutput`](crate::output::GetPublicGuideOutput) with field(s):
276 /// - [`id(Option<String>)`](crate::output::GetPublicGuideOutput::id): Id of the published guide, begins with LIVE_
277 /// - [`name(Option<String>)`](crate::output::GetPublicGuideOutput::name): (undocumented)
278 /// - [`target(Option<GuideTarget>)`](crate::output::GetPublicGuideOutput::target): (undocumented)
279 /// - [`definition(Option<Document>)`](crate::output::GetPublicGuideOutput::definition): (undocumented)
280 /// - [`created_at(Option<DateTime>)`](crate::output::GetPublicGuideOutput::created_at): (undocumented)
281 /// - [`updated_at(Option<DateTime>)`](crate::output::GetPublicGuideOutput::updated_at): (undocumented)
282 /// - [`published_at(Option<DateTime>)`](crate::output::GetPublicGuideOutput::published_at): (undocumented)
283 /// - [`x12_envelope(Option<String>)`](crate::output::GetPublicGuideOutput::x12_envelope): (undocumented)
284 /// - [`fragment_path(Option<String>)`](crate::output::GetPublicGuideOutput::fragment_path): (undocumented)
285 /// - [`source_guide(Option<String>)`](crate::output::GetPublicGuideOutput::source_guide): (undocumented)
286 /// - On failure, responds with [`SdkError<GetPublicGuideError>`](crate::error::GetPublicGuideError)
287 pub fn get_public_guide(&self) -> fluent_builders::GetPublicGuide {
288 fluent_builders::GetPublicGuide::new(self.handle.clone())
289 }
290 /// Constructs a fluent builder for the [`GetPublicSharedGuide`](crate::client::fluent_builders::GetPublicSharedGuide) operation.
291 ///
292 /// - The fluent builder is configurable:
293 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::GetPublicSharedGuide::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::GetPublicSharedGuide::set_id): (undocumented)
294 /// - [`output_format(OutputFormat)`](crate::client::fluent_builders::GetPublicSharedGuide::output_format) / [`set_output_format(Option<OutputFormat>)`](crate::client::fluent_builders::GetPublicSharedGuide::set_output_format): (undocumented)
295 /// - On success, responds with [`GetPublicSharedGuideOutput`](crate::output::GetPublicSharedGuideOutput) with field(s):
296 /// - [`source(Option<String>)`](crate::output::GetPublicSharedGuideOutput::source): (undocumented)
297 /// - [`name(Option<String>)`](crate::output::GetPublicSharedGuideOutput::name): (undocumented)
298 /// - [`target(Option<GuideTarget>)`](crate::output::GetPublicSharedGuideOutput::target): (undocumented)
299 /// - [`definition(Option<Document>)`](crate::output::GetPublicSharedGuideOutput::definition): (undocumented)
300 /// - [`x12_envelope(Option<String>)`](crate::output::GetPublicSharedGuideOutput::x12_envelope): (undocumented)
301 /// - [`fragment_path(Option<String>)`](crate::output::GetPublicSharedGuideOutput::fragment_path): (undocumented)
302 /// - On failure, responds with [`SdkError<GetPublicSharedGuideError>`](crate::error::GetPublicSharedGuideError)
303 pub fn get_public_shared_guide(&self) -> fluent_builders::GetPublicSharedGuide {
304 fluent_builders::GetPublicSharedGuide::new(self.handle.clone())
305 }
306 /// Constructs a fluent builder for the [`GetX12TransactionSetMetadata`](crate::client::fluent_builders::GetX12TransactionSetMetadata) operation.
307 ///
308 /// - The fluent builder is configurable:
309 /// - [`version(impl Into<String>)`](crate::client::fluent_builders::GetX12TransactionSetMetadata::version) / [`set_version(Option<String>)`](crate::client::fluent_builders::GetX12TransactionSetMetadata::set_version): (undocumented)
310 /// - [`transaction_set_id(impl Into<String>)`](crate::client::fluent_builders::GetX12TransactionSetMetadata::transaction_set_id) / [`set_transaction_set_id(Option<String>)`](crate::client::fluent_builders::GetX12TransactionSetMetadata::set_transaction_set_id): (undocumented)
311 /// - On success, responds with [`GetX12TransactionSetMetadataOutput`](crate::output::GetX12TransactionSetMetadataOutput) with field(s):
312 /// - [`codes(Option<Document>)`](crate::output::GetX12TransactionSetMetadataOutput::codes): (undocumented)
313 /// - [`composites(Option<Document>)`](crate::output::GetX12TransactionSetMetadataOutput::composites): (undocumented)
314 /// - [`elements(Option<Document>)`](crate::output::GetX12TransactionSetMetadataOutput::elements): (undocumented)
315 /// - [`segments(Option<Document>)`](crate::output::GetX12TransactionSetMetadataOutput::segments): (undocumented)
316 /// - [`transaction(Option<Document>)`](crate::output::GetX12TransactionSetMetadataOutput::transaction): (undocumented)
317 /// - On failure, responds with [`SdkError<GetX12TransactionSetMetadataError>`](crate::error::GetX12TransactionSetMetadataError)
318 pub fn get_x12_transaction_set_metadata(
319 &self,
320 ) -> fluent_builders::GetX12TransactionSetMetadata {
321 fluent_builders::GetX12TransactionSetMetadata::new(self.handle.clone())
322 }
323 /// Constructs a fluent builder for the [`ListAllPublicGuides`](crate::client::fluent_builders::ListAllPublicGuides) operation.
324 /// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListAllPublicGuides::into_paginator).
325 ///
326 /// - The fluent builder is configurable:
327 /// - [`next_page_token(impl Into<String>)`](crate::client::fluent_builders::ListAllPublicGuides::next_page_token) / [`set_next_page_token(Option<String>)`](crate::client::fluent_builders::ListAllPublicGuides::set_next_page_token): The token used for pagination
328 /// - [`page_size(i32)`](crate::client::fluent_builders::ListAllPublicGuides::page_size) / [`set_page_size(Option<i32>)`](crate::client::fluent_builders::ListAllPublicGuides::set_page_size): The maximum number of elements to return in a page
329 /// - On success, responds with [`ListAllPublicGuidesOutput`](crate::output::ListAllPublicGuidesOutput) with field(s):
330 /// - [`next_page_token(Option<String>)`](crate::output::ListAllPublicGuidesOutput::next_page_token): The token used for pagination
331 /// - [`items(Option<Vec<AllPublicGuideSummary>>)`](crate::output::ListAllPublicGuidesOutput::items): (undocumented)
332 /// - [`page_size(Option<i32>)`](crate::output::ListAllPublicGuidesOutput::page_size): The maximum number of elements to return in a page
333 /// - On failure, responds with [`SdkError<ListAllPublicGuidesError>`](crate::error::ListAllPublicGuidesError)
334 pub fn list_all_public_guides(&self) -> fluent_builders::ListAllPublicGuides {
335 fluent_builders::ListAllPublicGuides::new(self.handle.clone())
336 }
337 /// Constructs a fluent builder for the [`ListGuideAttachments`](crate::client::fluent_builders::ListGuideAttachments) operation.
338 ///
339 /// - The fluent builder is configurable:
340 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::ListGuideAttachments::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::ListGuideAttachments::set_id): Id of the guide these attachments belong to
341 /// - On success, responds with [`ListGuideAttachmentsOutput`](crate::output::ListGuideAttachmentsOutput) with field(s):
342 /// - [`items(Option<Vec<GuideAttachmentData>>)`](crate::output::ListGuideAttachmentsOutput::items): (undocumented)
343 /// - On failure, responds with [`SdkError<ListGuideAttachmentsError>`](crate::error::ListGuideAttachmentsError)
344 pub fn list_guide_attachments(&self) -> fluent_builders::ListGuideAttachments {
345 fluent_builders::ListGuideAttachments::new(self.handle.clone())
346 }
347 /// Constructs a fluent builder for the [`ListGuides`](crate::client::fluent_builders::ListGuides) operation.
348 /// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListGuides::into_paginator).
349 ///
350 /// - The fluent builder is configurable:
351 /// - [`status(GuideStatus)`](crate::client::fluent_builders::ListGuides::status) / [`set_status(Option<GuideStatus>)`](crate::client::fluent_builders::ListGuides::set_status): (undocumented)
352 /// - [`next_page_token(impl Into<String>)`](crate::client::fluent_builders::ListGuides::next_page_token) / [`set_next_page_token(Option<String>)`](crate::client::fluent_builders::ListGuides::set_next_page_token): The token used for pagination
353 /// - [`page_size(i32)`](crate::client::fluent_builders::ListGuides::page_size) / [`set_page_size(Option<i32>)`](crate::client::fluent_builders::ListGuides::set_page_size): The maximum number of elements to return in a page
354 /// - On success, responds with [`ListGuidesOutput`](crate::output::ListGuidesOutput) with field(s):
355 /// - [`next_page_token(Option<String>)`](crate::output::ListGuidesOutput::next_page_token): The token used for pagination
356 /// - [`items(Option<Vec<GuideSummary>>)`](crate::output::ListGuidesOutput::items): (undocumented)
357 /// - [`page_size(Option<i32>)`](crate::output::ListGuidesOutput::page_size): The maximum number of elements to return in a page
358 /// - On failure, responds with [`SdkError<ListGuidesError>`](crate::error::ListGuidesError)
359 pub fn list_guides(&self) -> fluent_builders::ListGuides {
360 fluent_builders::ListGuides::new(self.handle.clone())
361 }
362 /// Constructs a fluent builder for the [`ListGuideSamples`](crate::client::fluent_builders::ListGuideSamples) operation.
363 ///
364 /// - The fluent builder is configurable:
365 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::ListGuideSamples::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::ListGuideSamples::set_id): Id of the guide these samples belong to
366 /// - On success, responds with [`ListGuideSamplesOutput`](crate::output::ListGuideSamplesOutput) with field(s):
367 /// - [`items(Option<Vec<GuideSampleData>>)`](crate::output::ListGuideSamplesOutput::items): (undocumented)
368 /// - On failure, responds with [`SdkError<ListGuideSamplesError>`](crate::error::ListGuideSamplesError)
369 pub fn list_guide_samples(&self) -> fluent_builders::ListGuideSamples {
370 fluent_builders::ListGuideSamples::new(self.handle.clone())
371 }
372 /// Constructs a fluent builder for the [`ListPublicGuideAttachments`](crate::client::fluent_builders::ListPublicGuideAttachments) operation.
373 ///
374 /// - The fluent builder is configurable:
375 /// - [`slug(impl Into<String>)`](crate::client::fluent_builders::ListPublicGuideAttachments::slug) / [`set_slug(Option<String>)`](crate::client::fluent_builders::ListPublicGuideAttachments::set_slug): (undocumented)
376 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::ListPublicGuideAttachments::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::ListPublicGuideAttachments::set_id): Id of the published guide these attachments belong to, begins with LIVE_
377 /// - On success, responds with [`ListPublicGuideAttachmentsOutput`](crate::output::ListPublicGuideAttachmentsOutput) with field(s):
378 /// - [`items(Option<Vec<PublicGuideAttachmentData>>)`](crate::output::ListPublicGuideAttachmentsOutput::items): (undocumented)
379 /// - On failure, responds with [`SdkError<ListPublicGuideAttachmentsError>`](crate::error::ListPublicGuideAttachmentsError)
380 pub fn list_public_guide_attachments(&self) -> fluent_builders::ListPublicGuideAttachments {
381 fluent_builders::ListPublicGuideAttachments::new(self.handle.clone())
382 }
383 /// Constructs a fluent builder for the [`ListPublicGuides`](crate::client::fluent_builders::ListPublicGuides) operation.
384 /// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListPublicGuides::into_paginator).
385 ///
386 /// - The fluent builder is configurable:
387 /// - [`slug(impl Into<String>)`](crate::client::fluent_builders::ListPublicGuides::slug) / [`set_slug(Option<String>)`](crate::client::fluent_builders::ListPublicGuides::set_slug): (undocumented)
388 /// - [`next_page_token(impl Into<String>)`](crate::client::fluent_builders::ListPublicGuides::next_page_token) / [`set_next_page_token(Option<String>)`](crate::client::fluent_builders::ListPublicGuides::set_next_page_token): The token used for pagination
389 /// - [`page_size(i32)`](crate::client::fluent_builders::ListPublicGuides::page_size) / [`set_page_size(Option<i32>)`](crate::client::fluent_builders::ListPublicGuides::set_page_size): The maximum number of elements to return in a page
390 /// - On success, responds with [`ListPublicGuidesOutput`](crate::output::ListPublicGuidesOutput) with field(s):
391 /// - [`next_page_token(Option<String>)`](crate::output::ListPublicGuidesOutput::next_page_token): The token used for pagination
392 /// - [`items(Option<Vec<PublicGuideSummary>>)`](crate::output::ListPublicGuidesOutput::items): (undocumented)
393 /// - [`page_size(Option<i32>)`](crate::output::ListPublicGuidesOutput::page_size): The maximum number of elements to return in a page
394 /// - On failure, responds with [`SdkError<ListPublicGuidesError>`](crate::error::ListPublicGuidesError)
395 pub fn list_public_guides(&self) -> fluent_builders::ListPublicGuides {
396 fluent_builders::ListPublicGuides::new(self.handle.clone())
397 }
398 /// Constructs a fluent builder for the [`ListPublicGuideSamples`](crate::client::fluent_builders::ListPublicGuideSamples) operation.
399 ///
400 /// - The fluent builder is configurable:
401 /// - [`slug(impl Into<String>)`](crate::client::fluent_builders::ListPublicGuideSamples::slug) / [`set_slug(Option<String>)`](crate::client::fluent_builders::ListPublicGuideSamples::set_slug): (undocumented)
402 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::ListPublicGuideSamples::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::ListPublicGuideSamples::set_id): Id of the published guide these samples belong to, begins with LIVE_
403 /// - On success, responds with [`ListPublicGuideSamplesOutput`](crate::output::ListPublicGuideSamplesOutput) with field(s):
404 /// - [`items(Option<Vec<PublicGuideSampleData>>)`](crate::output::ListPublicGuideSamplesOutput::items): (undocumented)
405 /// - On failure, responds with [`SdkError<ListPublicGuideSamplesError>`](crate::error::ListPublicGuideSamplesError)
406 pub fn list_public_guide_samples(&self) -> fluent_builders::ListPublicGuideSamples {
407 fluent_builders::ListPublicGuideSamples::new(self.handle.clone())
408 }
409 /// Constructs a fluent builder for the [`ListPublicSharedGuideAttachments`](crate::client::fluent_builders::ListPublicSharedGuideAttachments) operation.
410 ///
411 /// - The fluent builder is configurable:
412 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::ListPublicSharedGuideAttachments::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::ListPublicSharedGuideAttachments::set_id): SharedId of the guide these attachments belong to
413 /// - On success, responds with [`ListPublicSharedGuideAttachmentsOutput`](crate::output::ListPublicSharedGuideAttachmentsOutput) with field(s):
414 /// - [`items(Option<Vec<PublicSharedGuideAttachmentData>>)`](crate::output::ListPublicSharedGuideAttachmentsOutput::items): (undocumented)
415 /// - On failure, responds with [`SdkError<ListPublicSharedGuideAttachmentsError>`](crate::error::ListPublicSharedGuideAttachmentsError)
416 pub fn list_public_shared_guide_attachments(
417 &self,
418 ) -> fluent_builders::ListPublicSharedGuideAttachments {
419 fluent_builders::ListPublicSharedGuideAttachments::new(self.handle.clone())
420 }
421 /// Constructs a fluent builder for the [`ListPublicSharedGuideSamples`](crate::client::fluent_builders::ListPublicSharedGuideSamples) operation.
422 ///
423 /// - The fluent builder is configurable:
424 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::ListPublicSharedGuideSamples::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::ListPublicSharedGuideSamples::set_id): SharedId of the guide these samples belong to
425 /// - On success, responds with [`ListPublicSharedGuideSamplesOutput`](crate::output::ListPublicSharedGuideSamplesOutput) with field(s):
426 /// - [`items(Option<Vec<PublicSharedGuideSampleData>>)`](crate::output::ListPublicSharedGuideSamplesOutput::items): (undocumented)
427 /// - On failure, responds with [`SdkError<ListPublicSharedGuideSamplesError>`](crate::error::ListPublicSharedGuideSamplesError)
428 pub fn list_public_shared_guide_samples(
429 &self,
430 ) -> fluent_builders::ListPublicSharedGuideSamples {
431 fluent_builders::ListPublicSharedGuideSamples::new(self.handle.clone())
432 }
433 /// Constructs a fluent builder for the [`ListX12TransactionSets`](crate::client::fluent_builders::ListX12TransactionSets) operation.
434 ///
435 /// - The fluent builder is configurable:
436 /// - [`version(impl Into<String>)`](crate::client::fluent_builders::ListX12TransactionSets::version) / [`set_version(Option<String>)`](crate::client::fluent_builders::ListX12TransactionSets::set_version): (undocumented)
437 /// - On success, responds with [`ListX12TransactionSetsOutput`](crate::output::ListX12TransactionSetsOutput) with field(s):
438 /// - [`transaction_sets(Option<Vec<TransactionSetSummary>>)`](crate::output::ListX12TransactionSetsOutput::transaction_sets): (undocumented)
439 /// - On failure, responds with [`SdkError<ListX12TransactionSetsError>`](crate::error::ListX12TransactionSetsError)
440 pub fn list_x12_transaction_sets(&self) -> fluent_builders::ListX12TransactionSets {
441 fluent_builders::ListX12TransactionSets::new(self.handle.clone())
442 }
443 /// Constructs a fluent builder for the [`PublishGuide`](crate::client::fluent_builders::PublishGuide) operation.
444 ///
445 /// - The fluent builder is configurable:
446 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::PublishGuide::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::PublishGuide::set_id): Id of the draft guide, begins with DRFT_
447 /// - [`output_format(OutputFormat)`](crate::client::fluent_builders::PublishGuide::output_format) / [`set_output_format(Option<OutputFormat>)`](crate::client::fluent_builders::PublishGuide::set_output_format): (undocumented)
448 /// - On success, responds with [`PublishGuideOutput`](crate::output::PublishGuideOutput) with field(s):
449 /// - [`id(Option<String>)`](crate::output::PublishGuideOutput::id): Id of the published guide, begins with LIVE_
450 /// - [`name(Option<String>)`](crate::output::PublishGuideOutput::name): (undocumented)
451 /// - [`visibility(Option<GuideVisibility>)`](crate::output::PublishGuideOutput::visibility): (undocumented)
452 /// - [`target(Option<GuideTarget>)`](crate::output::PublishGuideOutput::target): (undocumented)
453 /// - [`definition(Option<Document>)`](crate::output::PublishGuideOutput::definition): (undocumented)
454 /// - [`unpublished_changes(Option<bool>)`](crate::output::PublishGuideOutput::unpublished_changes): (undocumented)
455 /// - [`created_at(Option<DateTime>)`](crate::output::PublishGuideOutput::created_at): (undocumented)
456 /// - [`updated_at(Option<DateTime>)`](crate::output::PublishGuideOutput::updated_at): (undocumented)
457 /// - [`published_at(Option<DateTime>)`](crate::output::PublishGuideOutput::published_at): (undocumented)
458 /// - [`share_enabled(Option<bool>)`](crate::output::PublishGuideOutput::share_enabled): (undocumented)
459 /// - [`share_id(Option<String>)`](crate::output::PublishGuideOutput::share_id): (undocumented)
460 /// - [`source_guide(Option<String>)`](crate::output::PublishGuideOutput::source_guide): (undocumented)
461 /// - On failure, responds with [`SdkError<PublishGuideError>`](crate::error::PublishGuideError)
462 pub fn publish_guide(&self) -> fluent_builders::PublishGuide {
463 fluent_builders::PublishGuide::new(self.handle.clone())
464 }
465 /// Constructs a fluent builder for the [`RevertGuide`](crate::client::fluent_builders::RevertGuide) operation.
466 ///
467 /// - The fluent builder is configurable:
468 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::RevertGuide::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::RevertGuide::set_id): Id of the draft guide, begins with DRFT_
469 /// - [`output_format(OutputFormat)`](crate::client::fluent_builders::RevertGuide::output_format) / [`set_output_format(Option<OutputFormat>)`](crate::client::fluent_builders::RevertGuide::set_output_format): (undocumented)
470 /// - On success, responds with [`RevertGuideOutput`](crate::output::RevertGuideOutput) with field(s):
471 /// - [`id(Option<String>)`](crate::output::RevertGuideOutput::id): Id of the reverted guide, begins with DRFT_
472 /// - [`name(Option<String>)`](crate::output::RevertGuideOutput::name): (undocumented)
473 /// - [`visibility(Option<GuideVisibility>)`](crate::output::RevertGuideOutput::visibility): (undocumented)
474 /// - [`target(Option<GuideTarget>)`](crate::output::RevertGuideOutput::target): (undocumented)
475 /// - [`definition(Option<Document>)`](crate::output::RevertGuideOutput::definition): (undocumented)
476 /// - [`unpublished_changes(Option<bool>)`](crate::output::RevertGuideOutput::unpublished_changes): (undocumented)
477 /// - [`created_at(Option<DateTime>)`](crate::output::RevertGuideOutput::created_at): (undocumented)
478 /// - [`updated_at(Option<DateTime>)`](crate::output::RevertGuideOutput::updated_at): (undocumented)
479 /// - [`published_at(Option<DateTime>)`](crate::output::RevertGuideOutput::published_at): (undocumented)
480 /// - [`share_enabled(Option<bool>)`](crate::output::RevertGuideOutput::share_enabled): (undocumented)
481 /// - [`share_id(Option<String>)`](crate::output::RevertGuideOutput::share_id): (undocumented)
482 /// - [`source_guide(Option<String>)`](crate::output::RevertGuideOutput::source_guide): (undocumented)
483 /// - On failure, responds with [`SdkError<RevertGuideError>`](crate::error::RevertGuideError)
484 pub fn revert_guide(&self) -> fluent_builders::RevertGuide {
485 fluent_builders::RevertGuide::new(self.handle.clone())
486 }
487 /// Constructs a fluent builder for the [`UpdateAccountConfig`](crate::client::fluent_builders::UpdateAccountConfig) operation.
488 ///
489 /// - The fluent builder is configurable:
490 /// - [`logo_url(impl Into<String>)`](crate::client::fluent_builders::UpdateAccountConfig::logo_url) / [`set_logo_url(Option<String>)`](crate::client::fluent_builders::UpdateAccountConfig::set_logo_url): The URL of the logo. Only one of logoUrl or logoData can be provided.
491 /// - [`logo_data(impl Into<String>)`](crate::client::fluent_builders::UpdateAccountConfig::logo_data) / [`set_logo_data(Option<String>)`](crate::client::fluent_builders::UpdateAccountConfig::set_logo_data): The base64 data URI of the logo. Only one of logoUrl or logoData can be provided.
492 /// - [`link_text(impl Into<String>)`](crate::client::fluent_builders::UpdateAccountConfig::link_text) / [`set_link_text(Option<String>)`](crate::client::fluent_builders::UpdateAccountConfig::set_link_text): (undocumented)
493 /// - [`link_url(impl Into<String>)`](crate::client::fluent_builders::UpdateAccountConfig::link_url) / [`set_link_url(Option<String>)`](crate::client::fluent_builders::UpdateAccountConfig::set_link_url): (undocumented)
494 /// - [`slug(impl Into<String>)`](crate::client::fluent_builders::UpdateAccountConfig::slug) / [`set_slug(Option<String>)`](crate::client::fluent_builders::UpdateAccountConfig::set_slug): (undocumented)
495 /// - [`display_name(impl Into<String>)`](crate::client::fluent_builders::UpdateAccountConfig::display_name) / [`set_display_name(Option<String>)`](crate::client::fluent_builders::UpdateAccountConfig::set_display_name): (undocumented)
496 /// - On success, responds with [`UpdateAccountConfigOutput`](crate::output::UpdateAccountConfigOutput) with field(s):
497 /// - [`logo_url(Option<String>)`](crate::output::UpdateAccountConfigOutput::logo_url): (undocumented)
498 /// - [`link_text(Option<String>)`](crate::output::UpdateAccountConfigOutput::link_text): (undocumented)
499 /// - [`link_url(Option<String>)`](crate::output::UpdateAccountConfigOutput::link_url): (undocumented)
500 /// - [`slug(Option<String>)`](crate::output::UpdateAccountConfigOutput::slug): (undocumented)
501 /// - [`display_name(Option<String>)`](crate::output::UpdateAccountConfigOutput::display_name): (undocumented)
502 /// - [`created_at(Option<DateTime>)`](crate::output::UpdateAccountConfigOutput::created_at): (undocumented)
503 /// - [`updated_at(Option<DateTime>)`](crate::output::UpdateAccountConfigOutput::updated_at): (undocumented)
504 /// - On failure, responds with [`SdkError<UpdateAccountConfigError>`](crate::error::UpdateAccountConfigError)
505 pub fn update_account_config(&self) -> fluent_builders::UpdateAccountConfig {
506 fluent_builders::UpdateAccountConfig::new(self.handle.clone())
507 }
508 /// Constructs a fluent builder for the [`UpdateGuide`](crate::client::fluent_builders::UpdateGuide) operation.
509 ///
510 /// - The fluent builder is configurable:
511 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::UpdateGuide::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::UpdateGuide::set_id): Id of the draft guide, begins with DRFT_
512 /// - [`name(impl Into<String>)`](crate::client::fluent_builders::UpdateGuide::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::UpdateGuide::set_name): (undocumented)
513 /// - [`definition(Document)`](crate::client::fluent_builders::UpdateGuide::definition) / [`set_definition(Option<Document>)`](crate::client::fluent_builders::UpdateGuide::set_definition): (undocumented)
514 /// - [`x12_envelope(impl Into<String>)`](crate::client::fluent_builders::UpdateGuide::x12_envelope) / [`set_x12_envelope(Option<String>)`](crate::client::fluent_builders::UpdateGuide::set_x12_envelope): (undocumented)
515 /// - On success, responds with [`UpdateGuideOutput`](crate::output::UpdateGuideOutput) with field(s):
516 /// - [`id(Option<String>)`](crate::output::UpdateGuideOutput::id): Id of the draft guide, begins with DRFT_
517 /// - [`name(Option<String>)`](crate::output::UpdateGuideOutput::name): (undocumented)
518 /// - [`target(Option<GuideTarget>)`](crate::output::UpdateGuideOutput::target): (undocumented)
519 /// - [`definition(Option<Document>)`](crate::output::UpdateGuideOutput::definition): (undocumented)
520 /// - [`unpublished_changes(Option<bool>)`](crate::output::UpdateGuideOutput::unpublished_changes): (undocumented)
521 /// - [`created_at(Option<DateTime>)`](crate::output::UpdateGuideOutput::created_at): (undocumented)
522 /// - [`updated_at(Option<DateTime>)`](crate::output::UpdateGuideOutput::updated_at): (undocumented)
523 /// - [`visibility(Option<GuideVisibility>)`](crate::output::UpdateGuideOutput::visibility): (undocumented)
524 /// - [`published_at(Option<DateTime>)`](crate::output::UpdateGuideOutput::published_at): (undocumented)
525 /// - [`share_enabled(Option<bool>)`](crate::output::UpdateGuideOutput::share_enabled): (undocumented)
526 /// - [`share_id(Option<String>)`](crate::output::UpdateGuideOutput::share_id): (undocumented)
527 /// - [`x12_envelope(Option<String>)`](crate::output::UpdateGuideOutput::x12_envelope): (undocumented)
528 /// - [`fragment_path(Option<String>)`](crate::output::UpdateGuideOutput::fragment_path): (undocumented)
529 /// - [`source_guide(Option<String>)`](crate::output::UpdateGuideOutput::source_guide): (undocumented)
530 /// - On failure, responds with [`SdkError<UpdateGuideError>`](crate::error::UpdateGuideError)
531 pub fn update_guide(&self) -> fluent_builders::UpdateGuide {
532 fluent_builders::UpdateGuide::new(self.handle.clone())
533 }
534 /// Constructs a fluent builder for the [`UpdateGuideAttachment`](crate::client::fluent_builders::UpdateGuideAttachment) operation.
535 ///
536 /// - The fluent builder is configurable:
537 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::UpdateGuideAttachment::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::UpdateGuideAttachment::set_id): Id of the draft guide these attachments belong to, begins with DRFT_
538 /// - [`guide_attachment_id(impl Into<String>)`](crate::client::fluent_builders::UpdateGuideAttachment::guide_attachment_id) / [`set_guide_attachment_id(Option<String>)`](crate::client::fluent_builders::UpdateGuideAttachment::set_guide_attachment_id): (undocumented)
539 /// - [`name(impl Into<String>)`](crate::client::fluent_builders::UpdateGuideAttachment::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::UpdateGuideAttachment::set_name): (undocumented)
540 /// - [`filename(impl Into<String>)`](crate::client::fluent_builders::UpdateGuideAttachment::filename) / [`set_filename(Option<String>)`](crate::client::fluent_builders::UpdateGuideAttachment::set_filename): (undocumented)
541 /// - [`visibility(AttachmentVisibility)`](crate::client::fluent_builders::UpdateGuideAttachment::visibility) / [`set_visibility(Option<AttachmentVisibility>)`](crate::client::fluent_builders::UpdateGuideAttachment::set_visibility): (undocumented)
542 /// - [`content(Blob)`](crate::client::fluent_builders::UpdateGuideAttachment::content) / [`set_content(Option<Blob>)`](crate::client::fluent_builders::UpdateGuideAttachment::set_content): (undocumented)
543 /// - On success, responds with [`UpdateGuideAttachmentOutput`](crate::output::UpdateGuideAttachmentOutput) with field(s):
544 /// - [`id(Option<String>)`](crate::output::UpdateGuideAttachmentOutput::id): (undocumented)
545 /// - [`name(Option<String>)`](crate::output::UpdateGuideAttachmentOutput::name): (undocumented)
546 /// - [`filename(Option<String>)`](crate::output::UpdateGuideAttachmentOutput::filename): (undocumented)
547 /// - [`visibility(Option<AttachmentVisibility>)`](crate::output::UpdateGuideAttachmentOutput::visibility): (undocumented)
548 /// - [`content_signed_url(Option<String>)`](crate::output::UpdateGuideAttachmentOutput::content_signed_url): (undocumented)
549 /// - On failure, responds with [`SdkError<UpdateGuideAttachmentError>`](crate::error::UpdateGuideAttachmentError)
550 pub fn update_guide_attachment(&self) -> fluent_builders::UpdateGuideAttachment {
551 fluent_builders::UpdateGuideAttachment::new(self.handle.clone())
552 }
553 /// Constructs a fluent builder for the [`UpdateGuideSample`](crate::client::fluent_builders::UpdateGuideSample) operation.
554 ///
555 /// - The fluent builder is configurable:
556 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::UpdateGuideSample::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::UpdateGuideSample::set_id): Id of the draft guide these samples belong to, begins with DRFT_
557 /// - [`guide_sample_id(impl Into<String>)`](crate::client::fluent_builders::UpdateGuideSample::guide_sample_id) / [`set_guide_sample_id(Option<String>)`](crate::client::fluent_builders::UpdateGuideSample::set_guide_sample_id): (undocumented)
558 /// - [`name(impl Into<String>)`](crate::client::fluent_builders::UpdateGuideSample::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::UpdateGuideSample::set_name): (undocumented)
559 /// - [`content(impl Into<String>)`](crate::client::fluent_builders::UpdateGuideSample::content) / [`set_content(Option<String>)`](crate::client::fluent_builders::UpdateGuideSample::set_content): (undocumented)
560 /// - [`description(impl Into<String>)`](crate::client::fluent_builders::UpdateGuideSample::description) / [`set_description(Option<String>)`](crate::client::fluent_builders::UpdateGuideSample::set_description): (undocumented)
561 /// - On success, responds with [`UpdateGuideSampleOutput`](crate::output::UpdateGuideSampleOutput) with field(s):
562 /// - [`id(Option<String>)`](crate::output::UpdateGuideSampleOutput::id): (undocumented)
563 /// - [`name(Option<String>)`](crate::output::UpdateGuideSampleOutput::name): (undocumented)
564 /// - [`content(Option<String>)`](crate::output::UpdateGuideSampleOutput::content): (undocumented)
565 /// - [`description(Option<String>)`](crate::output::UpdateGuideSampleOutput::description): (undocumented)
566 /// - On failure, responds with [`SdkError<UpdateGuideSampleError>`](crate::error::UpdateGuideSampleError)
567 pub fn update_guide_sample(&self) -> fluent_builders::UpdateGuideSample {
568 fluent_builders::UpdateGuideSample::new(self.handle.clone())
569 }
570 /// Constructs a fluent builder for the [`UpdateShareConfig`](crate::client::fluent_builders::UpdateShareConfig) operation.
571 ///
572 /// - The fluent builder is configurable:
573 /// - [`id(impl Into<String>)`](crate::client::fluent_builders::UpdateShareConfig::id) / [`set_id(Option<String>)`](crate::client::fluent_builders::UpdateShareConfig::set_id): Id of the published guide, begins with LIVE_
574 /// - [`share_enabled(bool)`](crate::client::fluent_builders::UpdateShareConfig::share_enabled) / [`set_share_enabled(Option<bool>)`](crate::client::fluent_builders::UpdateShareConfig::set_share_enabled): (undocumented)
575 /// - On success, responds with [`UpdateShareConfigOutput`](crate::output::UpdateShareConfigOutput) with field(s):
576 /// - [`share_enabled(Option<bool>)`](crate::output::UpdateShareConfigOutput::share_enabled): (undocumented)
577 /// - [`share_id(Option<String>)`](crate::output::UpdateShareConfigOutput::share_id): (undocumented)
578 /// - On failure, responds with [`SdkError<UpdateShareConfigError>`](crate::error::UpdateShareConfigError)
579 pub fn update_share_config(&self) -> fluent_builders::UpdateShareConfig {
580 fluent_builders::UpdateShareConfig::new(self.handle.clone())
581 }
582}
583pub mod fluent_builders {
584
585 //! Utilities to ergonomically construct a request to the service.
586 //!
587 //! Fluent builders are created through the [`Client`](crate::client::Client) by calling
588 //! one if its operation methods. After parameters are set using the builder methods,
589 //! the `send` method can be called to initiate the request.
590 /// Fluent builder constructing a request to `ChangeGuideVisibility`.
591 ///
592 #[derive(std::clone::Clone, std::fmt::Debug)]
593 pub struct ChangeGuideVisibility {
594 handle: std::sync::Arc<super::Handle>,
595 inner: crate::input::change_guide_visibility_input::Builder,
596 }
597 impl ChangeGuideVisibility {
598 /// Creates a new `ChangeGuideVisibility`.
599 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
600 Self {
601 handle,
602 inner: Default::default(),
603 }
604 }
605
606 /// Consume this builder, creating a customizable operation that can be modified before being
607 /// sent. The operation's inner [http::Request] can be modified as well.
608 pub async fn customize(
609 self,
610 ) -> std::result::Result<
611 crate::operation::customize::CustomizableOperation<
612 crate::operation::ChangeGuideVisibility,
613 aws_http::retry::AwsResponseRetryClassifier,
614 >,
615 aws_smithy_http::result::SdkError<crate::error::ChangeGuideVisibilityError>,
616 > {
617 let handle = self.handle.clone();
618 let operation = self
619 .inner
620 .build()
621 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
622 .make_operation(&handle.conf)
623 .await
624 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
625 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
626 }
627
628 /// Sends the request and returns the response.
629 ///
630 /// If an error occurs, an `SdkError` will be returned with additional details that
631 /// can be matched against.
632 ///
633 /// By default, any retryable failures will be retried twice. Retry behavior
634 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
635 /// set when configuring the client.
636 pub async fn send(
637 self,
638 ) -> std::result::Result<
639 crate::output::ChangeGuideVisibilityOutput,
640 aws_smithy_http::result::SdkError<crate::error::ChangeGuideVisibilityError>,
641 > {
642 let op = self
643 .inner
644 .build()
645 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
646 .make_operation(&self.handle.conf)
647 .await
648 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
649 self.handle.client.call(op).await
650 }
651 #[allow(missing_docs)] // documentation missing in model
652 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
653 self.inner = self.inner.id(input.into());
654 self
655 }
656 #[allow(missing_docs)] // documentation missing in model
657 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
658 self.inner = self.inner.set_id(input);
659 self
660 }
661 #[allow(missing_docs)] // documentation missing in model
662 pub fn visibility(mut self, input: crate::model::GuideVisibility) -> Self {
663 self.inner = self.inner.visibility(input);
664 self
665 }
666 #[allow(missing_docs)] // documentation missing in model
667 pub fn set_visibility(
668 mut self,
669 input: std::option::Option<crate::model::GuideVisibility>,
670 ) -> Self {
671 self.inner = self.inner.set_visibility(input);
672 self
673 }
674 }
675 /// Fluent builder constructing a request to `CreateGuide`.
676 ///
677 #[derive(std::clone::Clone, std::fmt::Debug)]
678 pub struct CreateGuide {
679 handle: std::sync::Arc<super::Handle>,
680 inner: crate::input::create_guide_input::Builder,
681 }
682 impl CreateGuide {
683 /// Creates a new `CreateGuide`.
684 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
685 Self {
686 handle,
687 inner: Default::default(),
688 }
689 }
690
691 /// Consume this builder, creating a customizable operation that can be modified before being
692 /// sent. The operation's inner [http::Request] can be modified as well.
693 pub async fn customize(
694 self,
695 ) -> std::result::Result<
696 crate::operation::customize::CustomizableOperation<
697 crate::operation::CreateGuide,
698 aws_http::retry::AwsResponseRetryClassifier,
699 >,
700 aws_smithy_http::result::SdkError<crate::error::CreateGuideError>,
701 > {
702 let handle = self.handle.clone();
703 let operation = self
704 .inner
705 .build()
706 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
707 .make_operation(&handle.conf)
708 .await
709 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
710 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
711 }
712
713 /// Sends the request and returns the response.
714 ///
715 /// If an error occurs, an `SdkError` will be returned with additional details that
716 /// can be matched against.
717 ///
718 /// By default, any retryable failures will be retried twice. Retry behavior
719 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
720 /// set when configuring the client.
721 pub async fn send(
722 self,
723 ) -> std::result::Result<
724 crate::output::CreateGuideOutput,
725 aws_smithy_http::result::SdkError<crate::error::CreateGuideError>,
726 > {
727 let op = self
728 .inner
729 .build()
730 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
731 .make_operation(&self.handle.conf)
732 .await
733 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
734 self.handle.client.call(op).await
735 }
736 #[allow(missing_docs)] // documentation missing in model
737 pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
738 self.inner = self.inner.name(input.into());
739 self
740 }
741 #[allow(missing_docs)] // documentation missing in model
742 pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
743 self.inner = self.inner.set_name(input);
744 self
745 }
746 #[allow(missing_docs)] // documentation missing in model
747 pub fn target(mut self, input: crate::model::GuideTarget) -> Self {
748 self.inner = self.inner.target(input);
749 self
750 }
751 #[allow(missing_docs)] // documentation missing in model
752 pub fn set_target(mut self, input: std::option::Option<crate::model::GuideTarget>) -> Self {
753 self.inner = self.inner.set_target(input);
754 self
755 }
756 #[allow(missing_docs)] // documentation missing in model
757 pub fn definition(mut self, input: aws_smithy_types::Document) -> Self {
758 self.inner = self.inner.definition(input);
759 self
760 }
761 #[allow(missing_docs)] // documentation missing in model
762 pub fn set_definition(
763 mut self,
764 input: std::option::Option<aws_smithy_types::Document>,
765 ) -> Self {
766 self.inner = self.inner.set_definition(input);
767 self
768 }
769 #[allow(missing_docs)] // documentation missing in model
770 pub fn x12_envelope(mut self, input: impl Into<std::string::String>) -> Self {
771 self.inner = self.inner.x12_envelope(input.into());
772 self
773 }
774 #[allow(missing_docs)] // documentation missing in model
775 pub fn set_x12_envelope(mut self, input: std::option::Option<std::string::String>) -> Self {
776 self.inner = self.inner.set_x12_envelope(input);
777 self
778 }
779 #[allow(missing_docs)] // documentation missing in model
780 pub fn output_format(mut self, input: crate::model::OutputFormat) -> Self {
781 self.inner = self.inner.output_format(input);
782 self
783 }
784 #[allow(missing_docs)] // documentation missing in model
785 pub fn set_output_format(
786 mut self,
787 input: std::option::Option<crate::model::OutputFormat>,
788 ) -> Self {
789 self.inner = self.inner.set_output_format(input);
790 self
791 }
792 /// Appends an item to `samples`.
793 ///
794 /// To override the contents of this collection use [`set_samples`](Self::set_samples).
795 ///
796 #[allow(missing_docs)] // documentation missing in model
797 pub fn samples(mut self, input: crate::model::CreateGuideSampleData) -> Self {
798 self.inner = self.inner.samples(input);
799 self
800 }
801 #[allow(missing_docs)] // documentation missing in model
802 pub fn set_samples(
803 mut self,
804 input: std::option::Option<std::vec::Vec<crate::model::CreateGuideSampleData>>,
805 ) -> Self {
806 self.inner = self.inner.set_samples(input);
807 self
808 }
809 /// Appends an item to `attachments`.
810 ///
811 /// To override the contents of this collection use [`set_attachments`](Self::set_attachments).
812 ///
813 #[allow(missing_docs)] // documentation missing in model
814 pub fn attachments(mut self, input: crate::model::CreateGuideAttachmentData) -> Self {
815 self.inner = self.inner.attachments(input);
816 self
817 }
818 #[allow(missing_docs)] // documentation missing in model
819 pub fn set_attachments(
820 mut self,
821 input: std::option::Option<std::vec::Vec<crate::model::CreateGuideAttachmentData>>,
822 ) -> Self {
823 self.inner = self.inner.set_attachments(input);
824 self
825 }
826 /// Tracks the source of the created guide. If imported from a public guide, will equal the guide Id. If imported from a shared guide, will equal account name and guide name
827 pub fn source_guide(mut self, input: impl Into<std::string::String>) -> Self {
828 self.inner = self.inner.source_guide(input.into());
829 self
830 }
831 /// Tracks the source of the created guide. If imported from a public guide, will equal the guide Id. If imported from a shared guide, will equal account name and guide name
832 pub fn set_source_guide(mut self, input: std::option::Option<std::string::String>) -> Self {
833 self.inner = self.inner.set_source_guide(input);
834 self
835 }
836 }
837 /// Fluent builder constructing a request to `CreateGuideAttachment`.
838 ///
839 #[derive(std::clone::Clone, std::fmt::Debug)]
840 pub struct CreateGuideAttachment {
841 handle: std::sync::Arc<super::Handle>,
842 inner: crate::input::create_guide_attachment_input::Builder,
843 }
844 impl CreateGuideAttachment {
845 /// Creates a new `CreateGuideAttachment`.
846 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
847 Self {
848 handle,
849 inner: Default::default(),
850 }
851 }
852
853 /// Consume this builder, creating a customizable operation that can be modified before being
854 /// sent. The operation's inner [http::Request] can be modified as well.
855 pub async fn customize(
856 self,
857 ) -> std::result::Result<
858 crate::operation::customize::CustomizableOperation<
859 crate::operation::CreateGuideAttachment,
860 aws_http::retry::AwsResponseRetryClassifier,
861 >,
862 aws_smithy_http::result::SdkError<crate::error::CreateGuideAttachmentError>,
863 > {
864 let handle = self.handle.clone();
865 let operation = self
866 .inner
867 .build()
868 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
869 .make_operation(&handle.conf)
870 .await
871 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
872 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
873 }
874
875 /// Sends the request and returns the response.
876 ///
877 /// If an error occurs, an `SdkError` will be returned with additional details that
878 /// can be matched against.
879 ///
880 /// By default, any retryable failures will be retried twice. Retry behavior
881 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
882 /// set when configuring the client.
883 pub async fn send(
884 self,
885 ) -> std::result::Result<
886 crate::output::CreateGuideAttachmentOutput,
887 aws_smithy_http::result::SdkError<crate::error::CreateGuideAttachmentError>,
888 > {
889 let op = self
890 .inner
891 .build()
892 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
893 .make_operation(&self.handle.conf)
894 .await
895 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
896 self.handle.client.call(op).await
897 }
898 /// Id of the draft guide these attachments belong to, begins with DRFT_
899 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
900 self.inner = self.inner.id(input.into());
901 self
902 }
903 /// Id of the draft guide these attachments belong to, begins with DRFT_
904 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
905 self.inner = self.inner.set_id(input);
906 self
907 }
908 #[allow(missing_docs)] // documentation missing in model
909 pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
910 self.inner = self.inner.name(input.into());
911 self
912 }
913 #[allow(missing_docs)] // documentation missing in model
914 pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
915 self.inner = self.inner.set_name(input);
916 self
917 }
918 #[allow(missing_docs)] // documentation missing in model
919 pub fn filename(mut self, input: impl Into<std::string::String>) -> Self {
920 self.inner = self.inner.filename(input.into());
921 self
922 }
923 #[allow(missing_docs)] // documentation missing in model
924 pub fn set_filename(mut self, input: std::option::Option<std::string::String>) -> Self {
925 self.inner = self.inner.set_filename(input);
926 self
927 }
928 #[allow(missing_docs)] // documentation missing in model
929 pub fn visibility(mut self, input: crate::model::AttachmentVisibility) -> Self {
930 self.inner = self.inner.visibility(input);
931 self
932 }
933 #[allow(missing_docs)] // documentation missing in model
934 pub fn set_visibility(
935 mut self,
936 input: std::option::Option<crate::model::AttachmentVisibility>,
937 ) -> Self {
938 self.inner = self.inner.set_visibility(input);
939 self
940 }
941 #[allow(missing_docs)] // documentation missing in model
942 pub fn content(mut self, input: aws_smithy_types::Blob) -> Self {
943 self.inner = self.inner.content(input);
944 self
945 }
946 #[allow(missing_docs)] // documentation missing in model
947 pub fn set_content(mut self, input: std::option::Option<aws_smithy_types::Blob>) -> Self {
948 self.inner = self.inner.set_content(input);
949 self
950 }
951 }
952 /// Fluent builder constructing a request to `CreateGuideSample`.
953 ///
954 #[derive(std::clone::Clone, std::fmt::Debug)]
955 pub struct CreateGuideSample {
956 handle: std::sync::Arc<super::Handle>,
957 inner: crate::input::create_guide_sample_input::Builder,
958 }
959 impl CreateGuideSample {
960 /// Creates a new `CreateGuideSample`.
961 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
962 Self {
963 handle,
964 inner: Default::default(),
965 }
966 }
967
968 /// Consume this builder, creating a customizable operation that can be modified before being
969 /// sent. The operation's inner [http::Request] can be modified as well.
970 pub async fn customize(
971 self,
972 ) -> std::result::Result<
973 crate::operation::customize::CustomizableOperation<
974 crate::operation::CreateGuideSample,
975 aws_http::retry::AwsResponseRetryClassifier,
976 >,
977 aws_smithy_http::result::SdkError<crate::error::CreateGuideSampleError>,
978 > {
979 let handle = self.handle.clone();
980 let operation = self
981 .inner
982 .build()
983 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
984 .make_operation(&handle.conf)
985 .await
986 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
987 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
988 }
989
990 /// Sends the request and returns the response.
991 ///
992 /// If an error occurs, an `SdkError` will be returned with additional details that
993 /// can be matched against.
994 ///
995 /// By default, any retryable failures will be retried twice. Retry behavior
996 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
997 /// set when configuring the client.
998 pub async fn send(
999 self,
1000 ) -> std::result::Result<
1001 crate::output::CreateGuideSampleOutput,
1002 aws_smithy_http::result::SdkError<crate::error::CreateGuideSampleError>,
1003 > {
1004 let op = self
1005 .inner
1006 .build()
1007 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1008 .make_operation(&self.handle.conf)
1009 .await
1010 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1011 self.handle.client.call(op).await
1012 }
1013 /// Id of the draft guide these samples belong to, begins with DRFT_
1014 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
1015 self.inner = self.inner.id(input.into());
1016 self
1017 }
1018 /// Id of the draft guide these samples belong to, begins with DRFT_
1019 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
1020 self.inner = self.inner.set_id(input);
1021 self
1022 }
1023 #[allow(missing_docs)] // documentation missing in model
1024 pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
1025 self.inner = self.inner.name(input.into());
1026 self
1027 }
1028 #[allow(missing_docs)] // documentation missing in model
1029 pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
1030 self.inner = self.inner.set_name(input);
1031 self
1032 }
1033 #[allow(missing_docs)] // documentation missing in model
1034 pub fn content(mut self, input: impl Into<std::string::String>) -> Self {
1035 self.inner = self.inner.content(input.into());
1036 self
1037 }
1038 #[allow(missing_docs)] // documentation missing in model
1039 pub fn set_content(mut self, input: std::option::Option<std::string::String>) -> Self {
1040 self.inner = self.inner.set_content(input);
1041 self
1042 }
1043 #[allow(missing_docs)] // documentation missing in model
1044 pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
1045 self.inner = self.inner.description(input.into());
1046 self
1047 }
1048 #[allow(missing_docs)] // documentation missing in model
1049 pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
1050 self.inner = self.inner.set_description(input);
1051 self
1052 }
1053 }
1054 /// Fluent builder constructing a request to `DeleteGuide`.
1055 ///
1056 /// Unpublishes a published guide, or deletes a draft guide
1057 #[derive(std::clone::Clone, std::fmt::Debug)]
1058 pub struct DeleteGuide {
1059 handle: std::sync::Arc<super::Handle>,
1060 inner: crate::input::delete_guide_input::Builder,
1061 }
1062 impl DeleteGuide {
1063 /// Creates a new `DeleteGuide`.
1064 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
1065 Self {
1066 handle,
1067 inner: Default::default(),
1068 }
1069 }
1070
1071 /// Consume this builder, creating a customizable operation that can be modified before being
1072 /// sent. The operation's inner [http::Request] can be modified as well.
1073 pub async fn customize(
1074 self,
1075 ) -> std::result::Result<
1076 crate::operation::customize::CustomizableOperation<
1077 crate::operation::DeleteGuide,
1078 aws_http::retry::AwsResponseRetryClassifier,
1079 >,
1080 aws_smithy_http::result::SdkError<crate::error::DeleteGuideError>,
1081 > {
1082 let handle = self.handle.clone();
1083 let operation = self
1084 .inner
1085 .build()
1086 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1087 .make_operation(&handle.conf)
1088 .await
1089 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1090 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
1091 }
1092
1093 /// Sends the request and returns the response.
1094 ///
1095 /// If an error occurs, an `SdkError` will be returned with additional details that
1096 /// can be matched against.
1097 ///
1098 /// By default, any retryable failures will be retried twice. Retry behavior
1099 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
1100 /// set when configuring the client.
1101 pub async fn send(
1102 self,
1103 ) -> std::result::Result<
1104 crate::output::DeleteGuideOutput,
1105 aws_smithy_http::result::SdkError<crate::error::DeleteGuideError>,
1106 > {
1107 let op = self
1108 .inner
1109 .build()
1110 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1111 .make_operation(&self.handle.conf)
1112 .await
1113 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1114 self.handle.client.call(op).await
1115 }
1116 #[allow(missing_docs)] // documentation missing in model
1117 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
1118 self.inner = self.inner.id(input.into());
1119 self
1120 }
1121 #[allow(missing_docs)] // documentation missing in model
1122 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
1123 self.inner = self.inner.set_id(input);
1124 self
1125 }
1126 }
1127 /// Fluent builder constructing a request to `DeleteGuideAttachment`.
1128 ///
1129 #[derive(std::clone::Clone, std::fmt::Debug)]
1130 pub struct DeleteGuideAttachment {
1131 handle: std::sync::Arc<super::Handle>,
1132 inner: crate::input::delete_guide_attachment_input::Builder,
1133 }
1134 impl DeleteGuideAttachment {
1135 /// Creates a new `DeleteGuideAttachment`.
1136 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
1137 Self {
1138 handle,
1139 inner: Default::default(),
1140 }
1141 }
1142
1143 /// Consume this builder, creating a customizable operation that can be modified before being
1144 /// sent. The operation's inner [http::Request] can be modified as well.
1145 pub async fn customize(
1146 self,
1147 ) -> std::result::Result<
1148 crate::operation::customize::CustomizableOperation<
1149 crate::operation::DeleteGuideAttachment,
1150 aws_http::retry::AwsResponseRetryClassifier,
1151 >,
1152 aws_smithy_http::result::SdkError<crate::error::DeleteGuideAttachmentError>,
1153 > {
1154 let handle = self.handle.clone();
1155 let operation = self
1156 .inner
1157 .build()
1158 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1159 .make_operation(&handle.conf)
1160 .await
1161 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1162 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
1163 }
1164
1165 /// Sends the request and returns the response.
1166 ///
1167 /// If an error occurs, an `SdkError` will be returned with additional details that
1168 /// can be matched against.
1169 ///
1170 /// By default, any retryable failures will be retried twice. Retry behavior
1171 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
1172 /// set when configuring the client.
1173 pub async fn send(
1174 self,
1175 ) -> std::result::Result<
1176 crate::output::DeleteGuideAttachmentOutput,
1177 aws_smithy_http::result::SdkError<crate::error::DeleteGuideAttachmentError>,
1178 > {
1179 let op = self
1180 .inner
1181 .build()
1182 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1183 .make_operation(&self.handle.conf)
1184 .await
1185 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1186 self.handle.client.call(op).await
1187 }
1188 /// Id of the draft guide these attachments belong to, begins with DRFT_
1189 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
1190 self.inner = self.inner.id(input.into());
1191 self
1192 }
1193 /// Id of the draft guide these attachments belong to, begins with DRFT_
1194 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
1195 self.inner = self.inner.set_id(input);
1196 self
1197 }
1198 #[allow(missing_docs)] // documentation missing in model
1199 pub fn guide_attachment_id(mut self, input: impl Into<std::string::String>) -> Self {
1200 self.inner = self.inner.guide_attachment_id(input.into());
1201 self
1202 }
1203 #[allow(missing_docs)] // documentation missing in model
1204 pub fn set_guide_attachment_id(
1205 mut self,
1206 input: std::option::Option<std::string::String>,
1207 ) -> Self {
1208 self.inner = self.inner.set_guide_attachment_id(input);
1209 self
1210 }
1211 }
1212 /// Fluent builder constructing a request to `DeleteGuideSample`.
1213 ///
1214 #[derive(std::clone::Clone, std::fmt::Debug)]
1215 pub struct DeleteGuideSample {
1216 handle: std::sync::Arc<super::Handle>,
1217 inner: crate::input::delete_guide_sample_input::Builder,
1218 }
1219 impl DeleteGuideSample {
1220 /// Creates a new `DeleteGuideSample`.
1221 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
1222 Self {
1223 handle,
1224 inner: Default::default(),
1225 }
1226 }
1227
1228 /// Consume this builder, creating a customizable operation that can be modified before being
1229 /// sent. The operation's inner [http::Request] can be modified as well.
1230 pub async fn customize(
1231 self,
1232 ) -> std::result::Result<
1233 crate::operation::customize::CustomizableOperation<
1234 crate::operation::DeleteGuideSample,
1235 aws_http::retry::AwsResponseRetryClassifier,
1236 >,
1237 aws_smithy_http::result::SdkError<crate::error::DeleteGuideSampleError>,
1238 > {
1239 let handle = self.handle.clone();
1240 let operation = self
1241 .inner
1242 .build()
1243 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1244 .make_operation(&handle.conf)
1245 .await
1246 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1247 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
1248 }
1249
1250 /// Sends the request and returns the response.
1251 ///
1252 /// If an error occurs, an `SdkError` will be returned with additional details that
1253 /// can be matched against.
1254 ///
1255 /// By default, any retryable failures will be retried twice. Retry behavior
1256 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
1257 /// set when configuring the client.
1258 pub async fn send(
1259 self,
1260 ) -> std::result::Result<
1261 crate::output::DeleteGuideSampleOutput,
1262 aws_smithy_http::result::SdkError<crate::error::DeleteGuideSampleError>,
1263 > {
1264 let op = self
1265 .inner
1266 .build()
1267 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1268 .make_operation(&self.handle.conf)
1269 .await
1270 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1271 self.handle.client.call(op).await
1272 }
1273 /// Id of the draft guide these samples belong to, begins with DRFT_
1274 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
1275 self.inner = self.inner.id(input.into());
1276 self
1277 }
1278 /// Id of the draft guide these samples belong to, begins with DRFT_
1279 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
1280 self.inner = self.inner.set_id(input);
1281 self
1282 }
1283 #[allow(missing_docs)] // documentation missing in model
1284 pub fn guide_sample_id(mut self, input: impl Into<std::string::String>) -> Self {
1285 self.inner = self.inner.guide_sample_id(input.into());
1286 self
1287 }
1288 #[allow(missing_docs)] // documentation missing in model
1289 pub fn set_guide_sample_id(
1290 mut self,
1291 input: std::option::Option<std::string::String>,
1292 ) -> Self {
1293 self.inner = self.inner.set_guide_sample_id(input);
1294 self
1295 }
1296 }
1297 /// Fluent builder constructing a request to `GetAccountConfig`.
1298 ///
1299 #[derive(std::clone::Clone, std::fmt::Debug)]
1300 pub struct GetAccountConfig {
1301 handle: std::sync::Arc<super::Handle>,
1302 inner: crate::input::get_account_config_input::Builder,
1303 }
1304 impl GetAccountConfig {
1305 /// Creates a new `GetAccountConfig`.
1306 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
1307 Self {
1308 handle,
1309 inner: Default::default(),
1310 }
1311 }
1312
1313 /// Consume this builder, creating a customizable operation that can be modified before being
1314 /// sent. The operation's inner [http::Request] can be modified as well.
1315 pub async fn customize(
1316 self,
1317 ) -> std::result::Result<
1318 crate::operation::customize::CustomizableOperation<
1319 crate::operation::GetAccountConfig,
1320 aws_http::retry::AwsResponseRetryClassifier,
1321 >,
1322 aws_smithy_http::result::SdkError<crate::error::GetAccountConfigError>,
1323 > {
1324 let handle = self.handle.clone();
1325 let operation = self
1326 .inner
1327 .build()
1328 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1329 .make_operation(&handle.conf)
1330 .await
1331 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1332 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
1333 }
1334
1335 /// Sends the request and returns the response.
1336 ///
1337 /// If an error occurs, an `SdkError` will be returned with additional details that
1338 /// can be matched against.
1339 ///
1340 /// By default, any retryable failures will be retried twice. Retry behavior
1341 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
1342 /// set when configuring the client.
1343 pub async fn send(
1344 self,
1345 ) -> std::result::Result<
1346 crate::output::GetAccountConfigOutput,
1347 aws_smithy_http::result::SdkError<crate::error::GetAccountConfigError>,
1348 > {
1349 let op = self
1350 .inner
1351 .build()
1352 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1353 .make_operation(&self.handle.conf)
1354 .await
1355 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1356 self.handle.client.call(op).await
1357 }
1358 }
1359 /// Fluent builder constructing a request to `GetGuide`.
1360 ///
1361 #[derive(std::clone::Clone, std::fmt::Debug)]
1362 pub struct GetGuide {
1363 handle: std::sync::Arc<super::Handle>,
1364 inner: crate::input::get_guide_input::Builder,
1365 }
1366 impl GetGuide {
1367 /// Creates a new `GetGuide`.
1368 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
1369 Self {
1370 handle,
1371 inner: Default::default(),
1372 }
1373 }
1374
1375 /// Consume this builder, creating a customizable operation that can be modified before being
1376 /// sent. The operation's inner [http::Request] can be modified as well.
1377 pub async fn customize(
1378 self,
1379 ) -> std::result::Result<
1380 crate::operation::customize::CustomizableOperation<
1381 crate::operation::GetGuide,
1382 aws_http::retry::AwsResponseRetryClassifier,
1383 >,
1384 aws_smithy_http::result::SdkError<crate::error::GetGuideError>,
1385 > {
1386 let handle = self.handle.clone();
1387 let operation = self
1388 .inner
1389 .build()
1390 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1391 .make_operation(&handle.conf)
1392 .await
1393 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1394 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
1395 }
1396
1397 /// Sends the request and returns the response.
1398 ///
1399 /// If an error occurs, an `SdkError` will be returned with additional details that
1400 /// can be matched against.
1401 ///
1402 /// By default, any retryable failures will be retried twice. Retry behavior
1403 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
1404 /// set when configuring the client.
1405 pub async fn send(
1406 self,
1407 ) -> std::result::Result<
1408 crate::output::GetGuideOutput,
1409 aws_smithy_http::result::SdkError<crate::error::GetGuideError>,
1410 > {
1411 let op = self
1412 .inner
1413 .build()
1414 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1415 .make_operation(&self.handle.conf)
1416 .await
1417 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1418 self.handle.client.call(op).await
1419 }
1420 #[allow(missing_docs)] // documentation missing in model
1421 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
1422 self.inner = self.inner.id(input.into());
1423 self
1424 }
1425 #[allow(missing_docs)] // documentation missing in model
1426 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
1427 self.inner = self.inner.set_id(input);
1428 self
1429 }
1430 #[allow(missing_docs)] // documentation missing in model
1431 pub fn output_format(mut self, input: crate::model::OutputFormat) -> Self {
1432 self.inner = self.inner.output_format(input);
1433 self
1434 }
1435 #[allow(missing_docs)] // documentation missing in model
1436 pub fn set_output_format(
1437 mut self,
1438 input: std::option::Option<crate::model::OutputFormat>,
1439 ) -> Self {
1440 self.inner = self.inner.set_output_format(input);
1441 self
1442 }
1443 }
1444 /// Fluent builder constructing a request to `GetGuidesNetwork`.
1445 ///
1446 #[derive(std::clone::Clone, std::fmt::Debug)]
1447 pub struct GetGuidesNetwork {
1448 handle: std::sync::Arc<super::Handle>,
1449 inner: crate::input::get_guides_network_input::Builder,
1450 }
1451 impl GetGuidesNetwork {
1452 /// Creates a new `GetGuidesNetwork`.
1453 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
1454 Self {
1455 handle,
1456 inner: Default::default(),
1457 }
1458 }
1459
1460 /// Consume this builder, creating a customizable operation that can be modified before being
1461 /// sent. The operation's inner [http::Request] can be modified as well.
1462 pub async fn customize(
1463 self,
1464 ) -> std::result::Result<
1465 crate::operation::customize::CustomizableOperation<
1466 crate::operation::GetGuidesNetwork,
1467 aws_http::retry::AwsResponseRetryClassifier,
1468 >,
1469 aws_smithy_http::result::SdkError<crate::error::GetGuidesNetworkError>,
1470 > {
1471 let handle = self.handle.clone();
1472 let operation = self
1473 .inner
1474 .build()
1475 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1476 .make_operation(&handle.conf)
1477 .await
1478 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1479 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
1480 }
1481
1482 /// Sends the request and returns the response.
1483 ///
1484 /// If an error occurs, an `SdkError` will be returned with additional details that
1485 /// can be matched against.
1486 ///
1487 /// By default, any retryable failures will be retried twice. Retry behavior
1488 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
1489 /// set when configuring the client.
1490 pub async fn send(
1491 self,
1492 ) -> std::result::Result<
1493 crate::output::GetGuidesNetworkOutput,
1494 aws_smithy_http::result::SdkError<crate::error::GetGuidesNetworkError>,
1495 > {
1496 let op = self
1497 .inner
1498 .build()
1499 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1500 .make_operation(&self.handle.conf)
1501 .await
1502 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1503 self.handle.client.call(op).await
1504 }
1505 #[allow(missing_docs)] // documentation missing in model
1506 pub fn slug(mut self, input: impl Into<std::string::String>) -> Self {
1507 self.inner = self.inner.slug(input.into());
1508 self
1509 }
1510 #[allow(missing_docs)] // documentation missing in model
1511 pub fn set_slug(mut self, input: std::option::Option<std::string::String>) -> Self {
1512 self.inner = self.inner.set_slug(input);
1513 self
1514 }
1515 #[allow(missing_docs)] // documentation missing in model
1516 pub fn guide_id(mut self, input: impl Into<std::string::String>) -> Self {
1517 self.inner = self.inner.guide_id(input.into());
1518 self
1519 }
1520 #[allow(missing_docs)] // documentation missing in model
1521 pub fn set_guide_id(mut self, input: std::option::Option<std::string::String>) -> Self {
1522 self.inner = self.inner.set_guide_id(input);
1523 self
1524 }
1525 }
1526 /// Fluent builder constructing a request to `GetPublicAccountConfig`.
1527 ///
1528 #[derive(std::clone::Clone, std::fmt::Debug)]
1529 pub struct GetPublicAccountConfig {
1530 handle: std::sync::Arc<super::Handle>,
1531 inner: crate::input::get_public_account_config_input::Builder,
1532 }
1533 impl GetPublicAccountConfig {
1534 /// Creates a new `GetPublicAccountConfig`.
1535 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
1536 Self {
1537 handle,
1538 inner: Default::default(),
1539 }
1540 }
1541
1542 /// Consume this builder, creating a customizable operation that can be modified before being
1543 /// sent. The operation's inner [http::Request] can be modified as well.
1544 pub async fn customize(
1545 self,
1546 ) -> std::result::Result<
1547 crate::operation::customize::CustomizableOperation<
1548 crate::operation::GetPublicAccountConfig,
1549 aws_http::retry::AwsResponseRetryClassifier,
1550 >,
1551 aws_smithy_http::result::SdkError<crate::error::GetPublicAccountConfigError>,
1552 > {
1553 let handle = self.handle.clone();
1554 let operation = self
1555 .inner
1556 .build()
1557 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1558 .make_operation(&handle.conf)
1559 .await
1560 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1561 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
1562 }
1563
1564 /// Sends the request and returns the response.
1565 ///
1566 /// If an error occurs, an `SdkError` will be returned with additional details that
1567 /// can be matched against.
1568 ///
1569 /// By default, any retryable failures will be retried twice. Retry behavior
1570 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
1571 /// set when configuring the client.
1572 pub async fn send(
1573 self,
1574 ) -> std::result::Result<
1575 crate::output::GetPublicAccountConfigOutput,
1576 aws_smithy_http::result::SdkError<crate::error::GetPublicAccountConfigError>,
1577 > {
1578 let op = self
1579 .inner
1580 .build()
1581 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1582 .make_operation(&self.handle.conf)
1583 .await
1584 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1585 self.handle.client.call(op).await
1586 }
1587 #[allow(missing_docs)] // documentation missing in model
1588 pub fn slug(mut self, input: impl Into<std::string::String>) -> Self {
1589 self.inner = self.inner.slug(input.into());
1590 self
1591 }
1592 #[allow(missing_docs)] // documentation missing in model
1593 pub fn set_slug(mut self, input: std::option::Option<std::string::String>) -> Self {
1594 self.inner = self.inner.set_slug(input);
1595 self
1596 }
1597 }
1598 /// Fluent builder constructing a request to `GetPublicGuide`.
1599 ///
1600 #[derive(std::clone::Clone, std::fmt::Debug)]
1601 pub struct GetPublicGuide {
1602 handle: std::sync::Arc<super::Handle>,
1603 inner: crate::input::get_public_guide_input::Builder,
1604 }
1605 impl GetPublicGuide {
1606 /// Creates a new `GetPublicGuide`.
1607 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
1608 Self {
1609 handle,
1610 inner: Default::default(),
1611 }
1612 }
1613
1614 /// Consume this builder, creating a customizable operation that can be modified before being
1615 /// sent. The operation's inner [http::Request] can be modified as well.
1616 pub async fn customize(
1617 self,
1618 ) -> std::result::Result<
1619 crate::operation::customize::CustomizableOperation<
1620 crate::operation::GetPublicGuide,
1621 aws_http::retry::AwsResponseRetryClassifier,
1622 >,
1623 aws_smithy_http::result::SdkError<crate::error::GetPublicGuideError>,
1624 > {
1625 let handle = self.handle.clone();
1626 let operation = self
1627 .inner
1628 .build()
1629 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1630 .make_operation(&handle.conf)
1631 .await
1632 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1633 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
1634 }
1635
1636 /// Sends the request and returns the response.
1637 ///
1638 /// If an error occurs, an `SdkError` will be returned with additional details that
1639 /// can be matched against.
1640 ///
1641 /// By default, any retryable failures will be retried twice. Retry behavior
1642 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
1643 /// set when configuring the client.
1644 pub async fn send(
1645 self,
1646 ) -> std::result::Result<
1647 crate::output::GetPublicGuideOutput,
1648 aws_smithy_http::result::SdkError<crate::error::GetPublicGuideError>,
1649 > {
1650 let op = self
1651 .inner
1652 .build()
1653 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1654 .make_operation(&self.handle.conf)
1655 .await
1656 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1657 self.handle.client.call(op).await
1658 }
1659 #[allow(missing_docs)] // documentation missing in model
1660 pub fn slug(mut self, input: impl Into<std::string::String>) -> Self {
1661 self.inner = self.inner.slug(input.into());
1662 self
1663 }
1664 #[allow(missing_docs)] // documentation missing in model
1665 pub fn set_slug(mut self, input: std::option::Option<std::string::String>) -> Self {
1666 self.inner = self.inner.set_slug(input);
1667 self
1668 }
1669 /// Id of the published guide, begins with LIVE_
1670 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
1671 self.inner = self.inner.id(input.into());
1672 self
1673 }
1674 /// Id of the published guide, begins with LIVE_
1675 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
1676 self.inner = self.inner.set_id(input);
1677 self
1678 }
1679 #[allow(missing_docs)] // documentation missing in model
1680 pub fn output_format(mut self, input: crate::model::OutputFormat) -> Self {
1681 self.inner = self.inner.output_format(input);
1682 self
1683 }
1684 #[allow(missing_docs)] // documentation missing in model
1685 pub fn set_output_format(
1686 mut self,
1687 input: std::option::Option<crate::model::OutputFormat>,
1688 ) -> Self {
1689 self.inner = self.inner.set_output_format(input);
1690 self
1691 }
1692 }
1693 /// Fluent builder constructing a request to `GetPublicSharedGuide`.
1694 ///
1695 #[derive(std::clone::Clone, std::fmt::Debug)]
1696 pub struct GetPublicSharedGuide {
1697 handle: std::sync::Arc<super::Handle>,
1698 inner: crate::input::get_public_shared_guide_input::Builder,
1699 }
1700 impl GetPublicSharedGuide {
1701 /// Creates a new `GetPublicSharedGuide`.
1702 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
1703 Self {
1704 handle,
1705 inner: Default::default(),
1706 }
1707 }
1708
1709 /// Consume this builder, creating a customizable operation that can be modified before being
1710 /// sent. The operation's inner [http::Request] can be modified as well.
1711 pub async fn customize(
1712 self,
1713 ) -> std::result::Result<
1714 crate::operation::customize::CustomizableOperation<
1715 crate::operation::GetPublicSharedGuide,
1716 aws_http::retry::AwsResponseRetryClassifier,
1717 >,
1718 aws_smithy_http::result::SdkError<crate::error::GetPublicSharedGuideError>,
1719 > {
1720 let handle = self.handle.clone();
1721 let operation = self
1722 .inner
1723 .build()
1724 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1725 .make_operation(&handle.conf)
1726 .await
1727 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1728 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
1729 }
1730
1731 /// Sends the request and returns the response.
1732 ///
1733 /// If an error occurs, an `SdkError` will be returned with additional details that
1734 /// can be matched against.
1735 ///
1736 /// By default, any retryable failures will be retried twice. Retry behavior
1737 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
1738 /// set when configuring the client.
1739 pub async fn send(
1740 self,
1741 ) -> std::result::Result<
1742 crate::output::GetPublicSharedGuideOutput,
1743 aws_smithy_http::result::SdkError<crate::error::GetPublicSharedGuideError>,
1744 > {
1745 let op = self
1746 .inner
1747 .build()
1748 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1749 .make_operation(&self.handle.conf)
1750 .await
1751 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1752 self.handle.client.call(op).await
1753 }
1754 #[allow(missing_docs)] // documentation missing in model
1755 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
1756 self.inner = self.inner.id(input.into());
1757 self
1758 }
1759 #[allow(missing_docs)] // documentation missing in model
1760 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
1761 self.inner = self.inner.set_id(input);
1762 self
1763 }
1764 #[allow(missing_docs)] // documentation missing in model
1765 pub fn output_format(mut self, input: crate::model::OutputFormat) -> Self {
1766 self.inner = self.inner.output_format(input);
1767 self
1768 }
1769 #[allow(missing_docs)] // documentation missing in model
1770 pub fn set_output_format(
1771 mut self,
1772 input: std::option::Option<crate::model::OutputFormat>,
1773 ) -> Self {
1774 self.inner = self.inner.set_output_format(input);
1775 self
1776 }
1777 }
1778 /// Fluent builder constructing a request to `GetX12TransactionSetMetadata`.
1779 ///
1780 #[derive(std::clone::Clone, std::fmt::Debug)]
1781 pub struct GetX12TransactionSetMetadata {
1782 handle: std::sync::Arc<super::Handle>,
1783 inner: crate::input::get_x12_transaction_set_metadata_input::Builder,
1784 }
1785 impl GetX12TransactionSetMetadata {
1786 /// Creates a new `GetX12TransactionSetMetadata`.
1787 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
1788 Self {
1789 handle,
1790 inner: Default::default(),
1791 }
1792 }
1793
1794 /// Consume this builder, creating a customizable operation that can be modified before being
1795 /// sent. The operation's inner [http::Request] can be modified as well.
1796 pub async fn customize(
1797 self,
1798 ) -> std::result::Result<
1799 crate::operation::customize::CustomizableOperation<
1800 crate::operation::GetX12TransactionSetMetadata,
1801 aws_http::retry::AwsResponseRetryClassifier,
1802 >,
1803 aws_smithy_http::result::SdkError<crate::error::GetX12TransactionSetMetadataError>,
1804 > {
1805 let handle = self.handle.clone();
1806 let operation = self
1807 .inner
1808 .build()
1809 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1810 .make_operation(&handle.conf)
1811 .await
1812 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1813 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
1814 }
1815
1816 /// Sends the request and returns the response.
1817 ///
1818 /// If an error occurs, an `SdkError` will be returned with additional details that
1819 /// can be matched against.
1820 ///
1821 /// By default, any retryable failures will be retried twice. Retry behavior
1822 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
1823 /// set when configuring the client.
1824 pub async fn send(
1825 self,
1826 ) -> std::result::Result<
1827 crate::output::GetX12TransactionSetMetadataOutput,
1828 aws_smithy_http::result::SdkError<crate::error::GetX12TransactionSetMetadataError>,
1829 > {
1830 let op = self
1831 .inner
1832 .build()
1833 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1834 .make_operation(&self.handle.conf)
1835 .await
1836 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1837 self.handle.client.call(op).await
1838 }
1839 #[allow(missing_docs)] // documentation missing in model
1840 pub fn version(mut self, input: impl Into<std::string::String>) -> Self {
1841 self.inner = self.inner.version(input.into());
1842 self
1843 }
1844 #[allow(missing_docs)] // documentation missing in model
1845 pub fn set_version(mut self, input: std::option::Option<std::string::String>) -> Self {
1846 self.inner = self.inner.set_version(input);
1847 self
1848 }
1849 #[allow(missing_docs)] // documentation missing in model
1850 pub fn transaction_set_id(mut self, input: impl Into<std::string::String>) -> Self {
1851 self.inner = self.inner.transaction_set_id(input.into());
1852 self
1853 }
1854 #[allow(missing_docs)] // documentation missing in model
1855 pub fn set_transaction_set_id(
1856 mut self,
1857 input: std::option::Option<std::string::String>,
1858 ) -> Self {
1859 self.inner = self.inner.set_transaction_set_id(input);
1860 self
1861 }
1862 }
1863 /// Fluent builder constructing a request to `ListAllPublicGuides`.
1864 ///
1865 #[derive(std::clone::Clone, std::fmt::Debug)]
1866 pub struct ListAllPublicGuides {
1867 handle: std::sync::Arc<super::Handle>,
1868 inner: crate::input::list_all_public_guides_input::Builder,
1869 }
1870 impl ListAllPublicGuides {
1871 /// Creates a new `ListAllPublicGuides`.
1872 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
1873 Self {
1874 handle,
1875 inner: Default::default(),
1876 }
1877 }
1878
1879 /// Consume this builder, creating a customizable operation that can be modified before being
1880 /// sent. The operation's inner [http::Request] can be modified as well.
1881 pub async fn customize(
1882 self,
1883 ) -> std::result::Result<
1884 crate::operation::customize::CustomizableOperation<
1885 crate::operation::ListAllPublicGuides,
1886 aws_http::retry::AwsResponseRetryClassifier,
1887 >,
1888 aws_smithy_http::result::SdkError<crate::error::ListAllPublicGuidesError>,
1889 > {
1890 let handle = self.handle.clone();
1891 let operation = self
1892 .inner
1893 .build()
1894 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1895 .make_operation(&handle.conf)
1896 .await
1897 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1898 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
1899 }
1900
1901 /// Sends the request and returns the response.
1902 ///
1903 /// If an error occurs, an `SdkError` will be returned with additional details that
1904 /// can be matched against.
1905 ///
1906 /// By default, any retryable failures will be retried twice. Retry behavior
1907 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
1908 /// set when configuring the client.
1909 pub async fn send(
1910 self,
1911 ) -> std::result::Result<
1912 crate::output::ListAllPublicGuidesOutput,
1913 aws_smithy_http::result::SdkError<crate::error::ListAllPublicGuidesError>,
1914 > {
1915 let op = self
1916 .inner
1917 .build()
1918 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1919 .make_operation(&self.handle.conf)
1920 .await
1921 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1922 self.handle.client.call(op).await
1923 }
1924 /// Create a paginator for this request
1925 ///
1926 /// Paginators are used by calling [`send().await`](crate::paginator::ListAllPublicGuidesPaginator::send) which returns a `Stream`.
1927 pub fn into_paginator(self) -> crate::paginator::ListAllPublicGuidesPaginator {
1928 crate::paginator::ListAllPublicGuidesPaginator::new(self.handle, self.inner)
1929 }
1930 /// The token used for pagination
1931 pub fn next_page_token(mut self, input: impl Into<std::string::String>) -> Self {
1932 self.inner = self.inner.next_page_token(input.into());
1933 self
1934 }
1935 /// The token used for pagination
1936 pub fn set_next_page_token(
1937 mut self,
1938 input: std::option::Option<std::string::String>,
1939 ) -> Self {
1940 self.inner = self.inner.set_next_page_token(input);
1941 self
1942 }
1943 /// The maximum number of elements to return in a page
1944 pub fn page_size(mut self, input: i32) -> Self {
1945 self.inner = self.inner.page_size(input);
1946 self
1947 }
1948 /// The maximum number of elements to return in a page
1949 pub fn set_page_size(mut self, input: std::option::Option<i32>) -> Self {
1950 self.inner = self.inner.set_page_size(input);
1951 self
1952 }
1953 }
1954 /// Fluent builder constructing a request to `ListGuideAttachments`.
1955 ///
1956 #[derive(std::clone::Clone, std::fmt::Debug)]
1957 pub struct ListGuideAttachments {
1958 handle: std::sync::Arc<super::Handle>,
1959 inner: crate::input::list_guide_attachments_input::Builder,
1960 }
1961 impl ListGuideAttachments {
1962 /// Creates a new `ListGuideAttachments`.
1963 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
1964 Self {
1965 handle,
1966 inner: Default::default(),
1967 }
1968 }
1969
1970 /// Consume this builder, creating a customizable operation that can be modified before being
1971 /// sent. The operation's inner [http::Request] can be modified as well.
1972 pub async fn customize(
1973 self,
1974 ) -> std::result::Result<
1975 crate::operation::customize::CustomizableOperation<
1976 crate::operation::ListGuideAttachments,
1977 aws_http::retry::AwsResponseRetryClassifier,
1978 >,
1979 aws_smithy_http::result::SdkError<crate::error::ListGuideAttachmentsError>,
1980 > {
1981 let handle = self.handle.clone();
1982 let operation = self
1983 .inner
1984 .build()
1985 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
1986 .make_operation(&handle.conf)
1987 .await
1988 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
1989 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
1990 }
1991
1992 /// Sends the request and returns the response.
1993 ///
1994 /// If an error occurs, an `SdkError` will be returned with additional details that
1995 /// can be matched against.
1996 ///
1997 /// By default, any retryable failures will be retried twice. Retry behavior
1998 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
1999 /// set when configuring the client.
2000 pub async fn send(
2001 self,
2002 ) -> std::result::Result<
2003 crate::output::ListGuideAttachmentsOutput,
2004 aws_smithy_http::result::SdkError<crate::error::ListGuideAttachmentsError>,
2005 > {
2006 let op = self
2007 .inner
2008 .build()
2009 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2010 .make_operation(&self.handle.conf)
2011 .await
2012 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2013 self.handle.client.call(op).await
2014 }
2015 /// Id of the guide these attachments belong to
2016 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
2017 self.inner = self.inner.id(input.into());
2018 self
2019 }
2020 /// Id of the guide these attachments belong to
2021 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
2022 self.inner = self.inner.set_id(input);
2023 self
2024 }
2025 }
2026 /// Fluent builder constructing a request to `ListGuides`.
2027 ///
2028 #[derive(std::clone::Clone, std::fmt::Debug)]
2029 pub struct ListGuides {
2030 handle: std::sync::Arc<super::Handle>,
2031 inner: crate::input::list_guides_input::Builder,
2032 }
2033 impl ListGuides {
2034 /// Creates a new `ListGuides`.
2035 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
2036 Self {
2037 handle,
2038 inner: Default::default(),
2039 }
2040 }
2041
2042 /// Consume this builder, creating a customizable operation that can be modified before being
2043 /// sent. The operation's inner [http::Request] can be modified as well.
2044 pub async fn customize(
2045 self,
2046 ) -> std::result::Result<
2047 crate::operation::customize::CustomizableOperation<
2048 crate::operation::ListGuides,
2049 aws_http::retry::AwsResponseRetryClassifier,
2050 >,
2051 aws_smithy_http::result::SdkError<crate::error::ListGuidesError>,
2052 > {
2053 let handle = self.handle.clone();
2054 let operation = self
2055 .inner
2056 .build()
2057 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2058 .make_operation(&handle.conf)
2059 .await
2060 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2061 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
2062 }
2063
2064 /// Sends the request and returns the response.
2065 ///
2066 /// If an error occurs, an `SdkError` will be returned with additional details that
2067 /// can be matched against.
2068 ///
2069 /// By default, any retryable failures will be retried twice. Retry behavior
2070 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
2071 /// set when configuring the client.
2072 pub async fn send(
2073 self,
2074 ) -> std::result::Result<
2075 crate::output::ListGuidesOutput,
2076 aws_smithy_http::result::SdkError<crate::error::ListGuidesError>,
2077 > {
2078 let op = self
2079 .inner
2080 .build()
2081 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2082 .make_operation(&self.handle.conf)
2083 .await
2084 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2085 self.handle.client.call(op).await
2086 }
2087 /// Create a paginator for this request
2088 ///
2089 /// Paginators are used by calling [`send().await`](crate::paginator::ListGuidesPaginator::send) which returns a `Stream`.
2090 pub fn into_paginator(self) -> crate::paginator::ListGuidesPaginator {
2091 crate::paginator::ListGuidesPaginator::new(self.handle, self.inner)
2092 }
2093 #[allow(missing_docs)] // documentation missing in model
2094 pub fn status(mut self, input: crate::model::GuideStatus) -> Self {
2095 self.inner = self.inner.status(input);
2096 self
2097 }
2098 #[allow(missing_docs)] // documentation missing in model
2099 pub fn set_status(mut self, input: std::option::Option<crate::model::GuideStatus>) -> Self {
2100 self.inner = self.inner.set_status(input);
2101 self
2102 }
2103 /// The token used for pagination
2104 pub fn next_page_token(mut self, input: impl Into<std::string::String>) -> Self {
2105 self.inner = self.inner.next_page_token(input.into());
2106 self
2107 }
2108 /// The token used for pagination
2109 pub fn set_next_page_token(
2110 mut self,
2111 input: std::option::Option<std::string::String>,
2112 ) -> Self {
2113 self.inner = self.inner.set_next_page_token(input);
2114 self
2115 }
2116 /// The maximum number of elements to return in a page
2117 pub fn page_size(mut self, input: i32) -> Self {
2118 self.inner = self.inner.page_size(input);
2119 self
2120 }
2121 /// The maximum number of elements to return in a page
2122 pub fn set_page_size(mut self, input: std::option::Option<i32>) -> Self {
2123 self.inner = self.inner.set_page_size(input);
2124 self
2125 }
2126 }
2127 /// Fluent builder constructing a request to `ListGuideSamples`.
2128 ///
2129 #[derive(std::clone::Clone, std::fmt::Debug)]
2130 pub struct ListGuideSamples {
2131 handle: std::sync::Arc<super::Handle>,
2132 inner: crate::input::list_guide_samples_input::Builder,
2133 }
2134 impl ListGuideSamples {
2135 /// Creates a new `ListGuideSamples`.
2136 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
2137 Self {
2138 handle,
2139 inner: Default::default(),
2140 }
2141 }
2142
2143 /// Consume this builder, creating a customizable operation that can be modified before being
2144 /// sent. The operation's inner [http::Request] can be modified as well.
2145 pub async fn customize(
2146 self,
2147 ) -> std::result::Result<
2148 crate::operation::customize::CustomizableOperation<
2149 crate::operation::ListGuideSamples,
2150 aws_http::retry::AwsResponseRetryClassifier,
2151 >,
2152 aws_smithy_http::result::SdkError<crate::error::ListGuideSamplesError>,
2153 > {
2154 let handle = self.handle.clone();
2155 let operation = self
2156 .inner
2157 .build()
2158 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2159 .make_operation(&handle.conf)
2160 .await
2161 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2162 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
2163 }
2164
2165 /// Sends the request and returns the response.
2166 ///
2167 /// If an error occurs, an `SdkError` will be returned with additional details that
2168 /// can be matched against.
2169 ///
2170 /// By default, any retryable failures will be retried twice. Retry behavior
2171 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
2172 /// set when configuring the client.
2173 pub async fn send(
2174 self,
2175 ) -> std::result::Result<
2176 crate::output::ListGuideSamplesOutput,
2177 aws_smithy_http::result::SdkError<crate::error::ListGuideSamplesError>,
2178 > {
2179 let op = self
2180 .inner
2181 .build()
2182 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2183 .make_operation(&self.handle.conf)
2184 .await
2185 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2186 self.handle.client.call(op).await
2187 }
2188 /// Id of the guide these samples belong to
2189 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
2190 self.inner = self.inner.id(input.into());
2191 self
2192 }
2193 /// Id of the guide these samples belong to
2194 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
2195 self.inner = self.inner.set_id(input);
2196 self
2197 }
2198 }
2199 /// Fluent builder constructing a request to `ListPublicGuideAttachments`.
2200 ///
2201 #[derive(std::clone::Clone, std::fmt::Debug)]
2202 pub struct ListPublicGuideAttachments {
2203 handle: std::sync::Arc<super::Handle>,
2204 inner: crate::input::list_public_guide_attachments_input::Builder,
2205 }
2206 impl ListPublicGuideAttachments {
2207 /// Creates a new `ListPublicGuideAttachments`.
2208 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
2209 Self {
2210 handle,
2211 inner: Default::default(),
2212 }
2213 }
2214
2215 /// Consume this builder, creating a customizable operation that can be modified before being
2216 /// sent. The operation's inner [http::Request] can be modified as well.
2217 pub async fn customize(
2218 self,
2219 ) -> std::result::Result<
2220 crate::operation::customize::CustomizableOperation<
2221 crate::operation::ListPublicGuideAttachments,
2222 aws_http::retry::AwsResponseRetryClassifier,
2223 >,
2224 aws_smithy_http::result::SdkError<crate::error::ListPublicGuideAttachmentsError>,
2225 > {
2226 let handle = self.handle.clone();
2227 let operation = self
2228 .inner
2229 .build()
2230 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2231 .make_operation(&handle.conf)
2232 .await
2233 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2234 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
2235 }
2236
2237 /// Sends the request and returns the response.
2238 ///
2239 /// If an error occurs, an `SdkError` will be returned with additional details that
2240 /// can be matched against.
2241 ///
2242 /// By default, any retryable failures will be retried twice. Retry behavior
2243 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
2244 /// set when configuring the client.
2245 pub async fn send(
2246 self,
2247 ) -> std::result::Result<
2248 crate::output::ListPublicGuideAttachmentsOutput,
2249 aws_smithy_http::result::SdkError<crate::error::ListPublicGuideAttachmentsError>,
2250 > {
2251 let op = self
2252 .inner
2253 .build()
2254 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2255 .make_operation(&self.handle.conf)
2256 .await
2257 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2258 self.handle.client.call(op).await
2259 }
2260 #[allow(missing_docs)] // documentation missing in model
2261 pub fn slug(mut self, input: impl Into<std::string::String>) -> Self {
2262 self.inner = self.inner.slug(input.into());
2263 self
2264 }
2265 #[allow(missing_docs)] // documentation missing in model
2266 pub fn set_slug(mut self, input: std::option::Option<std::string::String>) -> Self {
2267 self.inner = self.inner.set_slug(input);
2268 self
2269 }
2270 /// Id of the published guide these attachments belong to, begins with LIVE_
2271 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
2272 self.inner = self.inner.id(input.into());
2273 self
2274 }
2275 /// Id of the published guide these attachments belong to, begins with LIVE_
2276 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
2277 self.inner = self.inner.set_id(input);
2278 self
2279 }
2280 }
2281 /// Fluent builder constructing a request to `ListPublicGuides`.
2282 ///
2283 #[derive(std::clone::Clone, std::fmt::Debug)]
2284 pub struct ListPublicGuides {
2285 handle: std::sync::Arc<super::Handle>,
2286 inner: crate::input::list_public_guides_input::Builder,
2287 }
2288 impl ListPublicGuides {
2289 /// Creates a new `ListPublicGuides`.
2290 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
2291 Self {
2292 handle,
2293 inner: Default::default(),
2294 }
2295 }
2296
2297 /// Consume this builder, creating a customizable operation that can be modified before being
2298 /// sent. The operation's inner [http::Request] can be modified as well.
2299 pub async fn customize(
2300 self,
2301 ) -> std::result::Result<
2302 crate::operation::customize::CustomizableOperation<
2303 crate::operation::ListPublicGuides,
2304 aws_http::retry::AwsResponseRetryClassifier,
2305 >,
2306 aws_smithy_http::result::SdkError<crate::error::ListPublicGuidesError>,
2307 > {
2308 let handle = self.handle.clone();
2309 let operation = self
2310 .inner
2311 .build()
2312 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2313 .make_operation(&handle.conf)
2314 .await
2315 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2316 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
2317 }
2318
2319 /// Sends the request and returns the response.
2320 ///
2321 /// If an error occurs, an `SdkError` will be returned with additional details that
2322 /// can be matched against.
2323 ///
2324 /// By default, any retryable failures will be retried twice. Retry behavior
2325 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
2326 /// set when configuring the client.
2327 pub async fn send(
2328 self,
2329 ) -> std::result::Result<
2330 crate::output::ListPublicGuidesOutput,
2331 aws_smithy_http::result::SdkError<crate::error::ListPublicGuidesError>,
2332 > {
2333 let op = self
2334 .inner
2335 .build()
2336 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2337 .make_operation(&self.handle.conf)
2338 .await
2339 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2340 self.handle.client.call(op).await
2341 }
2342 /// Create a paginator for this request
2343 ///
2344 /// Paginators are used by calling [`send().await`](crate::paginator::ListPublicGuidesPaginator::send) which returns a `Stream`.
2345 pub fn into_paginator(self) -> crate::paginator::ListPublicGuidesPaginator {
2346 crate::paginator::ListPublicGuidesPaginator::new(self.handle, self.inner)
2347 }
2348 #[allow(missing_docs)] // documentation missing in model
2349 pub fn slug(mut self, input: impl Into<std::string::String>) -> Self {
2350 self.inner = self.inner.slug(input.into());
2351 self
2352 }
2353 #[allow(missing_docs)] // documentation missing in model
2354 pub fn set_slug(mut self, input: std::option::Option<std::string::String>) -> Self {
2355 self.inner = self.inner.set_slug(input);
2356 self
2357 }
2358 /// The token used for pagination
2359 pub fn next_page_token(mut self, input: impl Into<std::string::String>) -> Self {
2360 self.inner = self.inner.next_page_token(input.into());
2361 self
2362 }
2363 /// The token used for pagination
2364 pub fn set_next_page_token(
2365 mut self,
2366 input: std::option::Option<std::string::String>,
2367 ) -> Self {
2368 self.inner = self.inner.set_next_page_token(input);
2369 self
2370 }
2371 /// The maximum number of elements to return in a page
2372 pub fn page_size(mut self, input: i32) -> Self {
2373 self.inner = self.inner.page_size(input);
2374 self
2375 }
2376 /// The maximum number of elements to return in a page
2377 pub fn set_page_size(mut self, input: std::option::Option<i32>) -> Self {
2378 self.inner = self.inner.set_page_size(input);
2379 self
2380 }
2381 }
2382 /// Fluent builder constructing a request to `ListPublicGuideSamples`.
2383 ///
2384 #[derive(std::clone::Clone, std::fmt::Debug)]
2385 pub struct ListPublicGuideSamples {
2386 handle: std::sync::Arc<super::Handle>,
2387 inner: crate::input::list_public_guide_samples_input::Builder,
2388 }
2389 impl ListPublicGuideSamples {
2390 /// Creates a new `ListPublicGuideSamples`.
2391 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
2392 Self {
2393 handle,
2394 inner: Default::default(),
2395 }
2396 }
2397
2398 /// Consume this builder, creating a customizable operation that can be modified before being
2399 /// sent. The operation's inner [http::Request] can be modified as well.
2400 pub async fn customize(
2401 self,
2402 ) -> std::result::Result<
2403 crate::operation::customize::CustomizableOperation<
2404 crate::operation::ListPublicGuideSamples,
2405 aws_http::retry::AwsResponseRetryClassifier,
2406 >,
2407 aws_smithy_http::result::SdkError<crate::error::ListPublicGuideSamplesError>,
2408 > {
2409 let handle = self.handle.clone();
2410 let operation = self
2411 .inner
2412 .build()
2413 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2414 .make_operation(&handle.conf)
2415 .await
2416 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2417 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
2418 }
2419
2420 /// Sends the request and returns the response.
2421 ///
2422 /// If an error occurs, an `SdkError` will be returned with additional details that
2423 /// can be matched against.
2424 ///
2425 /// By default, any retryable failures will be retried twice. Retry behavior
2426 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
2427 /// set when configuring the client.
2428 pub async fn send(
2429 self,
2430 ) -> std::result::Result<
2431 crate::output::ListPublicGuideSamplesOutput,
2432 aws_smithy_http::result::SdkError<crate::error::ListPublicGuideSamplesError>,
2433 > {
2434 let op = self
2435 .inner
2436 .build()
2437 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2438 .make_operation(&self.handle.conf)
2439 .await
2440 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2441 self.handle.client.call(op).await
2442 }
2443 #[allow(missing_docs)] // documentation missing in model
2444 pub fn slug(mut self, input: impl Into<std::string::String>) -> Self {
2445 self.inner = self.inner.slug(input.into());
2446 self
2447 }
2448 #[allow(missing_docs)] // documentation missing in model
2449 pub fn set_slug(mut self, input: std::option::Option<std::string::String>) -> Self {
2450 self.inner = self.inner.set_slug(input);
2451 self
2452 }
2453 /// Id of the published guide these samples belong to, begins with LIVE_
2454 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
2455 self.inner = self.inner.id(input.into());
2456 self
2457 }
2458 /// Id of the published guide these samples belong to, begins with LIVE_
2459 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
2460 self.inner = self.inner.set_id(input);
2461 self
2462 }
2463 }
2464 /// Fluent builder constructing a request to `ListPublicSharedGuideAttachments`.
2465 ///
2466 #[derive(std::clone::Clone, std::fmt::Debug)]
2467 pub struct ListPublicSharedGuideAttachments {
2468 handle: std::sync::Arc<super::Handle>,
2469 inner: crate::input::list_public_shared_guide_attachments_input::Builder,
2470 }
2471 impl ListPublicSharedGuideAttachments {
2472 /// Creates a new `ListPublicSharedGuideAttachments`.
2473 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
2474 Self {
2475 handle,
2476 inner: Default::default(),
2477 }
2478 }
2479
2480 /// Consume this builder, creating a customizable operation that can be modified before being
2481 /// sent. The operation's inner [http::Request] can be modified as well.
2482 pub async fn customize(
2483 self,
2484 ) -> std::result::Result<
2485 crate::operation::customize::CustomizableOperation<
2486 crate::operation::ListPublicSharedGuideAttachments,
2487 aws_http::retry::AwsResponseRetryClassifier,
2488 >,
2489 aws_smithy_http::result::SdkError<crate::error::ListPublicSharedGuideAttachmentsError>,
2490 > {
2491 let handle = self.handle.clone();
2492 let operation = self
2493 .inner
2494 .build()
2495 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2496 .make_operation(&handle.conf)
2497 .await
2498 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2499 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
2500 }
2501
2502 /// Sends the request and returns the response.
2503 ///
2504 /// If an error occurs, an `SdkError` will be returned with additional details that
2505 /// can be matched against.
2506 ///
2507 /// By default, any retryable failures will be retried twice. Retry behavior
2508 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
2509 /// set when configuring the client.
2510 pub async fn send(
2511 self,
2512 ) -> std::result::Result<
2513 crate::output::ListPublicSharedGuideAttachmentsOutput,
2514 aws_smithy_http::result::SdkError<crate::error::ListPublicSharedGuideAttachmentsError>,
2515 > {
2516 let op = self
2517 .inner
2518 .build()
2519 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2520 .make_operation(&self.handle.conf)
2521 .await
2522 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2523 self.handle.client.call(op).await
2524 }
2525 /// SharedId of the guide these attachments belong to
2526 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
2527 self.inner = self.inner.id(input.into());
2528 self
2529 }
2530 /// SharedId of the guide these attachments belong to
2531 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
2532 self.inner = self.inner.set_id(input);
2533 self
2534 }
2535 }
2536 /// Fluent builder constructing a request to `ListPublicSharedGuideSamples`.
2537 ///
2538 #[derive(std::clone::Clone, std::fmt::Debug)]
2539 pub struct ListPublicSharedGuideSamples {
2540 handle: std::sync::Arc<super::Handle>,
2541 inner: crate::input::list_public_shared_guide_samples_input::Builder,
2542 }
2543 impl ListPublicSharedGuideSamples {
2544 /// Creates a new `ListPublicSharedGuideSamples`.
2545 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
2546 Self {
2547 handle,
2548 inner: Default::default(),
2549 }
2550 }
2551
2552 /// Consume this builder, creating a customizable operation that can be modified before being
2553 /// sent. The operation's inner [http::Request] can be modified as well.
2554 pub async fn customize(
2555 self,
2556 ) -> std::result::Result<
2557 crate::operation::customize::CustomizableOperation<
2558 crate::operation::ListPublicSharedGuideSamples,
2559 aws_http::retry::AwsResponseRetryClassifier,
2560 >,
2561 aws_smithy_http::result::SdkError<crate::error::ListPublicSharedGuideSamplesError>,
2562 > {
2563 let handle = self.handle.clone();
2564 let operation = self
2565 .inner
2566 .build()
2567 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2568 .make_operation(&handle.conf)
2569 .await
2570 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2571 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
2572 }
2573
2574 /// Sends the request and returns the response.
2575 ///
2576 /// If an error occurs, an `SdkError` will be returned with additional details that
2577 /// can be matched against.
2578 ///
2579 /// By default, any retryable failures will be retried twice. Retry behavior
2580 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
2581 /// set when configuring the client.
2582 pub async fn send(
2583 self,
2584 ) -> std::result::Result<
2585 crate::output::ListPublicSharedGuideSamplesOutput,
2586 aws_smithy_http::result::SdkError<crate::error::ListPublicSharedGuideSamplesError>,
2587 > {
2588 let op = self
2589 .inner
2590 .build()
2591 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2592 .make_operation(&self.handle.conf)
2593 .await
2594 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2595 self.handle.client.call(op).await
2596 }
2597 /// SharedId of the guide these samples belong to
2598 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
2599 self.inner = self.inner.id(input.into());
2600 self
2601 }
2602 /// SharedId of the guide these samples belong to
2603 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
2604 self.inner = self.inner.set_id(input);
2605 self
2606 }
2607 }
2608 /// Fluent builder constructing a request to `ListX12TransactionSets`.
2609 ///
2610 #[derive(std::clone::Clone, std::fmt::Debug)]
2611 pub struct ListX12TransactionSets {
2612 handle: std::sync::Arc<super::Handle>,
2613 inner: crate::input::list_x12_transaction_sets_input::Builder,
2614 }
2615 impl ListX12TransactionSets {
2616 /// Creates a new `ListX12TransactionSets`.
2617 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
2618 Self {
2619 handle,
2620 inner: Default::default(),
2621 }
2622 }
2623
2624 /// Consume this builder, creating a customizable operation that can be modified before being
2625 /// sent. The operation's inner [http::Request] can be modified as well.
2626 pub async fn customize(
2627 self,
2628 ) -> std::result::Result<
2629 crate::operation::customize::CustomizableOperation<
2630 crate::operation::ListX12TransactionSets,
2631 aws_http::retry::AwsResponseRetryClassifier,
2632 >,
2633 aws_smithy_http::result::SdkError<crate::error::ListX12TransactionSetsError>,
2634 > {
2635 let handle = self.handle.clone();
2636 let operation = self
2637 .inner
2638 .build()
2639 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2640 .make_operation(&handle.conf)
2641 .await
2642 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2643 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
2644 }
2645
2646 /// Sends the request and returns the response.
2647 ///
2648 /// If an error occurs, an `SdkError` will be returned with additional details that
2649 /// can be matched against.
2650 ///
2651 /// By default, any retryable failures will be retried twice. Retry behavior
2652 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
2653 /// set when configuring the client.
2654 pub async fn send(
2655 self,
2656 ) -> std::result::Result<
2657 crate::output::ListX12TransactionSetsOutput,
2658 aws_smithy_http::result::SdkError<crate::error::ListX12TransactionSetsError>,
2659 > {
2660 let op = self
2661 .inner
2662 .build()
2663 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2664 .make_operation(&self.handle.conf)
2665 .await
2666 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2667 self.handle.client.call(op).await
2668 }
2669 #[allow(missing_docs)] // documentation missing in model
2670 pub fn version(mut self, input: impl Into<std::string::String>) -> Self {
2671 self.inner = self.inner.version(input.into());
2672 self
2673 }
2674 #[allow(missing_docs)] // documentation missing in model
2675 pub fn set_version(mut self, input: std::option::Option<std::string::String>) -> Self {
2676 self.inner = self.inner.set_version(input);
2677 self
2678 }
2679 }
2680 /// Fluent builder constructing a request to `PublishGuide`.
2681 ///
2682 /// Syncs all the unpublished changes. If the Guide is published for the first time, and the `visibility` parameter is not provided, the guide is published as `private`.
2683 #[derive(std::clone::Clone, std::fmt::Debug)]
2684 pub struct PublishGuide {
2685 handle: std::sync::Arc<super::Handle>,
2686 inner: crate::input::publish_guide_input::Builder,
2687 }
2688 impl PublishGuide {
2689 /// Creates a new `PublishGuide`.
2690 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
2691 Self {
2692 handle,
2693 inner: Default::default(),
2694 }
2695 }
2696
2697 /// Consume this builder, creating a customizable operation that can be modified before being
2698 /// sent. The operation's inner [http::Request] can be modified as well.
2699 pub async fn customize(
2700 self,
2701 ) -> std::result::Result<
2702 crate::operation::customize::CustomizableOperation<
2703 crate::operation::PublishGuide,
2704 aws_http::retry::AwsResponseRetryClassifier,
2705 >,
2706 aws_smithy_http::result::SdkError<crate::error::PublishGuideError>,
2707 > {
2708 let handle = self.handle.clone();
2709 let operation = self
2710 .inner
2711 .build()
2712 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2713 .make_operation(&handle.conf)
2714 .await
2715 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2716 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
2717 }
2718
2719 /// Sends the request and returns the response.
2720 ///
2721 /// If an error occurs, an `SdkError` will be returned with additional details that
2722 /// can be matched against.
2723 ///
2724 /// By default, any retryable failures will be retried twice. Retry behavior
2725 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
2726 /// set when configuring the client.
2727 pub async fn send(
2728 self,
2729 ) -> std::result::Result<
2730 crate::output::PublishGuideOutput,
2731 aws_smithy_http::result::SdkError<crate::error::PublishGuideError>,
2732 > {
2733 let op = self
2734 .inner
2735 .build()
2736 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2737 .make_operation(&self.handle.conf)
2738 .await
2739 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2740 self.handle.client.call(op).await
2741 }
2742 /// Id of the draft guide, begins with DRFT_
2743 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
2744 self.inner = self.inner.id(input.into());
2745 self
2746 }
2747 /// Id of the draft guide, begins with DRFT_
2748 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
2749 self.inner = self.inner.set_id(input);
2750 self
2751 }
2752 #[allow(missing_docs)] // documentation missing in model
2753 pub fn output_format(mut self, input: crate::model::OutputFormat) -> Self {
2754 self.inner = self.inner.output_format(input);
2755 self
2756 }
2757 #[allow(missing_docs)] // documentation missing in model
2758 pub fn set_output_format(
2759 mut self,
2760 input: std::option::Option<crate::model::OutputFormat>,
2761 ) -> Self {
2762 self.inner = self.inner.set_output_format(input);
2763 self
2764 }
2765 }
2766 /// Fluent builder constructing a request to `RevertGuide`.
2767 ///
2768 /// Unapplies all changes made to the draft guide since the last publish.
2769 #[derive(std::clone::Clone, std::fmt::Debug)]
2770 pub struct RevertGuide {
2771 handle: std::sync::Arc<super::Handle>,
2772 inner: crate::input::revert_guide_input::Builder,
2773 }
2774 impl RevertGuide {
2775 /// Creates a new `RevertGuide`.
2776 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
2777 Self {
2778 handle,
2779 inner: Default::default(),
2780 }
2781 }
2782
2783 /// Consume this builder, creating a customizable operation that can be modified before being
2784 /// sent. The operation's inner [http::Request] can be modified as well.
2785 pub async fn customize(
2786 self,
2787 ) -> std::result::Result<
2788 crate::operation::customize::CustomizableOperation<
2789 crate::operation::RevertGuide,
2790 aws_http::retry::AwsResponseRetryClassifier,
2791 >,
2792 aws_smithy_http::result::SdkError<crate::error::RevertGuideError>,
2793 > {
2794 let handle = self.handle.clone();
2795 let operation = self
2796 .inner
2797 .build()
2798 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2799 .make_operation(&handle.conf)
2800 .await
2801 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2802 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
2803 }
2804
2805 /// Sends the request and returns the response.
2806 ///
2807 /// If an error occurs, an `SdkError` will be returned with additional details that
2808 /// can be matched against.
2809 ///
2810 /// By default, any retryable failures will be retried twice. Retry behavior
2811 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
2812 /// set when configuring the client.
2813 pub async fn send(
2814 self,
2815 ) -> std::result::Result<
2816 crate::output::RevertGuideOutput,
2817 aws_smithy_http::result::SdkError<crate::error::RevertGuideError>,
2818 > {
2819 let op = self
2820 .inner
2821 .build()
2822 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2823 .make_operation(&self.handle.conf)
2824 .await
2825 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2826 self.handle.client.call(op).await
2827 }
2828 /// Id of the draft guide, begins with DRFT_
2829 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
2830 self.inner = self.inner.id(input.into());
2831 self
2832 }
2833 /// Id of the draft guide, begins with DRFT_
2834 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
2835 self.inner = self.inner.set_id(input);
2836 self
2837 }
2838 #[allow(missing_docs)] // documentation missing in model
2839 pub fn output_format(mut self, input: crate::model::OutputFormat) -> Self {
2840 self.inner = self.inner.output_format(input);
2841 self
2842 }
2843 #[allow(missing_docs)] // documentation missing in model
2844 pub fn set_output_format(
2845 mut self,
2846 input: std::option::Option<crate::model::OutputFormat>,
2847 ) -> Self {
2848 self.inner = self.inner.set_output_format(input);
2849 self
2850 }
2851 }
2852 /// Fluent builder constructing a request to `UpdateAccountConfig`.
2853 ///
2854 #[derive(std::clone::Clone, std::fmt::Debug)]
2855 pub struct UpdateAccountConfig {
2856 handle: std::sync::Arc<super::Handle>,
2857 inner: crate::input::update_account_config_input::Builder,
2858 }
2859 impl UpdateAccountConfig {
2860 /// Creates a new `UpdateAccountConfig`.
2861 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
2862 Self {
2863 handle,
2864 inner: Default::default(),
2865 }
2866 }
2867
2868 /// Consume this builder, creating a customizable operation that can be modified before being
2869 /// sent. The operation's inner [http::Request] can be modified as well.
2870 pub async fn customize(
2871 self,
2872 ) -> std::result::Result<
2873 crate::operation::customize::CustomizableOperation<
2874 crate::operation::UpdateAccountConfig,
2875 aws_http::retry::AwsResponseRetryClassifier,
2876 >,
2877 aws_smithy_http::result::SdkError<crate::error::UpdateAccountConfigError>,
2878 > {
2879 let handle = self.handle.clone();
2880 let operation = self
2881 .inner
2882 .build()
2883 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2884 .make_operation(&handle.conf)
2885 .await
2886 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2887 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
2888 }
2889
2890 /// Sends the request and returns the response.
2891 ///
2892 /// If an error occurs, an `SdkError` will be returned with additional details that
2893 /// can be matched against.
2894 ///
2895 /// By default, any retryable failures will be retried twice. Retry behavior
2896 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
2897 /// set when configuring the client.
2898 pub async fn send(
2899 self,
2900 ) -> std::result::Result<
2901 crate::output::UpdateAccountConfigOutput,
2902 aws_smithy_http::result::SdkError<crate::error::UpdateAccountConfigError>,
2903 > {
2904 let op = self
2905 .inner
2906 .build()
2907 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
2908 .make_operation(&self.handle.conf)
2909 .await
2910 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
2911 self.handle.client.call(op).await
2912 }
2913 /// The URL of the logo. Only one of logoUrl or logoData can be provided.
2914 pub fn logo_url(mut self, input: impl Into<std::string::String>) -> Self {
2915 self.inner = self.inner.logo_url(input.into());
2916 self
2917 }
2918 /// The URL of the logo. Only one of logoUrl or logoData can be provided.
2919 pub fn set_logo_url(mut self, input: std::option::Option<std::string::String>) -> Self {
2920 self.inner = self.inner.set_logo_url(input);
2921 self
2922 }
2923 /// The base64 data URI of the logo. Only one of logoUrl or logoData can be provided.
2924 pub fn logo_data(mut self, input: impl Into<std::string::String>) -> Self {
2925 self.inner = self.inner.logo_data(input.into());
2926 self
2927 }
2928 /// The base64 data URI of the logo. Only one of logoUrl or logoData can be provided.
2929 pub fn set_logo_data(mut self, input: std::option::Option<std::string::String>) -> Self {
2930 self.inner = self.inner.set_logo_data(input);
2931 self
2932 }
2933 #[allow(missing_docs)] // documentation missing in model
2934 pub fn link_text(mut self, input: impl Into<std::string::String>) -> Self {
2935 self.inner = self.inner.link_text(input.into());
2936 self
2937 }
2938 #[allow(missing_docs)] // documentation missing in model
2939 pub fn set_link_text(mut self, input: std::option::Option<std::string::String>) -> Self {
2940 self.inner = self.inner.set_link_text(input);
2941 self
2942 }
2943 #[allow(missing_docs)] // documentation missing in model
2944 pub fn link_url(mut self, input: impl Into<std::string::String>) -> Self {
2945 self.inner = self.inner.link_url(input.into());
2946 self
2947 }
2948 #[allow(missing_docs)] // documentation missing in model
2949 pub fn set_link_url(mut self, input: std::option::Option<std::string::String>) -> Self {
2950 self.inner = self.inner.set_link_url(input);
2951 self
2952 }
2953 #[allow(missing_docs)] // documentation missing in model
2954 pub fn slug(mut self, input: impl Into<std::string::String>) -> Self {
2955 self.inner = self.inner.slug(input.into());
2956 self
2957 }
2958 #[allow(missing_docs)] // documentation missing in model
2959 pub fn set_slug(mut self, input: std::option::Option<std::string::String>) -> Self {
2960 self.inner = self.inner.set_slug(input);
2961 self
2962 }
2963 #[allow(missing_docs)] // documentation missing in model
2964 pub fn display_name(mut self, input: impl Into<std::string::String>) -> Self {
2965 self.inner = self.inner.display_name(input.into());
2966 self
2967 }
2968 #[allow(missing_docs)] // documentation missing in model
2969 pub fn set_display_name(mut self, input: std::option::Option<std::string::String>) -> Self {
2970 self.inner = self.inner.set_display_name(input);
2971 self
2972 }
2973 }
2974 /// Fluent builder constructing a request to `UpdateGuide`.
2975 ///
2976 #[derive(std::clone::Clone, std::fmt::Debug)]
2977 pub struct UpdateGuide {
2978 handle: std::sync::Arc<super::Handle>,
2979 inner: crate::input::update_guide_input::Builder,
2980 }
2981 impl UpdateGuide {
2982 /// Creates a new `UpdateGuide`.
2983 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
2984 Self {
2985 handle,
2986 inner: Default::default(),
2987 }
2988 }
2989
2990 /// Consume this builder, creating a customizable operation that can be modified before being
2991 /// sent. The operation's inner [http::Request] can be modified as well.
2992 pub async fn customize(
2993 self,
2994 ) -> std::result::Result<
2995 crate::operation::customize::CustomizableOperation<
2996 crate::operation::UpdateGuide,
2997 aws_http::retry::AwsResponseRetryClassifier,
2998 >,
2999 aws_smithy_http::result::SdkError<crate::error::UpdateGuideError>,
3000 > {
3001 let handle = self.handle.clone();
3002 let operation = self
3003 .inner
3004 .build()
3005 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
3006 .make_operation(&handle.conf)
3007 .await
3008 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
3009 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
3010 }
3011
3012 /// Sends the request and returns the response.
3013 ///
3014 /// If an error occurs, an `SdkError` will be returned with additional details that
3015 /// can be matched against.
3016 ///
3017 /// By default, any retryable failures will be retried twice. Retry behavior
3018 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
3019 /// set when configuring the client.
3020 pub async fn send(
3021 self,
3022 ) -> std::result::Result<
3023 crate::output::UpdateGuideOutput,
3024 aws_smithy_http::result::SdkError<crate::error::UpdateGuideError>,
3025 > {
3026 let op = self
3027 .inner
3028 .build()
3029 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
3030 .make_operation(&self.handle.conf)
3031 .await
3032 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
3033 self.handle.client.call(op).await
3034 }
3035 /// Id of the draft guide, begins with DRFT_
3036 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
3037 self.inner = self.inner.id(input.into());
3038 self
3039 }
3040 /// Id of the draft guide, begins with DRFT_
3041 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
3042 self.inner = self.inner.set_id(input);
3043 self
3044 }
3045 #[allow(missing_docs)] // documentation missing in model
3046 pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
3047 self.inner = self.inner.name(input.into());
3048 self
3049 }
3050 #[allow(missing_docs)] // documentation missing in model
3051 pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
3052 self.inner = self.inner.set_name(input);
3053 self
3054 }
3055 #[allow(missing_docs)] // documentation missing in model
3056 pub fn definition(mut self, input: aws_smithy_types::Document) -> Self {
3057 self.inner = self.inner.definition(input);
3058 self
3059 }
3060 #[allow(missing_docs)] // documentation missing in model
3061 pub fn set_definition(
3062 mut self,
3063 input: std::option::Option<aws_smithy_types::Document>,
3064 ) -> Self {
3065 self.inner = self.inner.set_definition(input);
3066 self
3067 }
3068 #[allow(missing_docs)] // documentation missing in model
3069 pub fn x12_envelope(mut self, input: impl Into<std::string::String>) -> Self {
3070 self.inner = self.inner.x12_envelope(input.into());
3071 self
3072 }
3073 #[allow(missing_docs)] // documentation missing in model
3074 pub fn set_x12_envelope(mut self, input: std::option::Option<std::string::String>) -> Self {
3075 self.inner = self.inner.set_x12_envelope(input);
3076 self
3077 }
3078 }
3079 /// Fluent builder constructing a request to `UpdateGuideAttachment`.
3080 ///
3081 #[derive(std::clone::Clone, std::fmt::Debug)]
3082 pub struct UpdateGuideAttachment {
3083 handle: std::sync::Arc<super::Handle>,
3084 inner: crate::input::update_guide_attachment_input::Builder,
3085 }
3086 impl UpdateGuideAttachment {
3087 /// Creates a new `UpdateGuideAttachment`.
3088 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
3089 Self {
3090 handle,
3091 inner: Default::default(),
3092 }
3093 }
3094
3095 /// Consume this builder, creating a customizable operation that can be modified before being
3096 /// sent. The operation's inner [http::Request] can be modified as well.
3097 pub async fn customize(
3098 self,
3099 ) -> std::result::Result<
3100 crate::operation::customize::CustomizableOperation<
3101 crate::operation::UpdateGuideAttachment,
3102 aws_http::retry::AwsResponseRetryClassifier,
3103 >,
3104 aws_smithy_http::result::SdkError<crate::error::UpdateGuideAttachmentError>,
3105 > {
3106 let handle = self.handle.clone();
3107 let operation = self
3108 .inner
3109 .build()
3110 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
3111 .make_operation(&handle.conf)
3112 .await
3113 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
3114 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
3115 }
3116
3117 /// Sends the request and returns the response.
3118 ///
3119 /// If an error occurs, an `SdkError` will be returned with additional details that
3120 /// can be matched against.
3121 ///
3122 /// By default, any retryable failures will be retried twice. Retry behavior
3123 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
3124 /// set when configuring the client.
3125 pub async fn send(
3126 self,
3127 ) -> std::result::Result<
3128 crate::output::UpdateGuideAttachmentOutput,
3129 aws_smithy_http::result::SdkError<crate::error::UpdateGuideAttachmentError>,
3130 > {
3131 let op = self
3132 .inner
3133 .build()
3134 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
3135 .make_operation(&self.handle.conf)
3136 .await
3137 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
3138 self.handle.client.call(op).await
3139 }
3140 /// Id of the draft guide these attachments belong to, begins with DRFT_
3141 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
3142 self.inner = self.inner.id(input.into());
3143 self
3144 }
3145 /// Id of the draft guide these attachments belong to, begins with DRFT_
3146 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
3147 self.inner = self.inner.set_id(input);
3148 self
3149 }
3150 #[allow(missing_docs)] // documentation missing in model
3151 pub fn guide_attachment_id(mut self, input: impl Into<std::string::String>) -> Self {
3152 self.inner = self.inner.guide_attachment_id(input.into());
3153 self
3154 }
3155 #[allow(missing_docs)] // documentation missing in model
3156 pub fn set_guide_attachment_id(
3157 mut self,
3158 input: std::option::Option<std::string::String>,
3159 ) -> Self {
3160 self.inner = self.inner.set_guide_attachment_id(input);
3161 self
3162 }
3163 #[allow(missing_docs)] // documentation missing in model
3164 pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
3165 self.inner = self.inner.name(input.into());
3166 self
3167 }
3168 #[allow(missing_docs)] // documentation missing in model
3169 pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
3170 self.inner = self.inner.set_name(input);
3171 self
3172 }
3173 #[allow(missing_docs)] // documentation missing in model
3174 pub fn filename(mut self, input: impl Into<std::string::String>) -> Self {
3175 self.inner = self.inner.filename(input.into());
3176 self
3177 }
3178 #[allow(missing_docs)] // documentation missing in model
3179 pub fn set_filename(mut self, input: std::option::Option<std::string::String>) -> Self {
3180 self.inner = self.inner.set_filename(input);
3181 self
3182 }
3183 #[allow(missing_docs)] // documentation missing in model
3184 pub fn visibility(mut self, input: crate::model::AttachmentVisibility) -> Self {
3185 self.inner = self.inner.visibility(input);
3186 self
3187 }
3188 #[allow(missing_docs)] // documentation missing in model
3189 pub fn set_visibility(
3190 mut self,
3191 input: std::option::Option<crate::model::AttachmentVisibility>,
3192 ) -> Self {
3193 self.inner = self.inner.set_visibility(input);
3194 self
3195 }
3196 #[allow(missing_docs)] // documentation missing in model
3197 pub fn content(mut self, input: aws_smithy_types::Blob) -> Self {
3198 self.inner = self.inner.content(input);
3199 self
3200 }
3201 #[allow(missing_docs)] // documentation missing in model
3202 pub fn set_content(mut self, input: std::option::Option<aws_smithy_types::Blob>) -> Self {
3203 self.inner = self.inner.set_content(input);
3204 self
3205 }
3206 }
3207 /// Fluent builder constructing a request to `UpdateGuideSample`.
3208 ///
3209 #[derive(std::clone::Clone, std::fmt::Debug)]
3210 pub struct UpdateGuideSample {
3211 handle: std::sync::Arc<super::Handle>,
3212 inner: crate::input::update_guide_sample_input::Builder,
3213 }
3214 impl UpdateGuideSample {
3215 /// Creates a new `UpdateGuideSample`.
3216 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
3217 Self {
3218 handle,
3219 inner: Default::default(),
3220 }
3221 }
3222
3223 /// Consume this builder, creating a customizable operation that can be modified before being
3224 /// sent. The operation's inner [http::Request] can be modified as well.
3225 pub async fn customize(
3226 self,
3227 ) -> std::result::Result<
3228 crate::operation::customize::CustomizableOperation<
3229 crate::operation::UpdateGuideSample,
3230 aws_http::retry::AwsResponseRetryClassifier,
3231 >,
3232 aws_smithy_http::result::SdkError<crate::error::UpdateGuideSampleError>,
3233 > {
3234 let handle = self.handle.clone();
3235 let operation = self
3236 .inner
3237 .build()
3238 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
3239 .make_operation(&handle.conf)
3240 .await
3241 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
3242 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
3243 }
3244
3245 /// Sends the request and returns the response.
3246 ///
3247 /// If an error occurs, an `SdkError` will be returned with additional details that
3248 /// can be matched against.
3249 ///
3250 /// By default, any retryable failures will be retried twice. Retry behavior
3251 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
3252 /// set when configuring the client.
3253 pub async fn send(
3254 self,
3255 ) -> std::result::Result<
3256 crate::output::UpdateGuideSampleOutput,
3257 aws_smithy_http::result::SdkError<crate::error::UpdateGuideSampleError>,
3258 > {
3259 let op = self
3260 .inner
3261 .build()
3262 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
3263 .make_operation(&self.handle.conf)
3264 .await
3265 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
3266 self.handle.client.call(op).await
3267 }
3268 /// Id of the draft guide these samples belong to, begins with DRFT_
3269 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
3270 self.inner = self.inner.id(input.into());
3271 self
3272 }
3273 /// Id of the draft guide these samples belong to, begins with DRFT_
3274 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
3275 self.inner = self.inner.set_id(input);
3276 self
3277 }
3278 #[allow(missing_docs)] // documentation missing in model
3279 pub fn guide_sample_id(mut self, input: impl Into<std::string::String>) -> Self {
3280 self.inner = self.inner.guide_sample_id(input.into());
3281 self
3282 }
3283 #[allow(missing_docs)] // documentation missing in model
3284 pub fn set_guide_sample_id(
3285 mut self,
3286 input: std::option::Option<std::string::String>,
3287 ) -> Self {
3288 self.inner = self.inner.set_guide_sample_id(input);
3289 self
3290 }
3291 #[allow(missing_docs)] // documentation missing in model
3292 pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
3293 self.inner = self.inner.name(input.into());
3294 self
3295 }
3296 #[allow(missing_docs)] // documentation missing in model
3297 pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
3298 self.inner = self.inner.set_name(input);
3299 self
3300 }
3301 #[allow(missing_docs)] // documentation missing in model
3302 pub fn content(mut self, input: impl Into<std::string::String>) -> Self {
3303 self.inner = self.inner.content(input.into());
3304 self
3305 }
3306 #[allow(missing_docs)] // documentation missing in model
3307 pub fn set_content(mut self, input: std::option::Option<std::string::String>) -> Self {
3308 self.inner = self.inner.set_content(input);
3309 self
3310 }
3311 #[allow(missing_docs)] // documentation missing in model
3312 pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
3313 self.inner = self.inner.description(input.into());
3314 self
3315 }
3316 #[allow(missing_docs)] // documentation missing in model
3317 pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
3318 self.inner = self.inner.set_description(input);
3319 self
3320 }
3321 }
3322 /// Fluent builder constructing a request to `UpdateShareConfig`.
3323 ///
3324 #[derive(std::clone::Clone, std::fmt::Debug)]
3325 pub struct UpdateShareConfig {
3326 handle: std::sync::Arc<super::Handle>,
3327 inner: crate::input::update_share_config_input::Builder,
3328 }
3329 impl UpdateShareConfig {
3330 /// Creates a new `UpdateShareConfig`.
3331 pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
3332 Self {
3333 handle,
3334 inner: Default::default(),
3335 }
3336 }
3337
3338 /// Consume this builder, creating a customizable operation that can be modified before being
3339 /// sent. The operation's inner [http::Request] can be modified as well.
3340 pub async fn customize(
3341 self,
3342 ) -> std::result::Result<
3343 crate::operation::customize::CustomizableOperation<
3344 crate::operation::UpdateShareConfig,
3345 aws_http::retry::AwsResponseRetryClassifier,
3346 >,
3347 aws_smithy_http::result::SdkError<crate::error::UpdateShareConfigError>,
3348 > {
3349 let handle = self.handle.clone();
3350 let operation = self
3351 .inner
3352 .build()
3353 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
3354 .make_operation(&handle.conf)
3355 .await
3356 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
3357 Ok(crate::operation::customize::CustomizableOperation { handle, operation })
3358 }
3359
3360 /// Sends the request and returns the response.
3361 ///
3362 /// If an error occurs, an `SdkError` will be returned with additional details that
3363 /// can be matched against.
3364 ///
3365 /// By default, any retryable failures will be retried twice. Retry behavior
3366 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
3367 /// set when configuring the client.
3368 pub async fn send(
3369 self,
3370 ) -> std::result::Result<
3371 crate::output::UpdateShareConfigOutput,
3372 aws_smithy_http::result::SdkError<crate::error::UpdateShareConfigError>,
3373 > {
3374 let op = self
3375 .inner
3376 .build()
3377 .map_err(aws_smithy_http::result::SdkError::construction_failure)?
3378 .make_operation(&self.handle.conf)
3379 .await
3380 .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
3381 self.handle.client.call(op).await
3382 }
3383 /// Id of the published guide, begins with LIVE_
3384 pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
3385 self.inner = self.inner.id(input.into());
3386 self
3387 }
3388 /// Id of the published guide, begins with LIVE_
3389 pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
3390 self.inner = self.inner.set_id(input);
3391 self
3392 }
3393 #[allow(missing_docs)] // documentation missing in model
3394 pub fn share_enabled(mut self, input: bool) -> Self {
3395 self.inner = self.inner.share_enabled(input);
3396 self
3397 }
3398 #[allow(missing_docs)] // documentation missing in model
3399 pub fn set_share_enabled(mut self, input: std::option::Option<bool>) -> Self {
3400 self.inner = self.inner.set_share_enabled(input);
3401 self
3402 }
3403 }
3404}
3405
3406impl Client {
3407 /// Creates a new client from an [SDK Config](stedi_sdk_config::sdk_config::SdkConfig).
3408 ///
3409 /// # Panics
3410 ///
3411 /// - This method will panic if the `sdk_config` is missing an async sleep implementation. If you experience this panic, set
3412 /// the `sleep_impl` on the Config passed into this function to fix it.
3413 /// - This method will panic if the `sdk_config` is missing an HTTP connector. If you experience this panic, set the
3414 /// `http_connector` on the Config passed into this function to fix it.
3415 pub fn new(sdk_config: &stedi_sdk_config::sdk_config::SdkConfig) -> Self {
3416 Self::from_conf(sdk_config.into())
3417 }
3418
3419 /// Creates a new client from the service [`Config`](crate::Config).
3420 ///
3421 /// # Panics
3422 ///
3423 /// - This method will panic if the `conf` is missing an async sleep implementation. If you experience this panic, set
3424 /// the `sleep_impl` on the Config passed into this function to fix it.
3425 /// - This method will panic if the `conf` is missing an HTTP connector. If you experience this panic, set the
3426 /// `http_connector` on the Config passed into this function to fix it.
3427 pub fn from_conf(conf: crate::Config) -> Self {
3428 let retry_config = conf
3429 .retry_config()
3430 .cloned()
3431 .unwrap_or_else(aws_smithy_types::retry::RetryConfig::disabled);
3432 let timeout_config = conf
3433 .timeout_config()
3434 .cloned()
3435 .unwrap_or_else(aws_smithy_types::timeout::TimeoutConfig::disabled);
3436 let sleep_impl = conf.sleep_impl();
3437 if (retry_config.has_retry() || timeout_config.has_timeouts()) && sleep_impl.is_none() {
3438 panic!("An async sleep implementation is required for retries or timeouts to work. \
3439 Set the `sleep_impl` on the Config passed into this function to fix this panic.");
3440 }
3441
3442 let connector = conf.http_connector().and_then(|c| {
3443 let timeout_config = conf
3444 .timeout_config()
3445 .cloned()
3446 .unwrap_or_else(aws_smithy_types::timeout::TimeoutConfig::disabled);
3447 let connector_settings =
3448 aws_smithy_client::http_connector::ConnectorSettings::from_timeout_config(
3449 &timeout_config,
3450 );
3451 c.connector(&connector_settings, conf.sleep_impl())
3452 });
3453
3454 let builder = aws_smithy_client::Builder::new();
3455
3456 let builder = match connector {
3457 // Use provided connector
3458 Some(c) => builder.connector(c),
3459 None => {
3460 #[cfg(any(feature = "rustls", feature = "native-tls"))]
3461 {
3462 // Use default connector based on enabled features
3463 builder.dyn_https_connector(
3464 aws_smithy_client::http_connector::ConnectorSettings::from_timeout_config(
3465 &timeout_config,
3466 ),
3467 )
3468 }
3469 #[cfg(not(any(feature = "rustls", feature = "native-tls")))]
3470 {
3471 panic!("No HTTP connector was available. Enable the `rustls` or `native-tls` crate feature or set a connector to fix this.");
3472 }
3473 }
3474 };
3475 let mut builder = builder
3476 .middleware(aws_smithy_client::erase::DynMiddleware::new(
3477 crate::middleware::DefaultMiddleware::new(),
3478 ))
3479 .retry_config(retry_config.into())
3480 .operation_timeout_config(timeout_config.into());
3481 builder.set_sleep_impl(sleep_impl);
3482 let client = builder.build();
3483
3484 Self {
3485 handle: std::sync::Arc::new(Handle { client, conf }),
3486 }
3487 }
3488}