1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListRealtimeContactAnalysisSegments {
_private: (),
}
impl ListRealtimeContactAnalysisSegments {
pub fn builder() -> crate::input::list_realtime_contact_analysis_segments_input::Builder {
crate::input::list_realtime_contact_analysis_segments_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListRealtimeContactAnalysisSegments {
type Output = std::result::Result<
crate::output::ListRealtimeContactAnalysisSegmentsOutput,
crate::error::ListRealtimeContactAnalysisSegmentsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_realtime_contact_analysis_segments_error(response)
} else {
crate::operation_deser::parse_list_realtime_contact_analysis_segments_response(response)
}
}
}