rivet_group/
operation.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Operation shape for `CompleteGroupAvatarUpload`.
3///
4/// This is usually constructed for you using the the fluent builder returned by
5/// [`complete_group_avatar_upload`](crate::client::Client::complete_group_avatar_upload).
6///
7/// See [`crate::client::fluent_builders::CompleteGroupAvatarUpload`] for more details about the operation.
8#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
9pub struct CompleteGroupAvatarUpload {
10	_private: (),
11}
12impl CompleteGroupAvatarUpload {
13	/// Creates a new builder-style object to manufacture [`CompleteGroupAvatarUploadInput`](crate::input::CompleteGroupAvatarUploadInput)
14	pub fn builder() -> crate::input::complete_group_avatar_upload_input::Builder {
15		crate::input::complete_group_avatar_upload_input::Builder::default()
16	}
17	/// Creates a new `CompleteGroupAvatarUpload` operation.
18	pub fn new() -> Self {
19		Self { _private: () }
20	}
21}
22impl aws_smithy_http::response::ParseStrictResponse for CompleteGroupAvatarUpload {
23	type Output = std::result::Result<
24		crate::output::CompleteGroupAvatarUploadOutput,
25		crate::error::CompleteGroupAvatarUploadError,
26	>;
27	fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
28		if !response.status().is_success() && response.status().as_u16() != 200 {
29			crate::operation_deser::parse_complete_group_avatar_upload_error(response)
30		} else {
31			crate::operation_deser::parse_complete_group_avatar_upload_response(response)
32		}
33	}
34}
35
36/// Operation shape for `ConsumeGroupInvite`.
37///
38/// This is usually constructed for you using the the fluent builder returned by
39/// [`consume_group_invite`](crate::client::Client::consume_group_invite).
40///
41/// See [`crate::client::fluent_builders::ConsumeGroupInvite`] for more details about the operation.
42#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
43pub struct ConsumeGroupInvite {
44	_private: (),
45}
46impl ConsumeGroupInvite {
47	/// Creates a new builder-style object to manufacture [`ConsumeGroupInviteInput`](crate::input::ConsumeGroupInviteInput)
48	pub fn builder() -> crate::input::consume_group_invite_input::Builder {
49		crate::input::consume_group_invite_input::Builder::default()
50	}
51	/// Creates a new `ConsumeGroupInvite` operation.
52	pub fn new() -> Self {
53		Self { _private: () }
54	}
55}
56impl aws_smithy_http::response::ParseStrictResponse for ConsumeGroupInvite {
57	type Output = std::result::Result<
58		crate::output::ConsumeGroupInviteOutput,
59		crate::error::ConsumeGroupInviteError,
60	>;
61	fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
62		if !response.status().is_success() && response.status().as_u16() != 200 {
63			crate::operation_deser::parse_consume_group_invite_error(response)
64		} else {
65			crate::operation_deser::parse_consume_group_invite_response(response)
66		}
67	}
68}
69
70/// Operation shape for `CreateGroup`.
71///
72/// This is usually constructed for you using the the fluent builder returned by
73/// [`create_group`](crate::client::Client::create_group).
74///
75/// See [`crate::client::fluent_builders::CreateGroup`] for more details about the operation.
76#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
77pub struct CreateGroup {
78	_private: (),
79}
80impl CreateGroup {
81	/// Creates a new builder-style object to manufacture [`CreateGroupInput`](crate::input::CreateGroupInput)
82	pub fn builder() -> crate::input::create_group_input::Builder {
83		crate::input::create_group_input::Builder::default()
84	}
85	/// Creates a new `CreateGroup` operation.
86	pub fn new() -> Self {
87		Self { _private: () }
88	}
89}
90impl aws_smithy_http::response::ParseStrictResponse for CreateGroup {
91	type Output =
92		std::result::Result<crate::output::CreateGroupOutput, crate::error::CreateGroupError>;
93	fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
94		if !response.status().is_success() && response.status().as_u16() != 200 {
95			crate::operation_deser::parse_create_group_error(response)
96		} else {
97			crate::operation_deser::parse_create_group_response(response)
98		}
99	}
100}
101
102/// Operation shape for `CreateGroupInvite`.
103///
104/// This is usually constructed for you using the the fluent builder returned by
105/// [`create_group_invite`](crate::client::Client::create_group_invite).
106///
107/// See [`crate::client::fluent_builders::CreateGroupInvite`] for more details about the operation.
108#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
109pub struct CreateGroupInvite {
110	_private: (),
111}
112impl CreateGroupInvite {
113	/// Creates a new builder-style object to manufacture [`CreateGroupInviteInput`](crate::input::CreateGroupInviteInput)
114	pub fn builder() -> crate::input::create_group_invite_input::Builder {
115		crate::input::create_group_invite_input::Builder::default()
116	}
117	/// Creates a new `CreateGroupInvite` operation.
118	pub fn new() -> Self {
119		Self { _private: () }
120	}
121}
122impl aws_smithy_http::response::ParseStrictResponse for CreateGroupInvite {
123	type Output = std::result::Result<
124		crate::output::CreateGroupInviteOutput,
125		crate::error::CreateGroupInviteError,
126	>;
127	fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
128		if !response.status().is_success() && response.status().as_u16() != 200 {
129			crate::operation_deser::parse_create_group_invite_error(response)
130		} else {
131			crate::operation_deser::parse_create_group_invite_response(response)
132		}
133	}
134}
135
136/// Operation shape for `CreateGroupJoinRequest`.
137///
138/// This is usually constructed for you using the the fluent builder returned by
139/// [`create_group_join_request`](crate::client::Client::create_group_join_request).
140///
141/// See [`crate::client::fluent_builders::CreateGroupJoinRequest`] for more details about the operation.
142#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
143pub struct CreateGroupJoinRequest {
144	_private: (),
145}
146impl CreateGroupJoinRequest {
147	/// Creates a new builder-style object to manufacture [`CreateGroupJoinRequestInput`](crate::input::CreateGroupJoinRequestInput)
148	pub fn builder() -> crate::input::create_group_join_request_input::Builder {
149		crate::input::create_group_join_request_input::Builder::default()
150	}
151	/// Creates a new `CreateGroupJoinRequest` operation.
152	pub fn new() -> Self {
153		Self { _private: () }
154	}
155}
156impl aws_smithy_http::response::ParseStrictResponse for CreateGroupJoinRequest {
157	type Output = std::result::Result<
158		crate::output::CreateGroupJoinRequestOutput,
159		crate::error::CreateGroupJoinRequestError,
160	>;
161	fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
162		if !response.status().is_success() && response.status().as_u16() != 200 {
163			crate::operation_deser::parse_create_group_join_request_error(response)
164		} else {
165			crate::operation_deser::parse_create_group_join_request_response(response)
166		}
167	}
168}
169
170/// Operation shape for `GetGroupInvite`.
171///
172/// This is usually constructed for you using the the fluent builder returned by
173/// [`get_group_invite`](crate::client::Client::get_group_invite).
174///
175/// See [`crate::client::fluent_builders::GetGroupInvite`] for more details about the operation.
176#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
177pub struct GetGroupInvite {
178	_private: (),
179}
180impl GetGroupInvite {
181	/// Creates a new builder-style object to manufacture [`GetGroupInviteInput`](crate::input::GetGroupInviteInput)
182	pub fn builder() -> crate::input::get_group_invite_input::Builder {
183		crate::input::get_group_invite_input::Builder::default()
184	}
185	/// Creates a new `GetGroupInvite` operation.
186	pub fn new() -> Self {
187		Self { _private: () }
188	}
189}
190impl aws_smithy_http::response::ParseStrictResponse for GetGroupInvite {
191	type Output =
192		std::result::Result<crate::output::GetGroupInviteOutput, crate::error::GetGroupInviteError>;
193	fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
194		if !response.status().is_success() && response.status().as_u16() != 200 {
195			crate::operation_deser::parse_get_group_invite_error(response)
196		} else {
197			crate::operation_deser::parse_get_group_invite_response(response)
198		}
199	}
200}
201
202/// Operation shape for `GetGroupProfile`.
203///
204/// This is usually constructed for you using the the fluent builder returned by
205/// [`get_group_profile`](crate::client::Client::get_group_profile).
206///
207/// See [`crate::client::fluent_builders::GetGroupProfile`] for more details about the operation.
208#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
209pub struct GetGroupProfile {
210	_private: (),
211}
212impl GetGroupProfile {
213	/// Creates a new builder-style object to manufacture [`GetGroupProfileInput`](crate::input::GetGroupProfileInput)
214	pub fn builder() -> crate::input::get_group_profile_input::Builder {
215		crate::input::get_group_profile_input::Builder::default()
216	}
217	/// Creates a new `GetGroupProfile` operation.
218	pub fn new() -> Self {
219		Self { _private: () }
220	}
221}
222impl aws_smithy_http::response::ParseStrictResponse for GetGroupProfile {
223	type Output = std::result::Result<
224		crate::output::GetGroupProfileOutput,
225		crate::error::GetGroupProfileError,
226	>;
227	fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
228		if !response.status().is_success() && response.status().as_u16() != 200 {
229			crate::operation_deser::parse_get_group_profile_error(response)
230		} else {
231			crate::operation_deser::parse_get_group_profile_response(response)
232		}
233	}
234}
235
236/// Operation shape for `GetGroupSummary`.
237///
238/// This is usually constructed for you using the the fluent builder returned by
239/// [`get_group_summary`](crate::client::Client::get_group_summary).
240///
241/// See [`crate::client::fluent_builders::GetGroupSummary`] for more details about the operation.
242#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
243pub struct GetGroupSummary {
244	_private: (),
245}
246impl GetGroupSummary {
247	/// Creates a new builder-style object to manufacture [`GetGroupSummaryInput`](crate::input::GetGroupSummaryInput)
248	pub fn builder() -> crate::input::get_group_summary_input::Builder {
249		crate::input::get_group_summary_input::Builder::default()
250	}
251	/// Creates a new `GetGroupSummary` operation.
252	pub fn new() -> Self {
253		Self { _private: () }
254	}
255}
256impl aws_smithy_http::response::ParseStrictResponse for GetGroupSummary {
257	type Output = std::result::Result<
258		crate::output::GetGroupSummaryOutput,
259		crate::error::GetGroupSummaryError,
260	>;
261	fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
262		if !response.status().is_success() && response.status().as_u16() != 200 {
263			crate::operation_deser::parse_get_group_summary_error(response)
264		} else {
265			crate::operation_deser::parse_get_group_summary_response(response)
266		}
267	}
268}
269
270/// Operation shape for `JoinGroup`.
271///
272/// This is usually constructed for you using the the fluent builder returned by
273/// [`join_group`](crate::client::Client::join_group).
274///
275/// See [`crate::client::fluent_builders::JoinGroup`] for more details about the operation.
276#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
277pub struct JoinGroup {
278	_private: (),
279}
280impl JoinGroup {
281	/// Creates a new builder-style object to manufacture [`JoinGroupInput`](crate::input::JoinGroupInput)
282	pub fn builder() -> crate::input::join_group_input::Builder {
283		crate::input::join_group_input::Builder::default()
284	}
285	/// Creates a new `JoinGroup` operation.
286	pub fn new() -> Self {
287		Self { _private: () }
288	}
289}
290impl aws_smithy_http::response::ParseStrictResponse for JoinGroup {
291	type Output = std::result::Result<crate::output::JoinGroupOutput, crate::error::JoinGroupError>;
292	fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
293		if !response.status().is_success() && response.status().as_u16() != 200 {
294			crate::operation_deser::parse_join_group_error(response)
295		} else {
296			crate::operation_deser::parse_join_group_response(response)
297		}
298	}
299}
300
301/// Operation shape for `LeaveGroup`.
302///
303/// This is usually constructed for you using the the fluent builder returned by
304/// [`leave_group`](crate::client::Client::leave_group).
305///
306/// See [`crate::client::fluent_builders::LeaveGroup`] for more details about the operation.
307#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
308pub struct LeaveGroup {
309	_private: (),
310}
311impl LeaveGroup {
312	/// Creates a new builder-style object to manufacture [`LeaveGroupInput`](crate::input::LeaveGroupInput)
313	pub fn builder() -> crate::input::leave_group_input::Builder {
314		crate::input::leave_group_input::Builder::default()
315	}
316	/// Creates a new `LeaveGroup` operation.
317	pub fn new() -> Self {
318		Self { _private: () }
319	}
320}
321impl aws_smithy_http::response::ParseStrictResponse for LeaveGroup {
322	type Output =
323		std::result::Result<crate::output::LeaveGroupOutput, crate::error::LeaveGroupError>;
324	fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
325		if !response.status().is_success() && response.status().as_u16() != 200 {
326			crate::operation_deser::parse_leave_group_error(response)
327		} else {
328			crate::operation_deser::parse_leave_group_response(response)
329		}
330	}
331}
332
333/// Operation shape for `ListSuggestedGroups`.
334///
335/// This is usually constructed for you using the the fluent builder returned by
336/// [`list_suggested_groups`](crate::client::Client::list_suggested_groups).
337///
338/// See [`crate::client::fluent_builders::ListSuggestedGroups`] for more details about the operation.
339#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
340pub struct ListSuggestedGroups {
341	_private: (),
342}
343impl ListSuggestedGroups {
344	/// Creates a new builder-style object to manufacture [`ListSuggestedGroupsInput`](crate::input::ListSuggestedGroupsInput)
345	pub fn builder() -> crate::input::list_suggested_groups_input::Builder {
346		crate::input::list_suggested_groups_input::Builder::default()
347	}
348	/// Creates a new `ListSuggestedGroups` operation.
349	pub fn new() -> Self {
350		Self { _private: () }
351	}
352}
353impl aws_smithy_http::response::ParseStrictResponse for ListSuggestedGroups {
354	type Output = std::result::Result<
355		crate::output::ListSuggestedGroupsOutput,
356		crate::error::ListSuggestedGroupsError,
357	>;
358	fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
359		if !response.status().is_success() && response.status().as_u16() != 200 {
360			crate::operation_deser::parse_list_suggested_groups_error(response)
361		} else {
362			crate::operation_deser::parse_list_suggested_groups_response(response)
363		}
364	}
365}
366
367/// Operation shape for `PrepareGroupAvatarUpload`.
368///
369/// This is usually constructed for you using the the fluent builder returned by
370/// [`prepare_group_avatar_upload`](crate::client::Client::prepare_group_avatar_upload).
371///
372/// See [`crate::client::fluent_builders::PrepareGroupAvatarUpload`] for more details about the operation.
373#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
374pub struct PrepareGroupAvatarUpload {
375	_private: (),
376}
377impl PrepareGroupAvatarUpload {
378	/// Creates a new builder-style object to manufacture [`PrepareGroupAvatarUploadInput`](crate::input::PrepareGroupAvatarUploadInput)
379	pub fn builder() -> crate::input::prepare_group_avatar_upload_input::Builder {
380		crate::input::prepare_group_avatar_upload_input::Builder::default()
381	}
382	/// Creates a new `PrepareGroupAvatarUpload` operation.
383	pub fn new() -> Self {
384		Self { _private: () }
385	}
386}
387impl aws_smithy_http::response::ParseStrictResponse for PrepareGroupAvatarUpload {
388	type Output = std::result::Result<
389		crate::output::PrepareGroupAvatarUploadOutput,
390		crate::error::PrepareGroupAvatarUploadError,
391	>;
392	fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
393		if !response.status().is_success() && response.status().as_u16() != 200 {
394			crate::operation_deser::parse_prepare_group_avatar_upload_error(response)
395		} else {
396			crate::operation_deser::parse_prepare_group_avatar_upload_response(response)
397		}
398	}
399}
400
401/// Operation shape for `ResolveGroupJoinRequest`.
402///
403/// This is usually constructed for you using the the fluent builder returned by
404/// [`resolve_group_join_request`](crate::client::Client::resolve_group_join_request).
405///
406/// See [`crate::client::fluent_builders::ResolveGroupJoinRequest`] for more details about the operation.
407#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
408pub struct ResolveGroupJoinRequest {
409	_private: (),
410}
411impl ResolveGroupJoinRequest {
412	/// Creates a new builder-style object to manufacture [`ResolveGroupJoinRequestInput`](crate::input::ResolveGroupJoinRequestInput)
413	pub fn builder() -> crate::input::resolve_group_join_request_input::Builder {
414		crate::input::resolve_group_join_request_input::Builder::default()
415	}
416	/// Creates a new `ResolveGroupJoinRequest` operation.
417	pub fn new() -> Self {
418		Self { _private: () }
419	}
420}
421impl aws_smithy_http::response::ParseStrictResponse for ResolveGroupJoinRequest {
422	type Output = std::result::Result<
423		crate::output::ResolveGroupJoinRequestOutput,
424		crate::error::ResolveGroupJoinRequestError,
425	>;
426	fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
427		if !response.status().is_success() && response.status().as_u16() != 200 {
428			crate::operation_deser::parse_resolve_group_join_request_error(response)
429		} else {
430			crate::operation_deser::parse_resolve_group_join_request_response(response)
431		}
432	}
433}
434
435/// Operation shape for `SearchGroups`.
436///
437/// This is usually constructed for you using the the fluent builder returned by
438/// [`search_groups`](crate::client::Client::search_groups).
439///
440/// See [`crate::client::fluent_builders::SearchGroups`] for more details about the operation.
441#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
442pub struct SearchGroups {
443	_private: (),
444}
445impl SearchGroups {
446	/// Creates a new builder-style object to manufacture [`SearchGroupsInput`](crate::input::SearchGroupsInput)
447	pub fn builder() -> crate::input::search_groups_input::Builder {
448		crate::input::search_groups_input::Builder::default()
449	}
450	/// Creates a new `SearchGroups` operation.
451	pub fn new() -> Self {
452		Self { _private: () }
453	}
454}
455impl aws_smithy_http::response::ParseStrictResponse for SearchGroups {
456	type Output =
457		std::result::Result<crate::output::SearchGroupsOutput, crate::error::SearchGroupsError>;
458	fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
459		if !response.status().is_success() && response.status().as_u16() != 200 {
460			crate::operation_deser::parse_search_groups_error(response)
461		} else {
462			crate::operation_deser::parse_search_groups_response(response)
463		}
464	}
465}
466
467/// Operation shape for `TransferGroupOwnership`.
468///
469/// This is usually constructed for you using the the fluent builder returned by
470/// [`transfer_group_ownership`](crate::client::Client::transfer_group_ownership).
471///
472/// See [`crate::client::fluent_builders::TransferGroupOwnership`] for more details about the operation.
473#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
474pub struct TransferGroupOwnership {
475	_private: (),
476}
477impl TransferGroupOwnership {
478	/// Creates a new builder-style object to manufacture [`TransferGroupOwnershipInput`](crate::input::TransferGroupOwnershipInput)
479	pub fn builder() -> crate::input::transfer_group_ownership_input::Builder {
480		crate::input::transfer_group_ownership_input::Builder::default()
481	}
482	/// Creates a new `TransferGroupOwnership` operation.
483	pub fn new() -> Self {
484		Self { _private: () }
485	}
486}
487impl aws_smithy_http::response::ParseStrictResponse for TransferGroupOwnership {
488	type Output = std::result::Result<
489		crate::output::TransferGroupOwnershipOutput,
490		crate::error::TransferGroupOwnershipError,
491	>;
492	fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
493		if !response.status().is_success() && response.status().as_u16() != 200 {
494			crate::operation_deser::parse_transfer_group_ownership_error(response)
495		} else {
496			crate::operation_deser::parse_transfer_group_ownership_response(response)
497		}
498	}
499}
500
501/// Operation shape for `UpdateGroupProfile`.
502///
503/// This is usually constructed for you using the the fluent builder returned by
504/// [`update_group_profile`](crate::client::Client::update_group_profile).
505///
506/// See [`crate::client::fluent_builders::UpdateGroupProfile`] for more details about the operation.
507#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
508pub struct UpdateGroupProfile {
509	_private: (),
510}
511impl UpdateGroupProfile {
512	/// Creates a new builder-style object to manufacture [`UpdateGroupProfileInput`](crate::input::UpdateGroupProfileInput)
513	pub fn builder() -> crate::input::update_group_profile_input::Builder {
514		crate::input::update_group_profile_input::Builder::default()
515	}
516	/// Creates a new `UpdateGroupProfile` operation.
517	pub fn new() -> Self {
518		Self { _private: () }
519	}
520}
521impl aws_smithy_http::response::ParseStrictResponse for UpdateGroupProfile {
522	type Output = std::result::Result<
523		crate::output::UpdateGroupProfileOutput,
524		crate::error::UpdateGroupProfileError,
525	>;
526	fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
527		if !response.status().is_success() && response.status().as_u16() != 200 {
528			crate::operation_deser::parse_update_group_profile_error(response)
529		} else {
530			crate::operation_deser::parse_update_group_profile_response(response)
531		}
532	}
533}
534
535/// Operation shape for `ValidateGroupProfile`.
536///
537/// This is usually constructed for you using the the fluent builder returned by
538/// [`validate_group_profile`](crate::client::Client::validate_group_profile).
539///
540/// See [`crate::client::fluent_builders::ValidateGroupProfile`] for more details about the operation.
541#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
542pub struct ValidateGroupProfile {
543	_private: (),
544}
545impl ValidateGroupProfile {
546	/// Creates a new builder-style object to manufacture [`ValidateGroupProfileInput`](crate::input::ValidateGroupProfileInput)
547	pub fn builder() -> crate::input::validate_group_profile_input::Builder {
548		crate::input::validate_group_profile_input::Builder::default()
549	}
550	/// Creates a new `ValidateGroupProfile` operation.
551	pub fn new() -> Self {
552		Self { _private: () }
553	}
554}
555impl aws_smithy_http::response::ParseStrictResponse for ValidateGroupProfile {
556	type Output = std::result::Result<
557		crate::output::ValidateGroupProfileOutput,
558		crate::error::ValidateGroupProfileError,
559	>;
560	fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
561		if !response.status().is_success() && response.status().as_u16() != 200 {
562			crate::operation_deser::parse_validate_group_profile_error(response)
563		} else {
564			crate::operation_deser::parse_validate_group_profile_response(response)
565		}
566	}
567}