#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetClip {
_private: (),
}
impl GetClip {
pub fn builder() -> crate::input::get_clip_input::Builder {
crate::input::get_clip_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseHttpResponse for GetClip {
type Output = std::result::Result<crate::output::GetClipOutput, crate::error::GetClipError>;
fn parse_unloaded(
&self,
response: &mut aws_smithy_http::operation::Response,
) -> Option<Self::Output> {
if !response.http().status().is_success() && response.http().status().as_u16() != 200 {
return None;
}
Some(crate::operation_deser::parse_get_clip(response))
}
fn parse_loaded(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
crate::operation_deser::parse_get_clip_error(response)
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetDASHStreamingSessionURL {
_private: (),
}
impl GetDASHStreamingSessionURL {
pub fn builder() -> crate::input::get_dash_streaming_session_url_input::Builder {
crate::input::get_dash_streaming_session_url_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetDASHStreamingSessionURL {
type Output = std::result::Result<
crate::output::GetDashStreamingSessionUrlOutput,
crate::error::GetDASHStreamingSessionURLError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_get_dash_streaming_session_url_error(response)
} else {
crate::operation_deser::parse_get_dash_streaming_session_url_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetHLSStreamingSessionURL {
_private: (),
}
impl GetHLSStreamingSessionURL {
pub fn builder() -> crate::input::get_hls_streaming_session_url_input::Builder {
crate::input::get_hls_streaming_session_url_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetHLSStreamingSessionURL {
type Output = std::result::Result<
crate::output::GetHlsStreamingSessionUrlOutput,
crate::error::GetHLSStreamingSessionURLError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_get_hls_streaming_session_url_error(response)
} else {
crate::operation_deser::parse_get_hls_streaming_session_url_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetMediaForFragmentList {
_private: (),
}
impl GetMediaForFragmentList {
pub fn builder() -> crate::input::get_media_for_fragment_list_input::Builder {
crate::input::get_media_for_fragment_list_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseHttpResponse for GetMediaForFragmentList {
type Output = std::result::Result<
crate::output::GetMediaForFragmentListOutput,
crate::error::GetMediaForFragmentListError,
>;
fn parse_unloaded(
&self,
response: &mut aws_smithy_http::operation::Response,
) -> Option<Self::Output> {
if !response.http().status().is_success() && response.http().status().as_u16() != 200 {
return None;
}
Some(crate::operation_deser::parse_get_media_for_fragment_list(
response,
))
}
fn parse_loaded(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
crate::operation_deser::parse_get_media_for_fragment_list_error(response)
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListFragments {
_private: (),
}
impl ListFragments {
pub fn builder() -> crate::input::list_fragments_input::Builder {
crate::input::list_fragments_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListFragments {
type Output =
std::result::Result<crate::output::ListFragmentsOutput, crate::error::ListFragmentsError>;
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_fragments_error(response)
} else {
crate::operation_deser::parse_list_fragments_response(response)
}
}
}