#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateSavingsPlan {
_private: (),
}
impl CreateSavingsPlan {
pub fn builder() -> crate::input::create_savings_plan_input::Builder {
crate::input::create_savings_plan_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateSavingsPlan {
type Output = std::result::Result<
crate::output::CreateSavingsPlanOutput,
crate::error::CreateSavingsPlanError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_create_savings_plan_error(response)
} else {
crate::operation_deser::parse_create_savings_plan_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteQueuedSavingsPlan {
_private: (),
}
impl DeleteQueuedSavingsPlan {
pub fn builder() -> crate::input::delete_queued_savings_plan_input::Builder {
crate::input::delete_queued_savings_plan_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteQueuedSavingsPlan {
type Output = std::result::Result<
crate::output::DeleteQueuedSavingsPlanOutput,
crate::error::DeleteQueuedSavingsPlanError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_delete_queued_savings_plan_error(response)
} else {
crate::operation_deser::parse_delete_queued_savings_plan_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeSavingsPlanRates {
_private: (),
}
impl DescribeSavingsPlanRates {
pub fn builder() -> crate::input::describe_savings_plan_rates_input::Builder {
crate::input::describe_savings_plan_rates_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeSavingsPlanRates {
type Output = std::result::Result<
crate::output::DescribeSavingsPlanRatesOutput,
crate::error::DescribeSavingsPlanRatesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_savings_plan_rates_error(response)
} else {
crate::operation_deser::parse_describe_savings_plan_rates_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeSavingsPlans {
_private: (),
}
impl DescribeSavingsPlans {
pub fn builder() -> crate::input::describe_savings_plans_input::Builder {
crate::input::describe_savings_plans_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeSavingsPlans {
type Output = std::result::Result<
crate::output::DescribeSavingsPlansOutput,
crate::error::DescribeSavingsPlansError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_savings_plans_error(response)
} else {
crate::operation_deser::parse_describe_savings_plans_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeSavingsPlansOfferingRates {
_private: (),
}
impl DescribeSavingsPlansOfferingRates {
pub fn builder() -> crate::input::describe_savings_plans_offering_rates_input::Builder {
crate::input::describe_savings_plans_offering_rates_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeSavingsPlansOfferingRates {
type Output = std::result::Result<
crate::output::DescribeSavingsPlansOfferingRatesOutput,
crate::error::DescribeSavingsPlansOfferingRatesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_savings_plans_offering_rates_error(response)
} else {
crate::operation_deser::parse_describe_savings_plans_offering_rates_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeSavingsPlansOfferings {
_private: (),
}
impl DescribeSavingsPlansOfferings {
pub fn builder() -> crate::input::describe_savings_plans_offerings_input::Builder {
crate::input::describe_savings_plans_offerings_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeSavingsPlansOfferings {
type Output = std::result::Result<
crate::output::DescribeSavingsPlansOfferingsOutput,
crate::error::DescribeSavingsPlansOfferingsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_savings_plans_offerings_error(response)
} else {
crate::operation_deser::parse_describe_savings_plans_offerings_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListTagsForResource {
_private: (),
}
impl ListTagsForResource {
pub fn builder() -> crate::input::list_tags_for_resource_input::Builder {
crate::input::list_tags_for_resource_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListTagsForResource {
type Output = std::result::Result<
crate::output::ListTagsForResourceOutput,
crate::error::ListTagsForResourceError,
>;
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_tags_for_resource_error(response)
} else {
crate::operation_deser::parse_list_tags_for_resource_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct TagResource {
_private: (),
}
impl TagResource {
pub fn builder() -> crate::input::tag_resource_input::Builder {
crate::input::tag_resource_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for TagResource {
type Output =
std::result::Result<crate::output::TagResourceOutput, crate::error::TagResourceError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_tag_resource_error(response)
} else {
crate::operation_deser::parse_tag_resource_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UntagResource {
_private: (),
}
impl UntagResource {
pub fn builder() -> crate::input::untag_resource_input::Builder {
crate::input::untag_resource_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UntagResource {
type Output =
std::result::Result<crate::output::UntagResourceOutput, crate::error::UntagResourceError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_untag_resource_error(response)
} else {
crate::operation_deser::parse_untag_resource_response(response)
}
}
}
pub mod customize;