#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct CreateHttpNamespace {
_private: (),
}
impl CreateHttpNamespace {
pub fn builder() -> crate::input::create_http_namespace_input::Builder {
crate::input::create_http_namespace_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateHttpNamespace {
type Output = std::result::Result<
crate::output::CreateHttpNamespaceOutput,
crate::error::CreateHttpNamespaceError,
>;
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_http_namespace_error(response)
} else {
crate::operation_deser::parse_create_http_namespace_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct CreatePrivateDnsNamespace {
_private: (),
}
impl CreatePrivateDnsNamespace {
pub fn builder() -> crate::input::create_private_dns_namespace_input::Builder {
crate::input::create_private_dns_namespace_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreatePrivateDnsNamespace {
type Output = std::result::Result<
crate::output::CreatePrivateDnsNamespaceOutput,
crate::error::CreatePrivateDnsNamespaceError,
>;
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_private_dns_namespace_error(response)
} else {
crate::operation_deser::parse_create_private_dns_namespace_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct CreatePublicDnsNamespace {
_private: (),
}
impl CreatePublicDnsNamespace {
pub fn builder() -> crate::input::create_public_dns_namespace_input::Builder {
crate::input::create_public_dns_namespace_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreatePublicDnsNamespace {
type Output = std::result::Result<
crate::output::CreatePublicDnsNamespaceOutput,
crate::error::CreatePublicDnsNamespaceError,
>;
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_public_dns_namespace_error(response)
} else {
crate::operation_deser::parse_create_public_dns_namespace_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct CreateService {
_private: (),
}
impl CreateService {
pub fn builder() -> crate::input::create_service_input::Builder {
crate::input::create_service_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateService {
type Output =
std::result::Result<crate::output::CreateServiceOutput, crate::error::CreateServiceError>;
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_service_error(response)
} else {
crate::operation_deser::parse_create_service_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DeleteNamespace {
_private: (),
}
impl DeleteNamespace {
pub fn builder() -> crate::input::delete_namespace_input::Builder {
crate::input::delete_namespace_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteNamespace {
type Output = std::result::Result<
crate::output::DeleteNamespaceOutput,
crate::error::DeleteNamespaceError,
>;
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_namespace_error(response)
} else {
crate::operation_deser::parse_delete_namespace_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DeleteService {
_private: (),
}
impl DeleteService {
pub fn builder() -> crate::input::delete_service_input::Builder {
crate::input::delete_service_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteService {
type Output =
std::result::Result<crate::output::DeleteServiceOutput, crate::error::DeleteServiceError>;
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_service_error(response)
} else {
crate::operation_deser::parse_delete_service_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DeregisterInstance {
_private: (),
}
impl DeregisterInstance {
pub fn builder() -> crate::input::deregister_instance_input::Builder {
crate::input::deregister_instance_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeregisterInstance {
type Output = std::result::Result<
crate::output::DeregisterInstanceOutput,
crate::error::DeregisterInstanceError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_deregister_instance_error(response)
} else {
crate::operation_deser::parse_deregister_instance_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DiscoverInstances {
_private: (),
}
impl DiscoverInstances {
pub fn builder() -> crate::input::discover_instances_input::Builder {
crate::input::discover_instances_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DiscoverInstances {
type Output = std::result::Result<
crate::output::DiscoverInstancesOutput,
crate::error::DiscoverInstancesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_discover_instances_error(response)
} else {
crate::operation_deser::parse_discover_instances_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetInstance {
_private: (),
}
impl GetInstance {
pub fn builder() -> crate::input::get_instance_input::Builder {
crate::input::get_instance_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetInstance {
type Output =
std::result::Result<crate::output::GetInstanceOutput, crate::error::GetInstanceError>;
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_instance_error(response)
} else {
crate::operation_deser::parse_get_instance_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetInstancesHealthStatus {
_private: (),
}
impl GetInstancesHealthStatus {
pub fn builder() -> crate::input::get_instances_health_status_input::Builder {
crate::input::get_instances_health_status_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetInstancesHealthStatus {
type Output = std::result::Result<
crate::output::GetInstancesHealthStatusOutput,
crate::error::GetInstancesHealthStatusError,
>;
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_instances_health_status_error(response)
} else {
crate::operation_deser::parse_get_instances_health_status_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetNamespace {
_private: (),
}
impl GetNamespace {
pub fn builder() -> crate::input::get_namespace_input::Builder {
crate::input::get_namespace_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetNamespace {
type Output =
std::result::Result<crate::output::GetNamespaceOutput, crate::error::GetNamespaceError>;
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_namespace_error(response)
} else {
crate::operation_deser::parse_get_namespace_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetOperation {
_private: (),
}
impl GetOperation {
pub fn builder() -> crate::input::get_operation_input::Builder {
crate::input::get_operation_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetOperation {
type Output =
std::result::Result<crate::output::GetOperationOutput, crate::error::GetOperationError>;
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_operation_error(response)
} else {
crate::operation_deser::parse_get_operation_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetService {
_private: (),
}
impl GetService {
pub fn builder() -> crate::input::get_service_input::Builder {
crate::input::get_service_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetService {
type Output =
std::result::Result<crate::output::GetServiceOutput, crate::error::GetServiceError>;
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_service_error(response)
} else {
crate::operation_deser::parse_get_service_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListInstances {
_private: (),
}
impl ListInstances {
pub fn builder() -> crate::input::list_instances_input::Builder {
crate::input::list_instances_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListInstances {
type Output =
std::result::Result<crate::output::ListInstancesOutput, crate::error::ListInstancesError>;
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_instances_error(response)
} else {
crate::operation_deser::parse_list_instances_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListNamespaces {
_private: (),
}
impl ListNamespaces {
pub fn builder() -> crate::input::list_namespaces_input::Builder {
crate::input::list_namespaces_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListNamespaces {
type Output =
std::result::Result<crate::output::ListNamespacesOutput, crate::error::ListNamespacesError>;
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_namespaces_error(response)
} else {
crate::operation_deser::parse_list_namespaces_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListOperations {
_private: (),
}
impl ListOperations {
pub fn builder() -> crate::input::list_operations_input::Builder {
crate::input::list_operations_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListOperations {
type Output =
std::result::Result<crate::output::ListOperationsOutput, crate::error::ListOperationsError>;
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_operations_error(response)
} else {
crate::operation_deser::parse_list_operations_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListServices {
_private: (),
}
impl ListServices {
pub fn builder() -> crate::input::list_services_input::Builder {
crate::input::list_services_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListServices {
type Output =
std::result::Result<crate::output::ListServicesOutput, crate::error::ListServicesError>;
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_services_error(response)
} else {
crate::operation_deser::parse_list_services_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, 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::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct RegisterInstance {
_private: (),
}
impl RegisterInstance {
pub fn builder() -> crate::input::register_instance_input::Builder {
crate::input::register_instance_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for RegisterInstance {
type Output = std::result::Result<
crate::output::RegisterInstanceOutput,
crate::error::RegisterInstanceError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_register_instance_error(response)
} else {
crate::operation_deser::parse_register_instance_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, 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::default::Default, std::clone::Clone, 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)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct UpdateHttpNamespace {
_private: (),
}
impl UpdateHttpNamespace {
pub fn builder() -> crate::input::update_http_namespace_input::Builder {
crate::input::update_http_namespace_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateHttpNamespace {
type Output = std::result::Result<
crate::output::UpdateHttpNamespaceOutput,
crate::error::UpdateHttpNamespaceError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_update_http_namespace_error(response)
} else {
crate::operation_deser::parse_update_http_namespace_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct UpdateInstanceCustomHealthStatus {
_private: (),
}
impl UpdateInstanceCustomHealthStatus {
pub fn builder() -> crate::input::update_instance_custom_health_status_input::Builder {
crate::input::update_instance_custom_health_status_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateInstanceCustomHealthStatus {
type Output = std::result::Result<
crate::output::UpdateInstanceCustomHealthStatusOutput,
crate::error::UpdateInstanceCustomHealthStatusError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_update_instance_custom_health_status_error(response)
} else {
crate::operation_deser::parse_update_instance_custom_health_status_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct UpdatePrivateDnsNamespace {
_private: (),
}
impl UpdatePrivateDnsNamespace {
pub fn builder() -> crate::input::update_private_dns_namespace_input::Builder {
crate::input::update_private_dns_namespace_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdatePrivateDnsNamespace {
type Output = std::result::Result<
crate::output::UpdatePrivateDnsNamespaceOutput,
crate::error::UpdatePrivateDnsNamespaceError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_update_private_dns_namespace_error(response)
} else {
crate::operation_deser::parse_update_private_dns_namespace_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct UpdatePublicDnsNamespace {
_private: (),
}
impl UpdatePublicDnsNamespace {
pub fn builder() -> crate::input::update_public_dns_namespace_input::Builder {
crate::input::update_public_dns_namespace_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdatePublicDnsNamespace {
type Output = std::result::Result<
crate::output::UpdatePublicDnsNamespaceOutput,
crate::error::UpdatePublicDnsNamespaceError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_update_public_dns_namespace_error(response)
} else {
crate::operation_deser::parse_update_public_dns_namespace_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct UpdateService {
_private: (),
}
impl UpdateService {
pub fn builder() -> crate::input::update_service_input::Builder {
crate::input::update_service_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateService {
type Output =
std::result::Result<crate::output::UpdateServiceOutput, crate::error::UpdateServiceError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_update_service_error(response)
} else {
crate::operation_deser::parse_update_service_response(response)
}
}
}