#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct HealthcheckOperation {
_private: (),
}
impl HealthcheckOperation {
pub fn builder() -> crate::input::healthcheck_operation_input::Builder {
crate::input::healthcheck_operation_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for HealthcheckOperation {
type Output = std::result::Result<
crate::output::HealthcheckOperationOutput,
crate::error::HealthcheckOperationError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_healthcheck_operation_error(response)
} else {
crate::operation_deser::parse_healthcheck_operation_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListOperation {
_private: (),
}
impl ListOperation {
pub fn builder() -> crate::input::list_operation_input::Builder {
crate::input::list_operation_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListOperation {
type Output =
std::result::Result<crate::output::ListOperationOutput, crate::error::ListOperationError>;
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_operation_error(response)
} else {
crate::operation_deser::parse_list_operation_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct PrometheusTargetOperation {
_private: (),
}
impl PrometheusTargetOperation {
pub fn builder() -> crate::input::prometheus_target_operation_input::Builder {
crate::input::prometheus_target_operation_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for PrometheusTargetOperation {
type Output = std::result::Result<
crate::output::PrometheusTargetOperationOutput,
crate::error::PrometheusTargetOperationError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_prometheus_target_operation_error(response)
} else {
crate::operation_deser::parse_prometheus_target_operation_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct RestartOperation {
_private: (),
}
impl RestartOperation {
pub fn builder() -> crate::input::restart_operation_input::Builder {
crate::input::restart_operation_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for RestartOperation {
type Output = std::result::Result<
crate::output::RestartOperationOutput,
crate::error::RestartOperationError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_restart_operation_error(response)
} else {
crate::operation_deser::parse_restart_operation_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct StartOperation {
_private: (),
}
impl StartOperation {
pub fn builder() -> crate::input::start_operation_input::Builder {
crate::input::start_operation_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StartOperation {
type Output =
std::result::Result<crate::output::StartOperationOutput, crate::error::StartOperationError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_start_operation_error(response)
} else {
crate::operation_deser::parse_start_operation_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct StopOperation {
_private: (),
}
impl StopOperation {
pub fn builder() -> crate::input::stop_operation_input::Builder {
crate::input::stop_operation_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StopOperation {
type Output =
std::result::Result<crate::output::StopOperationOutput, crate::error::StopOperationError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_stop_operation_error(response)
} else {
crate::operation_deser::parse_stop_operation_response(response)
}
}
}